test(config): assert DD_APPSEC_AGENTIC_ONBOARDING in v5 appsec config#9489
Conversation
The v5-only "should give priority to non-experimental options" test does a strict deepStrictEqual on config.appsec. PR #9486 added DD_APPSEC_AGENTIC_ONBOARDING as a namespace:"appsec" entry (default ""), which populates config.appsec for all majors, but that test was gated on DD_MAJOR < 6 and therefore skipped in master (v6/v7) CI. It only runs in the v5 release pipeline, where the missing key broke the assertion. Add the always-present key to the expected object. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Overall package sizeSelf size: 7.51 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.2 | 124.41 kB | 440.65 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
leoromanovsky
left a comment
There was a problem hiding this comment.
My prototype (#9488) did the same implementation and pass locally on v5 major simulation.
🎉 All green!🧪 All tests passed 🔄 Datadog auto-retried 1 job - 1 passed on retry 🔗 Commit SHA: 8097519 | Docs | Datadog PR Page | Give us feedback! |
BenchmarksBenchmark execution time: 2026-07-22 15:41:33 Comparing candidate commit 8097519 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 2314 metrics, 44 unstable metrics.
|
…#9489) The v5-only "should give priority to non-experimental options" test does a strict deepStrictEqual on config.appsec. PR #9486 added DD_APPSEC_AGENTIC_ONBOARDING as a namespace:"appsec" entry (default ""), which populates config.appsec for all majors, but that test was gated on DD_MAJOR < 6 and therefore skipped in master (v6/v7) CI. It only runs in the v5 release pipeline, where the missing key broke the assertion. Add the always-present key to the expected object. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…#9489) The v5-only "should give priority to non-experimental options" test does a strict deepStrictEqual on config.appsec. PR #9486 added DD_APPSEC_AGENTIC_ONBOARDING as a namespace:"appsec" entry (default ""), which populates config.appsec for all majors, but that test was gated on DD_MAJOR < 6 and therefore skipped in master (v6/v7) CI. It only runs in the v5 release pipeline, where the missing key broke the assertion. Add the always-present key to the expected object. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…#9489) The v5-only "should give priority to non-experimental options" test does a strict deepStrictEqual on config.appsec. PR #9486 added DD_APPSEC_AGENTIC_ONBOARDING as a namespace:"appsec" entry (default ""), which populates config.appsec for all majors, but that test was gated on DD_MAJOR < 6 and therefore skipped in master (v6/v7) CI. It only runs in the v5 release pipeline, where the missing key broke the assertion. Add the always-present key to the expected object. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
APPSEC-69230
What
Adds
DD_APPSEC_AGENTIC_ONBOARDING: ''to the expectedconfig.appsecobject in the v5-onlyshould give priority to non-experimental optionstest.Why
After #9486 merged, the v5 release pipeline started failing (e.g. this run):
#9486 registered
DD_APPSEC_AGENTIC_ONBOARDINGas anamespace: "appsec"entry insupported-configurations.jsonwithdefault: "". That mechanism populatesconfig.appsec[NAME]for all major versions, so the key is now always present.The PR updated the dedicated test and the two
assertObjectContains(partial-match) tests, but missed this test, which does a strictassert.deepStrictEqual(config.appsec, {…}).Why PR CI didn't catch it
The test is gated:
It only runs under v5. #9486 merged on
master(v6+), where the test isit.skip'd, so the assertion never ran. It only surfaces in the v5 release/backport pipeline.Testing
Temporarily forced the gate open locally to confirm the assertion now passes; reverted the override before committing.
🤖 Generated with Claude Code