Fixed stale Ghost-CLI update checks in CI#28556
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run @tryghost/admin-x-settings:test:acceptance |
✅ Succeeded | 10m 15s | View ↗ |
nx run ghost:test:ci:integration:no-coverage |
✅ Succeeded | 1m 48s | View ↗ |
nx run ghost:test:ci:integration |
✅ Succeeded | 1m 6s | View ↗ |
nx run ghost:test:ci:e2e:no-coverage |
✅ Succeeded | 3m 49s | View ↗ |
nx run ghost:test:ci:e2e |
✅ Succeeded | 3m 44s | View ↗ |
nx run ghost:test:ci:legacy |
✅ Succeeded | 2m 18s | View ↗ |
nx build @tryghost/announcement-bar |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/sodo-search |
✅ 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-12 19:11:34 UTC
ref https://github.com/TryGhost/Ghost/actions/runs/27363373050/job/81093946714 - PR artifacts can carry a prerelease version that is older than the current npm latest after a release lands, so the Ghost-CLI update path can report a false downgrade failure - keep the archive clean-install coverage for every run, but skip only the latest-release update check when the archive is not newer than the installed latest release
7d6279c to
f9e9232
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #28556 +/- ##
=======================================
Coverage 73.76% 73.76%
=======================================
Files 1541 1541
Lines 132252 132252
Branches 15852 15852
=======================================
Hits 97557 97557
Misses 33730 33730
Partials 965 965
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|

Summary
Context
The failing run was a PR event from a fork branch named
main, not a push toTryGhost/Ghost'smain. Its tarball was built as6.45.0-rc.0, but npm latest had already moved to6.45.0, soghost update --archivecorrectly rejected the archive as a downgrade.This can happen for any stale PR after a release, not only fork PRs. Checking whether the archive can actually upgrade the installed latest release matches the Ghost-CLI invariant and avoids hiding the clean-install coverage for PR artifacts.