Skip to content

ci(nightly): fix Prettier formatting in nightly-e2e.yaml - #2365

Closed
jyaunches wants to merge 2 commits into
mainfrom
fix/prettier-nightly-e2e
Closed

jyaunches wants to merge 2 commits into
mainfrom
fix/prettier-nightly-e2e

Conversation

@jyaunches

@jyaunches jyaunches commented Apr 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fix Prettier formatting in .github/workflows/nightly-e2e.yaml that is breaking the checks CI job for all PRs on main.

Related Issue

Caused by #2351 which was merged at 2026-04-23T14:11. Every main CI run since then fails with Files were modified by following hooks...Failed.

Changes

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

AI Disclosure

  • AI-assisted — tool: pi (Claude)

Signed-off-by: Julie Yaunches [email protected]

Summary by CodeRabbit

  • Chores
    • Reformatted CI/CD workflow configuration for improved readability and maintainability. No functional changes to job behavior or permissions; pipeline logic and failure handling remain unchanged.

PR #2351 introduced long single-line needs/if arrays that Prettier
wants wrapped.  This breaks the 'Files were modified by following
hooks' check for all PRs.

Signed-off-by: Test User <[email protected]>
@jyaunches jyaunches 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: b87da004-28c3-4613-8fbc-edb6c9a97b7d

📥 Commits

Reviewing files that changed from the base of the PR and between 3e97a1e and e90cbc7.

📒 Files selected for processing (1)
  • .github/workflows/nightly-e2e.yaml
✅ Files skipped from review due to trivial changes (1)
  • .github/workflows/nightly-e2e.yaml

📝 Walkthrough

Walkthrough

A GitHub Actions workflow file is reformatted: the notify-on-failure job's needs value is changed from an inline single-line array to a multi-line YAML bracketed array with no changes to dependencies, conditions, or behavior.

Changes

Cohort / File(s) Summary
Workflow Configuration
.github/workflows/nightly-e2e.yaml
Reformatted the notify-on-failure job's needs field from a compact inline array to a multi-line bracketed YAML list. No functional changes to job dependencies, if condition, runs-on, permissions, or subsequent steps.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 I hopped through YAML, neat and spry,
Brackets stacked beneath the sky,
Same dependencies, tidy view—
A little hop for readability too! 🥕✨

🚥 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: fixing Prettier formatting issues in the nightly-e2e.yaml workflow file.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ 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 fix/prettier-nightly-e2e

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

@prekshivyas

Copy link
Copy Markdown
Collaborator

Thanks for the cleanup — the Prettier-formatted version is a fine end state. But I want to flag a discrepancy before it lands: I'm not sure this PR is actually fixing a current problem.

Main's checks job has been green since before this PR was authored:

Time Event checks on main
14:11 #2351 merged ❌ Failed
15:03 Revert of #2337 ❌ Failed
15:12 Revert of #2351 Cancelled (superseded)
15:17 #2361 merged ✅ Passed
15:39 This PR created (main already green)
15:46 #2313 merged ✅ Passed

And the Prettier hooks in .pre-commit-config.yaml don't target workflow YAML:

  • prettier-plugin → files: ^nemoclaw/.*\.ts$
  • prettier-js → files: ^(bin|test)/.*\.js$

Neither matches .github/workflows/nightly-e2e.yaml. Looking at the failed run from the #2351 merge, the "Files were modified by following hooks" failure likely came from one of the priority-0 fixers (trim trailing whitespace, fix end of files, mixed line ending) — not from Prettier.

That issue was fixed by the revert of #2351 at 15:12, 27 minutes before this PR was created.

Two questions worth answering before merge:

  1. What specific CI failure were you seeing when you authored this PR? If you have a failing-main run link from after 15:17, great — that's new information and I'm missing something. If not, the "breaking the checks CI job for all PRs on main" framing in the description may be stale.
  2. Is the goal to make the file Prettier-compliant even though CI doesn't check it? If so, that's a reasonable cleanup — just worth rewording the description so it doesn't claim to fix a CI break that's already fixed.

The change itself is harmless — multi-line needs: is easier to read, and prettier --write also cleans up any trailing whitespace / EOL issues as a side effect. Just want to make sure we're landing it for the right reason.

@jyaunches jyaunches closed this Apr 23, 2026
jyaunches pushed a commit that referenced this pull request Apr 23, 2026
…() (#2371)

## 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
- [x] 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
- [x] `npx prek run --all-files` passes
- [x] `npm test` passes
- [ ] Tests added or updated for new or changed behavior
- [x] 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](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md)
(doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)

## AI Disclosure
- [x] AI-assisted — tool: Claude Code

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

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

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

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Brandon Pelfrey <[email protected]>
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions chore Build, CI, dependency, or tooling maintenance and removed CI/CD labels Jun 3, 2026
@cv
cv deleted the fix/prettier-nightly-e2e branch June 28, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions chore Build, CI, dependency, or tooling maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants