Skip to content

Simplified build packages ci workflow - #28850

Merged
acburdine merged 2 commits into
mainfrom
ci/dematrix
Jun 24, 2026
Merged

acburdine merged 2 commits into
mainfrom
ci/dematrix

Conversation

@acburdine

Copy link
Copy Markdown
Member

no issue

  • remove matrix config in favor of nx run-many with tag selector
  • update e2e build:apps script to use new public-app tag

Matrixing the build_packages jobs saves a little bit of time on the build step, but every job ends up running pnpm install which takes ~30-40s per job. Builds for public app packages are relatively quick in comparison, so combining things into one job will speed up the overall CI time and reduce the number of concurrent workers used.

Also noticed that the e2e apps and build_packages jobs differed slightly, updated the nx tags in each package to standardize.

@acburdine
acburdine requested a review from 9larsons as a code owner June 24, 2026 00:09
@coderabbitai

coderabbitai Bot commented Jun 24, 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: 460de63c-05e4-4c16-a107-42f599627e93

📥 Commits

Reviewing files that changed from the base of the PR and between 95ed4d4 and bb8522b.

📒 Files selected for processing (7)
  • apps/activitypub/package.json
  • apps/admin-toolbar/package.json
  • apps/announcement-bar/package.json
  • apps/comments-ui/package.json
  • apps/portal/package.json
  • apps/signup-form/package.json
  • apps/sodo-search/package.json
✅ Files skipped from review due to trivial changes (5)
  • apps/announcement-bar/package.json
  • apps/admin-toolbar/package.json
  • apps/portal/package.json
  • apps/comments-ui/package.json
  • apps/signup-form/package.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/sodo-search/package.json

Walkthrough

The PR adds the public-app Nx tag to seven app package manifests. It updates the CI workflow to rename build_packages to build_public_apps, remove the per-app matrix, and build all public-app projects with nx run-many --target=build --projects='tag:public-app'. The job_required_tests dependencies and publish guard are updated accordingly. The e2e/package.json build:apps script uses the same tag selector.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the CI workflow simplification and build package changes.
Description check ✅ Passed The description matches the changeset by explaining the Nx tag selector, e2e script update, and CI consolidation.
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/dematrix

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 24, 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 bb8522b

Command Status Duration Result
nx run @tryghost/admin-x-settings:test:acceptance ✅ Succeeded 9m 46s View ↗
nx run ghost:test:ci:integration ✅ Succeeded 3s View ↗
nx run-many --target=build --projects=tag:publi... ✅ Succeeded 3s View ↗
nx run-many -t lint -p @tryghost/admin-x-design... ✅ Succeeded 37s View ↗
nx run ghost:test:ci:legacy ✅ Succeeded <1s View ↗
nx run @tryghost/admin:build ✅ Succeeded 5s View ↗
nx run @tryghost/activitypub:test:acceptance ✅ Succeeded 36s View ↗
nx run ghost:build:assets ✅ Succeeded 2s View ↗
Additional runs (7) ✅ Succeeded ... View ↗

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


☁️ Nx Cloud last updated this comment at 2026-06-24 15:33:48 UTC

@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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/ci.yml (1)

1612-1615: 🩺 Stability & Availability | 🔴 Critical | ⚡ Quick win

Remove stale matrix context from build_packages job name.

After removing the job matrix, the job still references ${{ matrix.package_name }} in name (Line 1610). That context is undefined for non-matrix jobs and can break workflow evaluation.

Proposed fix
-    name: Build ${{ matrix.package_name }}
+    name: Build public app packages
🤖 Prompt for 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.

In @.github/workflows/ci.yml around lines 1612 - 1615, The build_packages job
definition still contains a reference to ${{ matrix.package_name }} in its name
field even though the job matrix has been removed, causing the workflow to fail
due to undefined matrix context. Locate the name field in the build_packages job
and remove the ${{ matrix.package_name }} reference, replacing it with a static
job name that no longer depends on the matrix context.
🤖 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.

Outside diff comments:
In @.github/workflows/ci.yml:
- Around line 1612-1615: The build_packages job definition still contains a
reference to ${{ matrix.package_name }} in its name field even though the job
matrix has been removed, causing the workflow to fail due to undefined matrix
context. Locate the name field in the build_packages job and remove the ${{
matrix.package_name }} reference, replacing it with a static job name that no
longer depends on the matrix context.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 99ccb0d8-9551-4d5a-a764-890ca7f64f74

📥 Commits

Reviewing files that changed from the base of the PR and between c22e1ee and 1fc76ce.

📒 Files selected for processing (9)
  • .github/workflows/ci.yml
  • apps/activitypub/package.json
  • apps/admin-toolbar/package.json
  • apps/announcement-bar/package.json
  • apps/comments-ui/package.json
  • apps/portal/package.json
  • apps/signup-form/package.json
  • apps/sodo-search/package.json
  • e2e/package.json

@codecov

codecov Bot commented Jun 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.26%. Comparing base (bda2342) to head (bb8522b).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #28850   +/-   ##
=======================================
  Coverage   74.26%   74.26%           
=======================================
  Files        1564     1564           
  Lines      135019   135019           
  Branches    16386    16383    -3     
=======================================
+ Hits       100270   100271    +1     
+ Misses      33766    33735   -31     
- Partials      983     1013   +30     
Flag Coverage Δ
e2e-tests 76.40% <ø> (+<0.01%) ⬆️

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.

no ref
- remove matrix config in favor of nx run-many with tag selector
- update e2e build:apps script to use new public-app tag
@acburdine
acburdine merged commit 4d93e4f into main Jun 24, 2026
48 checks passed
@acburdine
acburdine deleted the ci/dematrix branch June 24, 2026 15:59
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