-
Notifications
You must be signed in to change notification settings - Fork 240
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
Make sure to wait before restarting the remote builder #3785
Open
billyb2
wants to merge
9
commits into
master
Choose a base branch
from
wait_before_start_builder
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on Jul 29, 2024
-
Make sure to wait before restarting the remote builder
If the remote builder is in the 'created' or 'migrating' state, then we won't be able to restart it. By making sure to wait for one of those two states, we can avoid errors like: `failed to fetch an image or build from source: failed to restart VM asfijsdoif: failed_precondition: unable to restart machine, not currently started or stopped`
Configuration menu - View commit details
-
Copy full SHA for c29c2de - Browse repository at this point
Copy the full SHA c29c2deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1512d07 - Browse repository at this point
Copy the full SHA 1512d07View commit details -
simplified WaitForAnyMachineState
channels are better than that disgusting mutex garbage i was doing
Configuration menu - View commit details
-
Copy full SHA for 6e12940 - Browse repository at this point
Copy the full SHA 6e12940View commit details -
Configuration menu - View commit details
-
Copy full SHA for c8368e5 - Browse repository at this point
Copy the full SHA c8368e5View commit details -
Change restartBuilder to return cleanly when already started
Basically, if the builder is in the 'created' state for example, and we transition into 'started', there's no reason to start it.
Configuration menu - View commit details
-
Copy full SHA for 4d205c9 - Browse repository at this point
Copy the full SHA 4d205c9View commit details -
don't return err = nil if we can't find the correct state
that's dumb. instead we should just return a standard WaitTimeoutErr if we can't reach any state.
Configuration menu - View commit details
-
Copy full SHA for 5862799 - Browse repository at this point
Copy the full SHA 5862799View commit details -
Configuration menu - View commit details
-
Copy full SHA for 235662e - Browse repository at this point
Copy the full SHA 235662eView commit details -
switch statements are the future Co-authored-by: JP [email protected]
Configuration menu - View commit details
-
Copy full SHA for c231251 - Browse repository at this point
Copy the full SHA c231251View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce89c34 - Browse repository at this point
Copy the full SHA ce89c34View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.