-
Notifications
You must be signed in to change notification settings - Fork 58
fix(dashmate): keep the node up when an image pull fails, and stop reporting success when it did not #4283
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
Open
shumkov
wants to merge
8
commits into
v4.2-dev
Choose a base branch
from
fix/dashmate/update-path-bugs
base: v4.2-dev
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.
Open
fix(dashmate): keep the node up when an image pull fails, and stop reporting success when it did not #4283
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
711594d
fix(dashmate): stop the GitHub release lookup throwing and validate i…
shumkov df0c682
fix(dashmate): report failed image pulls and pull before stopping the…
shumkov d9bd7c3
fix(dashmate): restrict a gateway TLS private key an older version le…
shumkov 5b6cf98
fix(dashmate): build a group's local images before it stops anything
shumkov 20009a2
fix(dashmate): print a registry's own words without letting it drive …
shumkov 1a512d8
test(dashmate): pin that an exposed TLS key is restricted before it i…
shumkov 68d467e
fix(dashmate): strip the invisible characters a registry can hide tex…
shumkov ba2ec49
style(dashmate): one property per line in the hidden-character table
shumkov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import sanitizeRemoteText from '../util/sanitizeRemoteText.js'; | ||
|
|
||
| /** | ||
| * Find a failure reported inside a Docker pull progress stream | ||
| * | ||
| * Docker answers a pull request with 200 and then reports registry and disk | ||
| * failures as a message in the progress stream, so a completed stream doesn't | ||
| * mean the image was pulled. | ||
| * | ||
| * The registry chooses the text of that message and it ends up on the | ||
| * operator's terminal, so it is made safe to print before it is passed on. | ||
| * | ||
| * @param {Object[]} output - messages collected from the pull stream | ||
| * @return {string|undefined} failure reason | ||
| */ | ||
| export default function findPullStreamError(output) { | ||
| const failure = output.find((message) => message?.error); | ||
|
|
||
| if (!failure) { | ||
| return undefined; | ||
| } | ||
|
|
||
| return sanitizeRemoteText(failure.errorDetail?.message ?? failure.error); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Suggestion: Pre-stop group build trusts a single config to describe every node's local builds
configGroup.find(isServiceBuildRequired)builds from only the first matching node. Group membership is based only on thegroupvalue, and no invariant requires every member to enable the same locally built services;generateEnvsselects the Drive, rs-dapi, and helper build compose files independently for each config. If one member enables a Drive build and another enables only an rs-dapi build, the first config does not build the second member's required image. The pull phase excludes that locally built service, andctx.skipBuildServicessuppresses all later per-node builds, so startup fails only after every node has stopped. Build the union of requirements from all group members before setting the shared skip flag.source: ['codex']