fix(ci): quote output in repeat_cmd_until to prevent flaky E2E deploys#2678
Open
manaswinidas wants to merge 1 commit intokubeflow:mainfrom
Open
fix(ci): quote output in repeat_cmd_until to prevent flaky E2E deploys#2678manaswinidas wants to merge 1 commit intokubeflow:mainfrom
manaswinidas wants to merge 1 commit intokubeflow:mainfrom
Conversation
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
…2E deploys When multiple pods exist during a rollout, the jsonpath query returns multiple image values. The unquoted $output in the [ ] test causes "too many arguments" errors, making the condition never succeed and the deploy step spin for the full 500s timeout before failing. Switch to [[ ]] with quoted "$output" to handle multi-value output. Assisted-by: Claude (Anthropic) Signed-off-by: manaswinidas <dasmanaswini10@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: manaswinidas <dasmanaswini10@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
8e8b381 to
29c8911
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Fixes a flaky E2E test failure in the "Deploy Model Registry using manifests" step.
During a deployment rollout, when multiple pods temporarily co-exist with different images, the
repeat_cmd_untilfunction inscripts/utils.shreceives multi-value output from the jsonpath query (e.g., two image names separated by a newline). The unquoted$outputin the[ ]test expands to multiple words, causing a[: too many argumentserror. This makes the condition never succeed, so the deploy step spins for the full 500-second timeout before failing.Fix: Switch from
[ $output $condition ]to[[ "$output" $condition ]], which properly handles multi-word values.Example of the failure (from this CI run, attempt 1):
How Has This Been Tested?
Verified the shell behavior locally:
Test Impact
No new tests needed — this fixes CI infrastructure flakiness, not application code.
Assisted-by: Claude (Anthropic)
Made with Cursor