Skip to content

test: use native fetch in cds oq#449

Merged
johannes-vogel merged 1 commit into
mainfrom
use-native-fetch-in-cds-oq
Jul 9, 2026
Merged

test: use native fetch in cds oq#449
johannes-vogel merged 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-pr-bot hyperspace-pr-bot 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-pr-bot hyperspace-pr-bot 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-pr-bot Bot Jul 3, 2026
@sjvans
sjvans requested a review from johannes-vogel July 8, 2026 12:52
Comment thread test/tracing-attributes.test.js
@sjvans
sjvans requested a review from vkozyura July 8, 2026 14:05
@johannes-vogel
johannes-vogel merged commit 70da607 into main Jul 9, 2026
8 checks passed
@johannes-vogel
johannes-vogel deleted the use-native-fetch-in-cds-oq branch July 9, 2026 13:53
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.

2 participants