Skip to content

ci(nightly-e2e): replace per-job failure check with wildcard contains() - #2371

Merged
jyaunches merged 1 commit into
mainfrom
ci/simplify-nightly-failure-check
Apr 23, 2026
Merged

jyaunches merged 1 commit into
mainfrom
ci/simplify-nightly-failure-check

Conversation

@brandonpelfrey

@brandonpelfrey brandonpelfrey commented Apr 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replace the massive per-job needs.<job>.result == 'failure' condition in the notify-on-failure job with the idiomatic contains(needs.*.result, 'failure') wildcard. This is simpler, easier to read, and doesn't need updating every time a new E2E job is added.

Related Issue

Closes #2365

Changes

  • .github/workflows/nightly-e2e.yaml: Replace 18-way || chain of needs.<job>.result == 'failure' with contains(needs.*.result, 'failure') in the notify-on-failure job's if: condition.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Verification

  • npx prek run --all-files passes
  • npm test passes
  • Tests added or updated for new or changed behavior
  • No secrets, API keys, or credentials committed
  • Docs updated for user-facing behavior changes
  • make docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

AI Disclosure

  • AI-assisted — tool: Claude Code

Signed-off-by: Brandon Pelfrey [email protected]

Summary by CodeRabbit

  • Chores
    • Improved efficiency of E2E test failure notification logic in the continuous integration pipeline.

@brandonpelfrey brandonpelfrey self-assigned this Apr 23, 2026
@coderabbitai

coderabbitai Bot commented Apr 23, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 78b60fe8-def2-408c-8e70-24c636afd6e1

📥 Commits

Reviewing files that changed from the base of the PR and between 40df9d8 and b7ccee4.

📒 Files selected for processing (1)
  • .github/workflows/nightly-e2e.yaml

📝 Walkthrough

Walkthrough

The .github/workflows/nightly-e2e.yaml file's notify-on-failure job condition was refactored to use a consolidated contains(needs.*.result, 'failure') expression instead of enumerating individual job failures. The change improves readability and aligns with Prettier formatting standards while maintaining equivalent functionality.

Changes

Cohort / File(s) Summary
Workflow Condition Refactoring
.github/workflows/nightly-e2e.yaml
Simplified if: condition in notify-on-failure job from explicit `

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A line too long, so tangled and tight,
Now gracefully shortened, a Prettier sight!
Failure detection still runs true and clear,
With cleaner syntax, let's give a cheer! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: replacing a per-job failure check condition with a wildcard contains() function in the nightly-e2e workflow.
Linked Issues check ✅ Passed The PR addresses the Prettier formatting requirement from issue #2365 by simplifying the if condition, though the summary indicates the change goes beyond just formatting to improve maintainability.
Out of Scope Changes check ✅ Passed The change modifies only the notify-on-failure job's if condition as intended, with no unrelated alterations to other workflow steps or logic.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/simplify-nightly-failure-check

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


Comment @coderabbitai help to get the list of available commands and usage tips.

@jyaunches
jyaunches self-requested a review April 23, 2026 17:19
@jyaunches
jyaunches merged commit 885c75b into main Apr 23, 2026
20 checks passed
jyaunches added a commit that referenced this pull request Apr 23, 2026
Merge main into fix/nightly-e2e-repairs-v4, resolving conflicts:
- nightly-e2e.yaml: keep contains(needs.*.result, 'failure') from #2371,
  remove cloud-experimental-e2e from notify-on-failure needs array
- test-snapshot-commands.sh: keep exit-code check from this PR + tolerant
  grep regex from #2314

Address reviewer feedback:
- Drop NEMOCLAW_RECREATE_SANDBOX from deployment-services to avoid
  re-introducing the delete+create race fixed in #2313 (@prekshivyas)
- Update cloud-experimental-e2e disable comment: drop stale Landlock
  mention (fixed in OpenShell#810 v0.0.32+), reference only docs-drift
  (@prekshivyas)
- Extract dump_diagnostics() in test-snapshot-commands.sh to centralize
  duplicate probes from fail() and Phase 2b (CodeRabbit)
@wscurran wscurran added the chore Build, CI, dependency, or tooling maintenance label Jun 8, 2026
@cv
cv deleted the ci/simplify-nightly-failure-check branch June 28, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Build, CI, dependency, or tooling maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants