Skip to content

fix(ci): allowlist srv-only publish-contributors + publish-validation-rules routes - #2091

Merged
jung-thomas merged 1 commit into
DEVfrom
fix/srv-qa-route-drift-ws2-ws3
Aug 31, 2026
Merged

jung-thomas merged 1 commit into
DEVfrom
fix/srv-qa-route-drift-ws2-ws3

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

Problem

CI unit-tests job fails at the Static build guards (postbuild:apps) step on DEV:

[check-srv-qa-route-drift] FAILED — /content/* route drift detected:
  Routes on srv but MISSING from srv-qa/server.js:
    POST /content/publish-contributors    (srv/server.js:613)
    POST /content/publish-validation-rules    (srv/server.js:621)

Root cause

WS2/WS3 added POST /content/publish-contributors and POST /content/publish-validation-rules to srv/server.js, and added channel=qa skips for both in scripts/publish-content.ts — but did not update the route-drift guard's ALLOWLIST_ONLY_ON_SRV.

Both routes are intentionally srv-only: srv-qa has no ContributorCache/ValidationRules entity (the QA model com.sap.developers.ims.qa doesn't load them, POST would 404/500), and there is no QA runtime reader. This is exactly the validate-answer-specs (#1375) pattern.

Fix

Add both routes to ALLOWLIST_ONLY_ON_SRV with justifications. Guard now passes (OK — 30 /content/* on srv, 13 on srv-qa). Unit tests themselves were already green; only this guard step was red.

…-rules routes

WS2/WS3 added POST /content/publish-contributors and
/content/publish-validation-rules to srv/server.js plus channel=qa skips in
publish-content.ts, but did not update the route-drift guard's
ALLOWLIST_ONLY_ON_SRV. Both are intentionally srv-only (srv-qa has no
ContributorCache/ValidationRules entity — POST would 404/500, and no QA
runtime reader), same rationale as validate-answer-specs (#1375).

Fixes the failing 'Static build guards (postbuild:apps)' CI step on DEV.
@jung-thomas
jung-thomas merged commit efdf968 into DEV Aug 31, 2026
3 checks passed
@jung-thomas
jung-thomas deleted the fix/srv-qa-route-drift-ws2-ws3 branch August 31, 2026 21:29
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