You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CDS build staging check fails on all PRs: db/last-dev csn baked with older compiler (v7.0.1) than CI (v7.2.1) #3140
The CDS build staging check (scripts/check-cds-build-staging.ts) fails on every PR opened against current DEV, because CI's @sap/cds-dk has been upgraded to a newer CDS compiler (v7.2.1) than the one that generated the checked-in db/last-dev/csn.json (v7.0.1).
Evidence
On PR #3139 the staging-check diff is entirely toolchain noise — no schema/service content:
A local cds build --production on a v7.0.1 toolchain reproduces the committed db/last-dev/csn.json byte-for-byte, so the file is correct for v7.0.1 — CI just bakes it with v7.2.1 and sees a diff.
Fix
Regenerate the snapshot with the current toolchain, committed directly to DEV (infra, not feature-scoped):
npm ci # pick up the current @sap/cds-dk (v7.2.1 compiler)
npx cds build --production
git add db/last-dev/ db/src/
git commit -m "chore(build): regenerate db/last-dev csn for CDS compiler v7.2.1"
This clears the check for all open PRs at once. Verify the regenerated diff is only the creator version + the namespace stamp (no unintended schema changes) before committing.
Follow-up (optional hardening)
The staging check already has a top-level namespace noise-filter but not one for the creator compiler-version field. Consider extending the filter to ignore meta.creator so a compiler bump alone doesn't gate PRs — otherwise this recurs on every future @sap/cds-dk upgrade until the snapshot is regenerated.
Context
Surfaced while working #977 (PR #3139). That PR is otherwise MERGEABLE and this is its only failing check — it is environmental, not a DPI defect (noted in a PR comment there).
Closing as misdiagnosed. Root cause is NOT a DEV-wide toolchain drift — it's that PR #3139's branch is stale: it predates DEV's "overrides": { "@sap/cds-compiler": "7.2.1" } pin, so on the branch CI's npm ci resolves a top-level compiler that regenerates db/last-dev/csn.json with a different creator stamp than the committed file. Clean DEV passes the staging check. Fix is to bring #3139 current with DEV (merge) + regenerate the baseline, committed into #3139 itself — handled there, no separate infra PR needed.
Activity
jung-thomas commentedon Nov 16, 2026
Closing as misdiagnosed. Root cause is NOT a DEV-wide toolchain drift — it's that PR #3139's branch is stale: it predates DEV's
"overrides": { "@sap/cds-compiler": "7.2.1" }pin, so on the branch CI'snpm ciresolves a top-level compiler that regenerates db/last-dev/csn.json with a differentcreatorstamp than the committed file. Clean DEV passes the staging check. Fix is to bring #3139 current with DEV (merge) + regenerate the baseline, committed into #3139 itself — handled there, no separate infra PR needed.