Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update configure-apt-mock.sh to enable parallelism #11467

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fahhem
Copy link
Contributor

@fahhem fahhem commented Jan 25, 2025

Description

This adds a few errors that happen when another update/install process is running in parallel. apt-get update doesn't handle race conditions well, and apt-get install has one as well.

This is pre-cursor to another change that enables parallelism in the packer templates to run the install-*.sh scripts parallel, as I mentioned in #2320

On its own, this change does nothing, except maybe slightly increase reliability of image building.

Check list

  • [n/a] Related issue / work item is attached
  • [n/a] Tests are written (if applicable)
  • [n/a] Documentation is updated (if applicable)
  • [n/a] Changes are tested and related VM images are successfully generated

This adds a few errors that happen when another update/install process is running in parallel. `apt-get update` doesn't handle race conditions well, and `apt-get install` has one as well.

This is pre-cursor to another change that enables parallelism in the packer templates to run the `install-*.sh` scripts parallel, as I mentioned in actions#2320
Copy link

@dav3yblaz3 dav3yblaz3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets get this to test thank you team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants