Repository navigation
refactor(e2e): split cloud-experimental-e2e into 4 focused tests (#2644) - #2647
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe PR replaces the monolithic nightly cloud E2E job with four focused GitHub Actions jobs and corresponding standalone E2E scripts, removes legacy/cloud-experimental orchestrators, updates workflow inputs and job dependencies, and adjusts review-path hints and artifact behaviors. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant CI as CI Workflow
participant Job as Job Script
participant Installer as Installer (install.sh)
participant Sandbox as Sandbox (nemoclaw / openshell)
participant Cloud as Cloud Inference API
participant Artifacts as Artifact Storage
CI->>Job: trigger job (e.g., cloud-inference-e2e)
Job->>Installer: run install.sh (--non-interactive) and stream logs
Installer-->>Job: install result
Job->>Sandbox: create/configure sandbox & fetch ssh-config
Job->>Sandbox: forward inference request -> inference.local
Sandbox->>Cloud: proxy request
Cloud-->>Sandbox: inference response
Sandbox-->>Job: return response content
Job->>Artifacts: upload install/logs on failure
Job-->>CI: report PASS/FAIL
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/nightly-e2e.yaml:
- Around line 94-225: Add path_instructions entries in .coderabbit.yaml mapping
each new GH Actions job to the source files they cover: add path_instructions
for cloud-onboard-e2e (include installer scripts like
test/e2e/test-cloud-onboard-e2e.sh, install.sh, any public installer
scripts/landlock policy files), cloud-inference-e2e (include
test/e2e/test-cloud-inference-e2e.sh, inference/*.js|*.py, skills filesystem
code), skill-agent-e2e (include test/e2e/test-skill-agent-e2e.sh, skill
injection code, agent verification logic), and docs-validation-e2e (include
test/e2e/test-docs-validation.sh, CLI command definitions, docs/ and markdown
link validation scripts); ensure each entry uses the path_instructions key and
references the exact job names cloud-onboard-e2e, cloud-inference-e2e,
skill-agent-e2e, docs-validation-e2e so CodeRabbit can associate changed files
with the correct job.
In `@test/e2e/test-cloud-onboard-e2e.sh`:
- Around line 122-138: The interactive-install flag validation currently only
checks prerequisites (INTERACTIVE_INSTALL or
RUN_E2E_CLOUD_ONBOARD_INTERACTIVE_INSTALL) but the actual install invocation
always runs the non-interactive curl | bash path; update the install execution
to branch on the same variable (INTERACTIVE_INSTALL or
RUN_E2E_CLOUD_ONBOARD_INTERACTIVE_INSTALL) and run the interactive expect-based
flow when set: locate the curl ... | bash invocation and replace/augment it with
an alternate branch that invokes the expect script (or an expect heredoc) to
drive the interactive installer, preserving the existing non-interactive curl |
bash behavior in the else branch so the script truly performs interactive
installs when requested.
In `@test/e2e/test-skill-agent-e2e.sh`:
- Around line 142-146: The add-sandbox-skill.sh invocation is missing the
SKILL_DESCRIPTION env var so the script (which expects SKILL_ID and
SKILL_DESCRIPTION) can fail; modify the command that calls add-sandbox-skill.sh
to also export SKILL_DESCRIPTION (in addition to SANDBOX_NAME and SKILL_ID) when
invoking the script so the fixture renderer receives both SKILL_ID and
SKILL_DESCRIPTION.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 28a9dc06-bfe1-436f-9303-39c4e6b64253
📒 Files selected for processing (9)
.github/workflows/nightly-e2e.yamltest/e2e/e2e-cloud-experimental/skip/01-onboard-completion.shtest/e2e/e2e-cloud-experimental/skip/04-nemoclaw-openshell-status-parity.shtest/e2e/e2e-cloud-experimental/skip/05-network-policy.shtest/e2e/test-cloud-inference-e2e.shtest/e2e/test-cloud-onboard-e2e.shtest/e2e/test-docs-validation.shtest/e2e/test-e2e-cloud-experimental.shtest/e2e/test-skill-agent-e2e.sh
💤 Files with no reviewable changes (4)
- test/e2e/test-e2e-cloud-experimental.sh
- test/e2e/e2e-cloud-experimental/skip/01-onboard-completion.sh
- test/e2e/e2e-cloud-experimental/skip/05-network-policy.sh
- test/e2e/e2e-cloud-experimental/skip/04-nemoclaw-openshell-status-parity.sh
| if [ "$INTERACTIVE_INSTALL" != "1" ]; then | ||
| if [ "${NEMOCLAW_NON_INTERACTIVE:-}" != "1" ]; then | ||
| fail "NEMOCLAW_NON_INTERACTIVE=1 is required for non-interactive install" | ||
| exit 1 | ||
| fi | ||
| if [ "${NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE:-}" != "1" ]; then | ||
| fail "NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE=1 is required for non-interactive install" | ||
| exit 1 | ||
| fi | ||
| pass "Non-interactive mode configured" | ||
| else | ||
| if ! command -v expect >/dev/null 2>&1; then | ||
| fail "expect not on PATH (required for interactive install)" | ||
| exit 1 | ||
| fi | ||
| pass "Interactive install mode (expect available)" | ||
| fi |
There was a problem hiding this comment.
RUN_E2E_CLOUD_ONBOARD_INTERACTIVE_INSTALL=1 is currently a no-op.
Lines 122-138 validate an interactive path with expect, but Line 166 always executes the same non-interactive curl ... | bash flow. Setting RUN_E2E_CLOUD_ONBOARD_INTERACTIVE_INSTALL=1 changes prerequisite validation only; the install mode itself never changes.
Also applies to: 166-173
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@test/e2e/test-cloud-onboard-e2e.sh` around lines 122 - 138, The
interactive-install flag validation currently only checks prerequisites
(INTERACTIVE_INSTALL or RUN_E2E_CLOUD_ONBOARD_INTERACTIVE_INSTALL) but the
actual install invocation always runs the non-interactive curl | bash path;
update the install execution to branch on the same variable (INTERACTIVE_INSTALL
or RUN_E2E_CLOUD_ONBOARD_INTERACTIVE_INSTALL) and run the interactive
expect-based flow when set: locate the curl ... | bash invocation and
replace/augment it with an alternate branch that invokes the expect script (or
an expect heredoc) to drive the interactive installer, preserving the existing
non-interactive curl | bash behavior in the else branch so the script truly
performs interactive installs when requested.
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.coderabbit.yaml (1)
335-336: Splitfeatures/**mapping to route lib helpers tocloud-inference-e2e.Line 335 currently routes the entire
test/e2e/e2e-cloud-experimental/features/**subtree toskill-agent-e2e. However,test-cloud-inference-e2e.shconsumes helpers underfeatures/skill/lib/(e.g.,validate_repo_skills.sh,validate_sandbox_openclaw_skills.sh), meaning changes to those files won't surfacecloud-inference-e2eas a recommendation.Consider splitting the mapping: route
features/skill/lib/**tocloud-inference-e2ewhile keeping agent-specific features underskill-agent-e2e, or include both job recommendations in the mapped instruction text.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.coderabbit.yaml around lines 335 - 336, The mapping in .coderabbit.yaml currently routes "test/e2e/e2e-cloud-experimental/features/**" solely to *e2e-skill-agent, which hides changes to helpers under features/skill/lib/**; update the mapping so that features/skill/lib/** is routed to the cloud-inference-e2e recommendation (while keeping the remainder of features/** routed to skill-agent-e2e), or alternatively change the instruction text for "test/e2e/e2e-cloud-experimental/features/**" to include both job recommendations (skill-agent-e2e and cloud-inference-e2e) so edits to validate_repo_skills.sh and validate_sandbox_openclaw_skills.sh will surface the cloud-inference-e2e suggestion.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@test/e2e/test-skill-agent-e2e.sh`:
- Around line 181-190: Fuzzy-match logic can mark a failed verifier run as PASS
because the verifier's error text includes the token; update the condition that
checks collapsed/ token_lower so it only treats matches as success when the
verifier actually exited zero. Concretely, in the block using collapsed,
token_lower, agent_out and agent_rc (the fuzzy match), add an agent_rc check
(e.g., require agent_rc -eq 0) before logging PASS and setting agent_ok, or
alternatively filter out the verifier's known failure phrase, but preferred fix
is to only accept fuzzy matches when agent_rc == 0.
---
Nitpick comments:
In @.coderabbit.yaml:
- Around line 335-336: The mapping in .coderabbit.yaml currently routes
"test/e2e/e2e-cloud-experimental/features/**" solely to *e2e-skill-agent, which
hides changes to helpers under features/skill/lib/**; update the mapping so that
features/skill/lib/** is routed to the cloud-inference-e2e recommendation (while
keeping the remainder of features/** routed to skill-agent-e2e), or
alternatively change the instruction text for
"test/e2e/e2e-cloud-experimental/features/**" to include both job
recommendations (skill-agent-e2e and cloud-inference-e2e) so edits to
validate_repo_skills.sh and validate_sandbox_openclaw_skills.sh will surface the
cloud-inference-e2e suggestion.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 84b2a37b-46d2-4067-987e-ccf1a74a3f08
📒 Files selected for processing (3)
.coderabbit.yamltest/e2e/test-cloud-onboard-e2e.shtest/e2e/test-skill-agent-e2e.sh
| # Check if the token appears in the output even though the script exited non-zero | ||
| # (e.g., wrapped in quotes or explanation text that the strict grep missed) | ||
| collapsed=$(printf '%s' "$agent_out" | tr -d '\n\r' | tr -d '`"'\''' | tr '[:upper:]' '[:lower:]') | ||
| token_lower=$(printf '%s' "$VERIFY_TOKEN" | tr '[:upper:]' '[:lower:]') | ||
| if printf '%s' "$collapsed" | grep -Fq "$token_lower"; then | ||
| info "Token found in output (fuzzy match — script exited ${agent_rc} but token present)" | ||
| pass "Agent returned ${VERIFY_TOKEN} via fuzzy match (attempt ${attempt}/${MAX_ATTEMPTS})" | ||
| agent_ok=1 | ||
| break | ||
| fi |
There was a problem hiding this comment.
Non-zero verifier exits can be misclassified as PASS
At Line 183, the fuzzy match checks the entire agent_out after a non-zero exit. verify-sandbox-skill-via-agent.sh includes ${VERIFY_TOKEN} in its failure text (“token ... not found”), so this branch can turn genuine failures into passes.
🐛 Proposed fix
- # Check if the token appears in the output even though the script exited non-zero
- # (e.g., wrapped in quotes or explanation text that the strict grep missed)
- collapsed=$(printf '%s' "$agent_out" | tr -d '\n\r' | tr -d '`"'\''' | tr '[:upper:]' '[:lower:]')
- token_lower=$(printf '%s' "$VERIFY_TOKEN" | tr '[:upper:]' '[:lower:]')
- if printf '%s' "$collapsed" | grep -Fq "$token_lower"; then
- info "Token found in output (fuzzy match — script exited ${agent_rc} but token present)"
- pass "Agent returned ${VERIFY_TOKEN} via fuzzy match (attempt ${attempt}/${MAX_ATTEMPTS})"
- agent_ok=1
- break
- fi
-
last_fail="Agent verification failed (exit ${agent_rc}): ${agent_out:0:400}"📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| # Check if the token appears in the output even though the script exited non-zero | |
| # (e.g., wrapped in quotes or explanation text that the strict grep missed) | |
| collapsed=$(printf '%s' "$agent_out" | tr -d '\n\r' | tr -d '`"'\''' | tr '[:upper:]' '[:lower:]') | |
| token_lower=$(printf '%s' "$VERIFY_TOKEN" | tr '[:upper:]' '[:lower:]') | |
| if printf '%s' "$collapsed" | grep -Fq "$token_lower"; then | |
| info "Token found in output (fuzzy match — script exited ${agent_rc} but token present)" | |
| pass "Agent returned ${VERIFY_TOKEN} via fuzzy match (attempt ${attempt}/${MAX_ATTEMPTS})" | |
| agent_ok=1 | |
| break | |
| fi | |
| # Check if the token appears in the output even though the script exited non-zero | |
| # (e.g., wrapped in quotes or explanation text that the strict grep missed) | |
| if printf '%s' "$agent_out" | grep -Fq "$VERIFY_TOKEN"; then | |
| info "Token found in output (script exited ${agent_rc} but token present)" | |
| pass "Agent returned ${VERIFY_TOKEN} (attempt ${attempt}/${MAX_ATTEMPTS})" | |
| agent_ok=1 | |
| break | |
| fi | |
| last_fail="Agent verification failed (exit ${agent_rc}): ${agent_out:0:400}" |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@test/e2e/test-skill-agent-e2e.sh` around lines 181 - 190, Fuzzy-match logic
can mark a failed verifier run as PASS because the verifier's error text
includes the token; update the condition that checks collapsed/ token_lower so
it only treats matches as success when the verifier actually exited zero.
Concretely, in the block using collapsed, token_lower, agent_out and agent_rc
(the fuzzy match), add an agent_rc check (e.g., require agent_rc -eq 0) before
logging PASS and setting agent_ok, or alternatively filter out the verifier's
known failure phrase, but preferred fix is to only accept fuzzy matches when
agent_rc == 0.
Replace the 931-line cloud-experimental-e2e monolith with 4 independent, focused E2E tests: - cloud-onboard-e2e: public installer + Landlock + security checks - cloud-inference-e2e: live chat via inference.local + skill filesystem - skill-agent-e2e: skill injection + agent verification (with retry + fuzzy match) - docs-validation-e2e: CLI/docs parity via check-docs.sh Key improvements: - Flaky Phase 5d (skill agent) no longer blocks Landlock/security signal - Phase 5e (TUI smoke) dropped from nightly — timing-dependent expect - Phase 5f (docs validation) re-enabled as own job (root cause fixed by #2446) - Each test installs independently — no cascade failures - skill-agent-e2e adds retry logic + fuzzy token matching for LLM non-determinism Also removes dead scripts from e2e-cloud-experimental/skip/ (01-onboard-completion, 04-nemoclaw-openshell-status-parity, 05-network-policy — all covered by dedicated jobs). Fixes #2644 Signed-off-by: Jessica Yaunches <[email protected]>
9d20b2b to
994cca2
Compare
The BugIn test-skill-agent-e2e.sh (Phase 3, the fuzzy fallback around line 175-185): When the helper verify-sandbox-skill-via-agent.sh fails with rc=1, the parent script captures all output (stdout+stderr) into collapsed=$(printf '%s' "$agent_out" | tr -d '\n\r' | tr -d '`"'\''' | tr '[:upper:]' '[:lower:]')
token_lower=$(printf '%s' "$VERIFY_TOKEN" | tr '[:upper:]' '[:lower:]')
if printf '%s' "$collapsed" | grep -Fq "$token_lower"; thenThe helper's own error message contains the token literally: When VERIFY_TOKEN=weather (or any value that could appear in diagnostic output), the error message echoes the token value in the Why the helper rejects itThe helper has a guard (lines 55-58 of verify-sandbox-skill-via-agent.sh) that correctly rejects runs where SKILL_VERIFY_PROMPT Practical impactWith the default fixture values (VERIFY_TOKEN=SKILL_SMOKE_VERIFY_K9X2), this is unlikely to trigger accidentally — that token won't
Recommended fixThe fuzzy fallback in test-skill-agent-e2e.sh should only search the agent's actual output section, not the helper's error/diagnostic
Option 3 is the most robust. The helper already prints delimited agent output (--- agent stdout/stderr --- / --- end ---), so the |
994cca2 to
f465bb7
Compare
- Add .coderabbit.yaml path_instructions for all 4 new E2E jobs - Fix interactive install no-op in test-cloud-onboard-e2e.sh (branch on INTERACTIVE_INSTALL flag to use expect vs non-interactive curl) - Pass SKILL_DESCRIPTION to add-sandbox-skill.sh in test-skill-agent-e2e.sh Signed-off-by: Jessica Yaunches <[email protected]>
f465bb7 to
b93d195
Compare
|
Good catch @brandonpelfrey — fixed in the latest push. The fuzzy fallback now extracts only the delimited agent output section ( |
There was a problem hiding this comment.
♻️ Duplicate comments (1)
test/e2e/test-skill-agent-e2e.sh (1)
182-191:⚠️ Potential issue | 🔴 CriticalRestrict fuzzy matching to agent payload only (not helper diagnostics).
At Line 184, fuzzy matching still scans the full captured output, so helper failure text that includes the token can produce a false PASS and mask a real verification failure.
🔧 Proposed fix
- collapsed=$(printf '%s' "$agent_out" | tr -d '\n\r' | tr -d '`"'\''' | tr '[:upper:]' '[:lower:]') + # Limit fuzzy matching to the helper's delimited agent payload section only. + agent_payload=$( + printf '%s\n' "$agent_out" \ + | sed -n '/--- agent stdout\/stderr ---/,/--- end ---/p' \ + | sed '1d;$d' + ) + collapsed=$(printf '%s' "$agent_payload" | tr -d '\n\r' | tr -d '`"'\''' | tr '[:upper:]' '[:lower:]') token_lower=$(printf '%s' "$VERIFY_TOKEN" | tr '[:upper:]' '[:lower:]') - if printf '%s' "$collapsed" | grep -Fq "$token_lower"; then + if [ -n "$agent_payload" ] && printf '%s' "$collapsed" | grep -Fq "$token_lower"; then info "Token found in output (fuzzy match — script exited ${agent_rc} but token present)" pass "Agent returned ${VERIFY_TOKEN} via fuzzy match (attempt ${attempt}/${MAX_ATTEMPTS})" agent_ok=1 break fi🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@test/e2e/test-skill-agent-e2e.sh` around lines 182 - 191, The fuzzy-match currently uses the whole captured output variable agent_out (via collapsed) which can include helper diagnostic text; restrict fuzzy matching to only the agent's payload by extracting the payload portion from agent_out (e.g., the agent_stdout/agent_payload section) and run the lowercase/strip operations on that payload instead of agent_out; then compare token_lower against the collapsed payload and keep the existing info/pass/agent_ok/attempt logic (variables referenced: agent_out, collapsed, token_lower, VERIFY_TOKEN, agent_rc, info, pass, agent_ok, attempt, MAX_ATTEMPTS).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Duplicate comments:
In `@test/e2e/test-skill-agent-e2e.sh`:
- Around line 182-191: The fuzzy-match currently uses the whole captured output
variable agent_out (via collapsed) which can include helper diagnostic text;
restrict fuzzy matching to only the agent's payload by extracting the payload
portion from agent_out (e.g., the agent_stdout/agent_payload section) and run
the lowercase/strip operations on that payload instead of agent_out; then
compare token_lower against the collapsed payload and keep the existing
info/pass/agent_ok/attempt logic (variables referenced: agent_out, collapsed,
token_lower, VERIFY_TOKEN, agent_rc, info, pass, agent_ok, attempt,
MAX_ATTEMPTS).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: e4add873-3959-4018-92cb-6076509abc24
📒 Files selected for processing (4)
.coderabbit.yamltest/e2e/test-cloud-onboard-e2e.shtest/e2e/test-docs-validation.shtest/e2e/test-skill-agent-e2e.sh
🚧 Files skipped from review as they are similar to previous changes (1)
- test/e2e/test-docs-validation.sh
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@test/e2e/test-docs-validation.sh`:
- Around line 135-140: The comment "Remote link probes can fail due to rate
limiting (429) — warn but don't block" contradicts the actual behavior because
the script calls fail and exits (uses fail and exit 1) when
CHECK_DOC_LINKS_REMOTE is enabled; update the comment to reflect that link
validation will cause a non‑zero exit (i.e., it will block CI) or alternatively
change the behavior to only warn by removing the fail/exit and relying on info;
locate the CHECK_DOC_LINKS_REMOTE check, the info call, the fail invocation and
the links_rc variable in the script and either rewrite the comment to accurately
state that remote link failures will fail the run or modify the failure path
(remove fail/exit) if you intend to truly "warn but don't block."
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 3fb9c0e6-af17-4281-9b5f-b985083819c1
📒 Files selected for processing (4)
.coderabbit.yamltest/e2e/test-cloud-onboard-e2e.shtest/e2e/test-docs-validation.shtest/e2e/test-skill-agent-e2e.sh
🚧 Files skipped from review as they are similar to previous changes (2)
- test/e2e/test-skill-agent-e2e.sh
- test/e2e/test-cloud-onboard-e2e.sh
| # Remote link probes can fail due to rate limiting (429) — warn but don't block | ||
| if [ "${CHECK_DOC_LINKS_REMOTE:-1}" != "0" ]; then | ||
| info "Link validation failed — may be due to remote rate limiting. Re-run with CHECK_DOC_LINKS_REMOTE=0 to check local links only." | ||
| fi | ||
| fail "Markdown link validation failed (exit ${links_rc})" | ||
| exit 1 |
There was a problem hiding this comment.
Fix contradictory comment vs behavior in link-failure path.
Line 135 says “warn but don't block,” but Line 140 exits with failure. Please make the comment match the actual behavior to avoid future confusion.
Suggested patch
- # Remote link probes can fail due to rate limiting (429) — warn but don't block
+ # Remote link probes can fail due to rate limiting (429); warn with remediation, then fail.📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| # Remote link probes can fail due to rate limiting (429) — warn but don't block | |
| if [ "${CHECK_DOC_LINKS_REMOTE:-1}" != "0" ]; then | |
| info "Link validation failed — may be due to remote rate limiting. Re-run with CHECK_DOC_LINKS_REMOTE=0 to check local links only." | |
| fi | |
| fail "Markdown link validation failed (exit ${links_rc})" | |
| exit 1 | |
| # Remote link probes can fail due to rate limiting (429); warn with remediation, then fail. | |
| if [ "${CHECK_DOC_LINKS_REMOTE:-1}" != "0" ]; then | |
| info "Link validation failed — may be due to remote rate limiting. Re-run with CHECK_DOC_LINKS_REMOTE=0 to check local links only." | |
| fi | |
| fail "Markdown link validation failed (exit ${links_rc})" | |
| exit 1 |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@test/e2e/test-docs-validation.sh` around lines 135 - 140, The comment "Remote
link probes can fail due to rate limiting (429) — warn but don't block"
contradicts the actual behavior because the script calls fail and exits (uses
fail and exit 1) when CHECK_DOC_LINKS_REMOTE is enabled; update the comment to
reflect that link validation will cause a non‑zero exit (i.e., it will block CI)
or alternatively change the behavior to only warn by removing the fail/exit and
relying on info; locate the CHECK_DOC_LINKS_REMOTE check, the info call, the
fail invocation and the links_rc variable in the script and either rewrite the
comment to accurately state that remote link failures will fail the run or
modify the failure path (remove fail/exit) if you intend to truly "warn but
don't block."
Signed-off-by: Julie Yaunches <[email protected]>
078380d to
cecf7c8
Compare
Signed-off-by: Julie Yaunches <[email protected]>
This reverts commit cecf7c8.
Signed-off-by: Julie Yaunches <[email protected]>
…DIA#2644) (NVIDIA#2647) ## Summary Replace the 931-line `cloud-experimental-e2e` monolith with 4 independent, focused E2E tests. Flaky phases no longer block signal from stable phases. Fixes NVIDIA#2644 ## New Jobs | Job | What it tests | Timeout | Former phases | |-----|--------------|---------|---------------| | `cloud-onboard-e2e` | Public installer, Landlock enforcement, API key leak detection, inference.local HTTPS | 45 min | 0, 1, 3, 5 checks, 6 | | `cloud-inference-e2e` | Live chat via inference.local, skill filesystem validation | 30 min | 5b, 5c | | `skill-agent-e2e` | Skill injection + agent verification (with retry + fuzzy match) | 30 min | 5d | | `docs-validation-e2e` | CLI/docs parity (nemoclaw --help vs commands.md) | 15 min | 5f | ## Key Improvements - **Flaky Phase 5d** (skill agent) no longer blocks Landlock/security signal - **Phase 5e** (TUI smoke) dropped from nightly — timing-dependent expect with 7+ tunable sleeps is fundamentally unsuited for CI - **Phase 5f** (docs validation) re-enabled as its own job — root cause fixed by NVIDIA#2446 (typed command registry) - Each test installs independently — no cascade failures - `skill-agent-e2e` adds **retry logic** (3 attempts, 15s between) and **fuzzy token matching** (case-insensitive, strips quotes/backticks) to handle LLM non-determinism - Remote link probing disabled for docs validation (`CHECK_DOC_LINKS_REMOTE=0`) to avoid 429 rate-limit flakes ## Deleted - `test/e2e/test-e2e-cloud-experimental.sh` (931-line monolith) - `test/e2e/e2e-cloud-experimental/skip/` (3 dead scripts — coverage already exists in dedicated jobs: `network-policy-e2e`, `sandbox-operations-e2e`) ## Kept - All helpers under `test/e2e/e2e-cloud-experimental/` (checks/, features/, cleanup.sh, check-docs.sh) — referenced by the new scripts ## Type of Change - Code change (refactor) ## Verification - YAML validated locally - All 29 nightly jobs have selective dispatch guards (validated with script) - All 4 new jobs in `notify-on-failure` and `report-to-pr` needs lists - `workflow_dispatch.inputs.jobs` description updated with new job names <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Replaced one monolithic nightly E2E job with four targeted nightly jobs (onboard, inference, skill-agent, docs validation); updated notification/reporting workflow dependencies and workflow inputs. * Shortened job timeouts and adjusted failure-artifact uploads for clearer, faster diagnostics. * Updated review tooling guidance to map paths to the new E2E jobs. * **Tests** * Added standalone E2E runners for cloud onboarding, cloud inference, skill-agent verification, and docs validation. * Removed legacy experimental E2E orchestration and several obsolete test scripts. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jessica Yaunches <[email protected]> Signed-off-by: Julie Yaunches <[email protected]>
Summary
Replace the 931-line
cloud-experimental-e2emonolith with 4 independent, focused E2E tests. Flaky phases no longer block signal from stable phases.Fixes #2644
New Jobs
cloud-onboard-e2ecloud-inference-e2eskill-agent-e2edocs-validation-e2eKey Improvements
skill-agent-e2eadds retry logic (3 attempts, 15s between) and fuzzy token matching (case-insensitive, strips quotes/backticks) to handle LLM non-determinismCHECK_DOC_LINKS_REMOTE=0) to avoid 429 rate-limit flakesDeleted
test/e2e/test-e2e-cloud-experimental.sh(931-line monolith)test/e2e/e2e-cloud-experimental/skip/(3 dead scripts — coverage already exists in dedicated jobs:network-policy-e2e,sandbox-operations-e2e)Kept
test/e2e/e2e-cloud-experimental/(checks/, features/, cleanup.sh, check-docs.sh) — referenced by the new scriptsType of Change
Verification
notify-on-failureandreport-to-prneeds listsworkflow_dispatch.inputs.jobsdescription updated with new job namesSummary by CodeRabbit
Chores
Tests