Skip to content

test: fix type issues in test optimization tests#7297

Merged
BridgeAR merged 6 commits intomasterfrom
BridgeAR/2026-01-21-fix-most-test-optimization-type-errors-in-tests
Jan 23, 2026
Merged

test: fix type issues in test optimization tests#7297
BridgeAR merged 6 commits intomasterfrom
BridgeAR/2026-01-21-fix-most-test-optimization-type-errors-in-tests

Conversation

@BridgeAR
Copy link
Copy Markdown
Member

These are mostly passing through stdio as argument to exec, which does not support that argument.

In addition, fix a couple of process.env types and add some more types to test helpers.

There is one spot where parallel was defined was not used in the test. I just added a TODO entry for that.

I also removed unused variables.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 21, 2026

Overall package size

Self size: 4.45 MB
Deduped: 5.28 MB
No deduping: 5.28 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 2.0.3 | 76.87 kB | 808.03 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.03%. Comparing base (0345cba) to head (ddc986c).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7297   +/-   ##
=======================================
  Coverage   86.03%   86.03%           
=======================================
  Files         513      513           
  Lines       22245    22245           
=======================================
  Hits        19139    19139           
  Misses       3106     3106           
Flag Coverage Δ
aiguard-macos 99.09% <ø> (ø)
aiguard-ubuntu 99.09% <ø> (ø)
aiguard-windows 99.09% <ø> (ø)
apm-capabilities-tracing-macos 57.85% <ø> (ø)
apm-capabilities-tracing-ubuntu 57.85% <ø> (ø)
apm-capabilities-tracing-windows 57.46% <ø> (ø)
apm-integrations-child-process 99.19% <ø> (ø)
apm-integrations-couchbase-18 100.00% <ø> (ø)
apm-integrations-couchbase-eol 100.00% <ø> (ø)
appsec-express 62.46% <ø> (ø)
appsec-fastify 58.48% <ø> (ø)
appsec-graphql 53.41% <ø> (ø)
appsec-kafka 43.98% <ø> (ø)
appsec-ldapjs 46.04% <ø> (ø)
appsec-lodash 47.29% <ø> (ø)
appsec-macos 93.74% <ø> (ø)
appsec-mongodb-core 51.82% <ø> (ø)
appsec-mongoose 50.73% <ø> (ø)
appsec-mysql 54.20% <ø> (ø)
appsec-node-serialize 43.92% <ø> (ø)
appsec-passport 48.10% <ø> (ø)
appsec-postgres 54.55% <ø> (ø)
appsec-sourcing 33.80% <ø> (ø)
appsec-template 43.92% <ø> (ø)
appsec-ubuntu 93.74% <ø> (ø)
appsec-windows 93.74% <ø> (ø)
llmobs-ai 51.97% <ø> (ø)
llmobs-anthropic 42.62% <ø> (ø)
llmobs-bedrock 39.95% <ø> (ø)
llmobs-google-genai 45.79% <ø> (ø)
llmobs-langchain 50.07% <ø> (ø)
llmobs-openai 55.51% <ø> (ø)
llmobs-vertex-ai 44.36% <ø> (ø)
platform-core 87.23% <ø> (ø)
platform-instrumentations-misc 73.68% <ø> (ø)
platform-shimmer 98.82% <ø> (ø)
platform-unit-guardrails 89.47% <ø> (ø)
profiling-macos 70.74% <ø> (ø)
profiling-ubuntu 70.74% <ø> (ø)
profiling-windows 74.18% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@datadog-official

This comment has been minimized.

@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Jan 21, 2026

Benchmarks

Benchmark execution time: 2026-01-22 18:08:20

Comparing candidate commit ddc986c in PR branch BridgeAR/2026-01-21-fix-most-test-optimization-type-errors-in-tests with baseline commit 0345cba in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 231 metrics, 29 unstable metrics.

@BridgeAR BridgeAR marked this pull request as ready for review January 21, 2026 14:51
@BridgeAR BridgeAR requested review from a team as code owners January 21, 2026 14:51
@BridgeAR BridgeAR force-pushed the BridgeAR/2026-01-21-fix-most-test-optimization-type-errors-in-tests branch from 274b8ec to f22bf71 Compare January 21, 2026 15:19
These are mostly passing through stdio as argument to exec, which
does not support that argument.

In addition, fix a couple of process.env types and add some more
types to test helpers.

There is one spot where `parallel` was defined was not used in the
test. I just added a TODO entry for that.
@BridgeAR BridgeAR force-pushed the BridgeAR/2026-01-21-fix-most-test-optimization-type-errors-in-tests branch from 767e29e to 505ac3f Compare January 22, 2026 11:29
Copy link
Copy Markdown
Collaborator

@juan-fernandez juan-fernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BridgeAR
Copy link
Copy Markdown
Member Author

@juan-fernandez no, as the error says, it is a rate limiting: Error: Unhandled error: HttpError: API rate limit exceeded for installation.. Please always check the error messages :)

@juan-fernandez
Copy link
Copy Markdown
Collaborator

@juan-fernandez no, as the error says, it is a rate limiting: Error: Unhandled error: HttpError: API rate limit exceeded for installation.. Please always check the error messages :)

ah, sure, my bad

juan-fernandez
juan-fernandez previously approved these changes Jan 22, 2026
@BridgeAR BridgeAR merged commit b1c41b8 into master Jan 23, 2026
799 checks passed
@BridgeAR BridgeAR deleted the BridgeAR/2026-01-21-fix-most-test-optimization-type-errors-in-tests branch January 23, 2026 09:57
dd-octo-sts bot pushed a commit that referenced this pull request Jan 24, 2026
These are mostly passing through stdio as argument to exec, which
does not support that argument.

In addition, fix a couple of process.env types and add some more
types to test helpers.

There is one spot where `parallel` was defined was not used in the
test. That is removed as well as activating the no-undef eslint rule
for test-optimization code.

On top, the assertObjectContains helper got improved to always
generate a diff in the future, even on older Node.js versions.
@dd-octo-sts dd-octo-sts bot mentioned this pull request Jan 24, 2026
dd-octo-sts bot pushed a commit that referenced this pull request Jan 27, 2026
These are mostly passing through stdio as argument to exec, which
does not support that argument.

In addition, fix a couple of process.env types and add some more
types to test helpers.

There is one spot where `parallel` was defined was not used in the
test. That is removed as well as activating the no-undef eslint rule
for test-optimization code.

On top, the assertObjectContains helper got improved to always
generate a diff in the future, even on older Node.js versions.
@dd-octo-sts dd-octo-sts bot mentioned this pull request Jan 27, 2026
BridgeAR added a commit that referenced this pull request Jan 30, 2026
These are mostly passing through stdio as argument to exec, which
does not support that argument.

In addition, fix a couple of process.env types and add some more
types to test helpers.

There is one spot where `parallel` was defined was not used in the
test. That is removed as well as activating the no-undef eslint rule
for test-optimization code.

On top, the assertObjectContains helper got improved to always
generate a diff in the future, even on older Node.js versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants