Title: fix(ci): give push builds the parent commit their audits diff against by waleedlatif1 · Pull Request #7033 · simstudioai/sim · GitHub
Open Graph Title: fix(ci): give push builds the parent commit their audits diff against by waleedlatif1 · Pull Request #7033 · simstudioai/sim
X Title: fix(ci): give push builds the parent commit their audits diff against by waleedlatif1 · Pull Request #7033 · simstudioai/sim
Description: Unblocks the failing staging push build surfacing on the v0.8.11 release PR (#7032).
What is failing
✗ Migration safety check could not run.
Cannot diff against 'HEAD~1'. The ref is missing, or was fetched without
enough history for a merge-base.
Why
actions/checkout in the audit job sets no fetch-depth, so it defaults to 1 — a single-commit clone in which HEAD~1 does not resolve. Both diff-based audits use HEAD~1 as their base on push events, so neither has ever had a base to read.
Proven in a two-commit repo:
depth=1: git rev-parse HEAD~1 → does not resolve
depth=2: git rev-parse HEAD~1 → d73c984… git diff HEAD~1 HEAD → f
This is #7022 doing its job, uncomfortably
Before #7022 the audit answered that failure with ✓ No new migrations to check and exit 0. It had never actually run on a push build — the green was a report about what it could see, not about the migrations.
#7022 made it say it cannot run rather than claim success, and the first push build after it merged said exactly that. The bug is the missing history; #7022 only stopped it being invisible.
The block-registry check has the identical input and reports ⚠ Could not diff against base ref — skipping. Visible, so it never blocked anything — and equally never ran on push.
Fix
fetch-depth: 2 on the audit job's checkout. That is the minimum that makes HEAD~1 name something, and on this repo's push events (squash merges) HEAD~1..HEAD is exactly the merged change.
Only the Lint and Test job changes. Build App keeps its depth-1 checkout — it does no diffing and a deeper fetch would slow it for nothing.
Verification
Both audits against HEAD~1 on a checkout with history:
✓ No new migrations to check. exit=0
✓ Integration meta coverage check passed
✓ Sunset replacedBy check passed exit=0
Since both already run on every PR against origin/
Open Graph Description: Unblocks the failing staging push build surfacing on the v0.8.11 release PR (#7032). What is failing ✗ Migration safety check could not run. Cannot diff against 'HEAD~1'. The ref is miss...
X Description: Unblocks the failing staging push build surfacing on the v0.8.11 release PR (#7032). What is failing ✗ Migration safety check could not run. Cannot diff against 'HEAD~1'. The ref...
Opengraph URL: https://github.com/simstudioai/sim/pull/7033
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e3d9f883-af96-65f7-4994-b4d88aceab24 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C13A:31CD2D:15EE6D:1ECEFB:6AFB7833 |
| html-safe-nonce | 9fa50f2e9dd1d81cb43e67743011e7f3df5745129a99c5b1e00a6e2a681e85a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTNBOjMxQ0QyRDoxNUVFNkQ6MUVDRUZCOjZBRkI3ODMzIiwidmlzaXRvcl9pZCI6IjI5NzEwODY1MDU0NjEzODExNzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e4155eeca0fdff2bd79491c641521de05e48af8b5d5db301ff87cc52155fce4e |
| hovercard-subject-tag | pull_request:4346454200 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/7033/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Unblocks the failing staging push build surfacing on the v0.8.11 release PR (#7032). What is failing ✗ Migration safety check could not run. Cannot diff against 'HEAD~1'. The ref is miss... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2e8872b770cc4d5d0cc1f2026afab747a268e2ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width