Skip to content

Added nx-cloud start-ci-run to Nx-orchestrated CI jobs - #28843

Merged
9larsons merged 1 commit into
mainfrom
ci-nx-start-ci-run
Jun 23, 2026
Merged

Added nx-cloud start-ci-run to Nx-orchestrated CI jobs#28843
9larsons merged 1 commit into
mainfrom
ci-nx-start-ci-run

Conversation

@9larsons

@9larsons 9larsons commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Calls nx-cloud start-ci-run once in job_setup, before any other nx command (the affected-project queries). Downstream lint/admin/unit/acceptance/legacy/playwright jobs run nx tasks that attribute to this Pipeline Execution via the shared GITHUB_RUN_ID. Surfaces per-task analytics (cache hit rates, durations, flake counts) in the Nx Cloud dashboard grouped per workflow run.

Tasks invoked outside Nx (i18n filter, Tinybird, version/migration scripts) remain uncorrelated.

Test plan

  • CI green on this PR
  • Pipeline Execution shows up in Nx Cloud dashboard for this PR's workflow with tasks from all six nx-running jobs grouped under one entry

@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 56e7452d-803e-48c9-b50f-ec7f820eb332

📥 Commits

Reviewing files that changed from the base of the PR and between 1a81d16 and 7bc0493.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/ci.yml

Walkthrough

The CI workflow file is updated to insert a new "Start Nx Cloud CI run" step in the job_setup job immediately after the "Install dependencies" step. The step executes pnpm nx start-ci-run to initialize an Nx Cloud CI run. No other job logic, configuration, or step ordering is changed.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding the nx-cloud start-ci-run command to CI job setup, which is the core modification in the changeset.
Description check ✅ Passed The description is directly related to the changeset, explaining the purpose of the nx-cloud start-ci-run command and its impact on Nx Cloud analytics aggregation.
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 ci-nx-start-ci-run

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@nx-cloud

nx-cloud Bot commented Jun 23, 2026

Copy link
Copy Markdown

🤖 Nx Cloud AI Fix

Ensure the fix-ci command is configured to always run in your CI pipeline to get automatic fixes in future runs. For more information, please see https://nx.dev/ci/features/self-healing-ci


View your CI Pipeline Execution ↗ for commit 12451a5

Command Status Duration Result
nx run @tryghost/admin-x-settings:test:acceptance ✅ Succeeded 9m 25s View ↗
nx run ghost:test:ci:integration:no-coverage ✅ Succeeded 2m 35s View ↗
nx run ghost:test:ci:integration ✅ Succeeded 2m 13s View ↗
nx run ghost:test:ci:legacy ✅ Succeeded 2m 48s View ↗
nx run ghost:test:ci:e2e:no-coverage ✅ Succeeded 2m 33s View ↗
nx run ghost:test:ci:e2e ✅ Succeeded 2m 28s View ↗
nx build @tryghost/sodo-search ✅ Succeeded <1s View ↗
nx build @tryghost/signup-form ✅ Succeeded <1s View ↗
Additional runs (15) ✅ Succeeded ... View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-06-23 18:47:13 UTC

@9larsons
9larsons force-pushed the ci-nx-start-ci-run branch 2 times, most recently from 1a81d16 to ad52e59 Compare June 23, 2026 18:32

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/ci.yml:
- Around line 181-183: The pnpm nx-cloud start-ci-run command in the "Start Nx
Cloud CI run" step will fail because the nx-cloud package is not installed and
the Nx Cloud authentication token is not configured. Add the nx-cloud package as
a devDependency in package.json, then add the NX_CLOUD_ACCESS_TOKEN environment
variable to the GitHub Actions workflow (either as a secret or directly in the
workflow step's env section, depending on your security setup) to enable proper
Nx Cloud authentication and registration during the CI run.
🪄 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: Pro

Run ID: b71f6547-b5a6-45c9-b45a-8fd8debc3f63

📥 Commits

Reviewing files that changed from the base of the PR and between 12451a5 and 1a81d16.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

Comment thread .github/workflows/ci.yml
no ref

Registers a single Nx Cloud Pipeline Execution per workflow run by
calling start-ci-run once in job_setup, before any other nx command
(the affected-projects queries). Subsequent nx invocations across
lint/admin/unit/acceptance/legacy/playwright jobs attribute tasks
to this pipeline via the shared GITHUB_RUN_ID.

Surfaces per-task analytics (cache hit rates, durations, flake
counts) in the Nx Cloud dashboard grouped per workflow run.

Tasks invoked outside Nx (i18n filter, Tinybird, version/migration
scripts) remain uncorrelated.
@9larsons
9larsons force-pushed the ci-nx-start-ci-run branch from ad52e59 to 7bc0493 Compare June 23, 2026 18:34
@9larsons
9larsons enabled auto-merge (squash) June 23, 2026 18:37
@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.10%. Comparing base (9726a7b) to head (7bc0493).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #28843   +/-   ##
=======================================
  Coverage   74.10%   74.10%           
=======================================
  Files        1560     1560           
  Lines      134884   134884           
  Branches    16334    16335    +1     
=======================================
  Hits        99952    99952           
+ Misses      33952    33922   -30     
- Partials      980     1010   +30     
Flag Coverage Δ
e2e-tests 76.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@9larsons
9larsons merged commit 92b31a0 into main Jun 23, 2026
54 checks passed
@9larsons
9larsons deleted the ci-nx-start-ci-run branch June 23, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant