test(aws-sdk): pace kinesis readiness polling #11043
Overall package size
Self size: 9.79 MB
Deduped: 10.54 MB
No deduping: 10.54 MB
<details><summary>Dependency sizes</summary>
| name | version | self size | total size |
|------|---------|-----------|------------|
| import-in-the-middle | 3.5.3 | 131.25 kB | 531.86 kB |
| opentracing | 0.14.7 | 194.81 kB | 194.81 kB |
| dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |
</details>
<sub>🤖 This report was automatically generated by heaviest-objects-in-the-universe<sub>
<a target='_blank' href='https://app.datadoghq.com/ci/pipeline-executions?query=ci_level%3Ajob+%40git.commit.sha%3Ad2adccf00d42245f8715fcd2fb3e3608925efbd2&referrer=pr-comment&start=1793649300000'><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/pipelines-ok.svg"/><img src="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/pipelines-ok-light.svg" alt="Pipelines" align="center" /></picture></a> <a target='_blank' href='https://app.datadoghq.com/ci/test/runs?query=test_level%3Atest+%40git.commit.sha%3A36949be21cf13835e46f43bb26c3f64e30661739&referrer=pr-comment&start=1793649300000'><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/tests-ok.svg"/><img src="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/tests-ok-light.svg" alt="Tests" align="center" /></picture></a>
<details><summary><b>🎉 All green!</b></summary>
🧪 All tests passed
❄️ No new flaky tests detected
</details>
🔄 Datadog retried 3 tests - 3 passed on retry <a href="https://app.datadoghq.com/ci/test/runs?query=test_level%3Atest+%40git.commit.sha%3A36949be21cf13835e46f43bb26c3f64e30661739+%40test.is_retry%3Atrue+AND+%28%40test.retry_reason%3Aauto_test_retry+OR+%28-%40test.retry_reason%3A%2A+AND+-%40test.is_new%3Atrue%29%29&referrer=pr-comment" title="View in Datadog"><img src="https://static.datadoghq.com/static/images/pr_comments/software_delivery/datadog_icon.svg" alt="View in Datadog" align="center" /></a>
🎯 Code Coverage (<a target='_blank' href='https://app.datadoghq.com/ci/code-coverage/github.com%2Fdatadog%2Fdd-trace-js/pull-requests/11043'>details</a>)<br>• <strong><span title="Percentage of modified executable lines covered by tests in this PR">Patch Coverage</span></strong>: 100.00%<br>• <strong><span title="Percentage of all executable lines covered by tests in the entire codebase">Overall Coverage</span></strong>: 98.34% <span title="Change in overall coverage compared to the base branch">(+0.01%)</span><br>
<sub>
This comment will be updated automatically if new data arrives. <br />
🔗 Commit SHA: d2adccf | <a href="https://docs.datadoghq.com/integrations/guide/source-code-integration/#pr-comments">Docs</a> | <a href="https://app.datadoghq.com/ci/pull-request/Z2l0aHViLmNvbS9kYXRhZG9nL2RkLXRyYWNlLWpzLzExMDQz?referrer=pr-comment">View more details</a> | Give us <a href="https://dd.enterprise.slack.com/archives/C07E3U2QRMM">feedback</a>!
</sub>
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 98.98%. Comparing base (
2657d82) to head (d2adccf).:warning: Report is 28 commits behind head on master.
<details><summary>Additional details and impacted files</summary>
@@ Coverage Diff @@
## master #11043 +/- ##
=======================================
Coverage 98.98% 98.98%
=======================================
Files 1079 1079
Lines 177113 177113
Branches 72 72
=======================================
Hits 175316 175316
Misses 1796 1796
Partials 1 1
| Flag | Coverage Δ | |
|---|---|---|
| ai-guard | 63.70% <ø> (-0.02%) | :arrow_down: |
| apm-capabilities | 54.86% <ø> (ø) | |
| apm-integrations | 81.06% <ø> (-0.02%) | :arrow_down: |
| appsec | 57.52% <ø> (-0.01%) | :arrow_down: |
| debugger | 70.75% <ø> (-0.02%) | :arrow_down: |
| instrumentation | 55.78% <ø> (-0.01%) | :arrow_down: |
| llmobs | 81.35% <ø> (-0.02%) | :arrow_down: |
| master-coverage | 98.98% <ø> (?) | |
| openfeature | 67.58% <ø> (-0.02%) | :arrow_down: |
| platform | 68.29% <ø> (-0.01%) | :arrow_down: |
| profiling | 65.80% <ø> (-0.02%) | :arrow_down: |
| serverless | 64.84% <ø> (-0.02%) | :arrow_down: |
| test-optimization | 81.99% <ø> (+0.04%) | :arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
</details>
:umbrella: View full report in Codecov by Harness.
:loudspeaker: Have feedback on the report? Share it here.
<details><summary> :rocket: New features to boost your workflow: </summary>
</details>
Benchmarks
Benchmark execution time: 2026-11-02 20:45:00
Comparing candidate commit d2adccf00d42245f8715fcd2fb3e3608925efbd2 in PR branch rochdev/test-aws-sdk-kinesis-readiness with baseline commit 2657d823bce0e7e4c1eb1a7284fdfe41c6511fc5 in branch master.
Found 0 performance improvements and 0 performance regressions! Performance is the same for 2445 metrics, 12 unstable metrics.
<details>
<summary><h3>Explanation</h3></summary>
This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:
🟩 = significantly better candidate vs. baseline
🟥 = significantly worse candidate vs. baseline
We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.
If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.
Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.
<details>
<summary><h4>More details about the CI and significant changes</h4></summary>
You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.
CIs of the difference of means are often centered around 0%, because often changes are not that big:
---------------------------------(------|---^--------)-------------------------------->
-0.6% 0% 0.3% +1.2%
| | |
lower bound of the CI --' | |
sample mean (center of the CI) -------------' |
upper bound of the CI ----------------------'
As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).
For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:
----------------------------------------|---------|---(---------^---------)---------->
0% 1% 1.3% 2.2% 3.1%
| | | |
significant impact threshold --------------' | | |
lower bound of CI --------------' | |
sample mean (center of the CI) --------------------------' |
upper bound of CI ----------------------------------'
</details>
</details>
<details>
<summary><h3>Unstable benchmarks</h3></summary>
These benchmarks have a confidence interval too wide to call a change; treat them as noise rather than signal.
scenario:appsec-appsec-enabled-20
max_rss_usage [-43.711MB; +28.617MB] or [-14.877%; +9.740%]scenario:appsec-iast-no-vulnerability-iast-enabled-default-config-26
max_rss_usage [-32.294MB; +52.820MB] or [-11.659%; +19.069%]scenario:appsec-iast-with-vulnerability-iast-enabled-default-config-20
max_rss_usage [-40.431MB; +33.113MB] or [-11.692%; +9.576%]scenario:openfeature-initialization-configuration-20
max_rss_usage [-4391.745KB; +6319.745KB] or [-5.773%; +8.308%]scenario:openfeature-initialization-configuration-26
cpu_user_time [-59.050ms; +128.880ms] or [-3.480%; +7.595%]execution_time [-54.289ms; +131.046ms] or [-3.086%; +7.450%]throughput [-42186.437op/s; +16218.494op/s] or [-7.297%; +2.805%]scenario:openfeature-scale-full-26
max_rss_usage [-34.816MB; +0.053MB] or [-16.634%; +0.025%]scenario:openfeature-typical-full-24
max_rss_usage [-24.009MB; +3.137MB] or [-9.318%; +1.218%]scenario:plugin-couchbase-upsert-24
cpu_user_time [-500.354ms; +805.440ms] or [-10.765%; +17.329%]execution_time [-500.729ms; +804.891ms] or [-10.762%; +17.299%]throughput [-2786940.916op/s; +1719192.116op/s] or [-10.197%; +6.290%]</details>
<!-- codex-pull-request-review-summary -->
<!-- codex-review-state:v1 {"code_review":{"commit_sha":"d2adccf00d42245f8715fcd2fb3e3608925efbd2","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} -->
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review | Status | Commit | Review trigger |
| --- | --- | --- | --- |
| 📝 Code Review | ✅ Completed <relative-time datetime="2026-11-04T03:16:40.361182Z">2026-11-04T03:16:40.361182Z</relative-time> | d2adccf | Draft marked ready |
<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
</details>
<sub><sub>!P1 Badge</sub></sub> Rename the new test file to kebab-case
The newly added kinesis_helpers.spec.js uses an underscore even though repository conventions require kebab-case filenames. Rename it to kinesis-helpers.spec.js so the test follows the documented naming standard.
AGENTS.md reference: AGENTS.md:L90-L92
Useful? React with 👍 / 👎.
<!-- codex-code-review-finding:v1 -->
<!-- codex-review-receipt:v1 -->
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d2adccf00d
<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
</details>
<details>
<summary>More details</summary>
The 100 ms delay is confined to retry paths, preserving immediate completion when a stream becomes ACTIVE or deletion polling receives an error.
</details>
Was this helpful? React 👍 or 👎
<sub>Open Bits AI session</sub>
<sub>🤖 Bits Code Review · Commit d2adccf</sub>
<!-- autotest-meta model=gpt-6.1-sol engine=codex reasoning_effort=high verdict=PASS ddrs_bucket=unknown session_id=57f7ce2d-fd92-495b-b124-bcbf31ebe169 -->
<!-- datadog-code-review reviewer-id=bad90057-5c12-4101-ad47-d91c9dff0f90 -->
<!-- datadog-autotest:v1:prod -->
<!-- datadog-autotest-delivery:v1:prod:f7ec30df6a314220927b0104138eac6dea3ba642ede076feb9bb6d8815529b58:bundle -->
Approved these changes.
The corresponding file uses the underscore, so this keeps it in line for now.
Approved these changes.
tlhunter
rochdev
What does this PR do?
Adds a 100 ms interval between Kinesis stream readiness/deletion probes and covers both helper lifecycles with fake-timer tests.
Motivation
The shared helper immediately recursed after every
DescribeStreamresponse. While LocalStack was transitioning a stream, the AWS SDK suites could flood it with requests until setup or teardown timed out. The same helper owns readiness forkinesis.spec.js,kinesis.dsm.spec.js, and the serverless peer-service Kinesis tests.Additional Notes
The focused helper spec passes (2 tests), ESLint and syntax checks pass, and
git diff --checkpasses. Service-backed LocalStack tests were not run locally. Final diff review reported no findings.Generated by Codex.