Repository navigation
#2993: make dad reconcile gate test green on DEV HANA - #3146
Merged
Merged
Conversation
… DEV The gate test booted without actually exercising dad: the hybrid profile did not carry draft_admin_integrity/deleteStrategy (they live in base cds.fiori, false in a main-based checkout), and CDS_* env overrides don't reach cds.env.fiori.*. It also 500'd on the @cap-js/ai recommendation hook (unbound AICore) and timed out on cold HANA boot. Fixes, all at module load: - force cds.env.fiori.draft_admin_integrity/draft_orphan_cleanup = true and cds.env.drafts.deleteStrategy = 'dad' so the test verifies the real path - mock auth (cds_requires_auth_kind) + AICore (cds_requires_AICore_kind) - raise hookTimeout to 120s for the full cold HANA boot Verified GREEN against DEV HANA (46/46 cascade constraints present): draftEdit->discard under dad fires rollup reconcile AND leaves zero orphaned child draft rows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #3141 (merged the gate test, but it couldn't actually exercise
dadin the hybrid profile).The gate test
test/hybrid/admin-drafts-dad-reconcile.hybrid.test.jswas booting without thedadpath active — the hybrid profile doesn't carrydraft_admin_integrity/deleteStrategy(they're in basecds.fiori, andCDS_*env overrides don't reachcds.env.fiori.*), it 500'd on the@cap-js/airecommendation hook with no AICore bound, and timed out on the cold HANA boot.Fixes (module-load, before
cds.test):cds.env.fiori.draft_admin_integrity/draft_orphan_cleanup = true+cds.env.drafts.deleteStrategy = 'dad'so the test verifies the real path regardless of ambient profilehookTimeout120s for the full cold HANA bootVerified GREEN against DEV HANA (46/46 cascade constraints present, preflight confirmed): a Mission draftEdit→discard under
dadfires theafter('DISCARD')rollup reconcile AND leaves zero orphaned child draft rows. The #2909 handler-bypass risk does not occur.This closes the PROD-blocking verification gate for #2993.