-
Notifications
You must be signed in to change notification settings - Fork 3.1k
fix(e2e): fix 3 stale assertions in newly-wired nightly E2E tests #2656
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c6edcfc
fix(e2e): update stale gateway-reuse grep in double-onboard test
jyaunches 2b51511
fix(e2e): assert gateway reuse via container ID instead of log grep
jyaunches 9ad4edd
fix(e2e): simulate interrupted state instead of relying on policy-mod…
jyaunches 9fb78d1
fix(e2e): same interrupted-state fix for onboard-resume test
jyaunches 1019da9
merge(main): resolve conflicts for PR 2656
cv 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
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.
🧩 Analysis chain
🏁 Script executed:
Repository: NVIDIA/NemoClaw
Length of output: 168
🏁 Script executed:
# First, check if the file exists and read the relevant sections wc -l test/e2e/test-double-onboard.shRepository: NVIDIA/NemoClaw
Length of output: 95
🏁 Script executed:
Repository: NVIDIA/NemoClaw
Length of output: 631
🏁 Script executed:
Repository: NVIDIA/NemoClaw
Length of output: 1057
🏁 Script executed:
# Check for SPDX header and shebang at the start of the file head -5 test/e2e/test-double-onboard.shRepository: NVIDIA/NemoClaw
Length of output: 248
🏁 Script executed:
# Check if file is executable ls -la test/e2e/test-double-onboard.shRepository: NVIDIA/NemoClaw
Length of output: 141
🌐 Web query:
Docker ps filter name exact match vs partial match documentation💡 Result:
The docker ps (or docker container ls) command with --filter name=VALUE (or -f name=VALUE) performs a partial substring match by default, not an exact match. This is explicitly stated in the official Docker documentation. For partial match: - docker ps --filter "name=nostalgic" matches containers like i_am_nostalgic, nostalgic_stallman, and nostalgic_shockley. For exact match: - Use regex anchors: docker ps --filter "name=^exactname$" to match only containers named precisely "exactname". The ^ anchors to the start and $ to the end of the name string. This behavior is consistent across Docker CLI reference pages and manpages. Note that container names are unique, but the filter matches substrings unless regex is used. There is no built-in exact-match flag without regex; workarounds like piping to grep exist but are not native to the filter.
Citations:
🏁 Script executed:
Repository: NVIDIA/NemoClaw
Length of output: 646
🏁 Script executed:
Repository: NVIDIA/NemoClaw
Length of output: 391
Use exact Docker name filtering to prevent nondeterministic container ID selection.
The
docker ps -qf "name=openshell-cluster-nemoclaw"filter on lines 277, 289, 320, and 332 performs partial substring matching by default. Combined with| head -1, this can select the wrong container if similarly named containers exist (e.g., "openshell-cluster-nemoclaw-backup"), causing flaky assertions.Use regex anchors to match the exact container name:
Proposed fix
🤖 Prompt for AI Agents