Skip to content

test: use native fetch in cds oq#449

Open
sjvans wants to merge 1 commit into
mainfrom
use-native-fetch-in-cds-oq
Open

test: use native fetch in cds oq#449
sjvans wants to merge 1 commit into
mainfrom
use-native-fetch-in-cds-oq

Conversation

@sjvans

@sjvans sjvans commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

in cds oq, we have cloud-sdk → it is preferred over native fetch
the test added in #425 only works when native fetch is used

@hyperspace-insights hyperspace-insights Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The PR makes a one-line env-variable change to enable native fetch in a single test file, but the mutation is applied at module-load time with no teardown, meaning the environment variable leaks into any other test files that share the same process. This should be addressed by saving and restoring the original value in beforeAll/afterAll.

PR Bot Information

Version: 1.26.14

  • File Content Strategy: Full file content
  • Event Trigger: pull_request.opened
  • Correlation ID: c55e71a0-76e7-11f1-8989-8b103d27310e
  • LLM: anthropic--claude-4.6-sonnet

Comment thread test/tracing-attributes.test.js
@sjvans sjvans marked this pull request as ready for review July 3, 2026 14:02
@sjvans sjvans requested review from PDT42 and mariayord July 3, 2026 14:02

@hyperspace-insights hyperspace-insights Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The PR is a minimal, focused change that correctly enables native fetch before CDS is required. One issue flagged: the global process.env mutation should be cleaned up after the test suite to prevent leaking into other test files sharing the same Jest worker.

PR Bot Information

Version: 1.26.14

  • LLM: anthropic--claude-4.6-sonnet
  • Correlation ID: d45291a0-76e7-11f1-8064-d0bc03aba188
  • File Content Strategy: Full file content
  • Event Trigger: pull_request.ready_for_review

Comment thread test/tracing-attributes.test.js
@cap-js cap-js deleted a comment from hyperspace-insights Bot Jul 3, 2026
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