Skip to content

test(node): Collapse mysql span streaming tests into same suite#21890

Merged
mydea merged 3 commits into
developfrom
fn/mysql-combine
Jul 2, 2026
Merged

test(node): Collapse mysql span streaming tests into same suite#21890
mydea merged 3 commits into
developfrom
fn/mysql-combine

Conversation

@mydea

@mydea mydea commented Jul 1, 2026

Copy link
Copy Markdown
Member

I recently updated the mysql tests to be a bit more streamlined, and I think somewhat in parallel we added mysql-streamed tests. this PR collapses these into a single test suite to make it a bit easier to reason about. it also makes sure to use the same minimal mock mysql server so we do not get all-error spans there.

@mydea mydea self-assigned this Jul 1, 2026
Comment thread dev-packages/node-integration-tests/suites/tracing/mysql/test.ts Outdated
@mydea mydea force-pushed the fn/mysql-combine branch from 8c5d777 to d33a23f Compare July 1, 2026 14:19

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d33a23f. Configure here.

const CASES = [
// OpenTelemetry default — no opt-in, no injection. (OTel does not support ESM.)
{ label: 'opentelemetry (default)', instrument: 'instrument.mjs', flags: [], origin: undefined, failsOnEsm: true },
{ label: 'opentelemetry (default)', env: {}, flags: [], origin: undefined, failsOnEsm: true },

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Parent ORCHESTRION env enables opt-in

Medium Severity

Cases labeled OpenTelemetry default pass env: {} while the runner merges process.env into the child. Shared instrument.mjs enables diagnostics-channel injection when ORCHESTRION === 'true', so a parent-shell ORCHESTRION=true can turn on orchestrion for those cases. Their expectations omit sentry.origin, so the suite may pass without exercising OTel mysql instrumentation.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit d33a23f. Configure here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this is fine and should not happen

@mydea mydea marked this pull request as ready for review July 2, 2026 07:24
@mydea mydea requested a review from a team as a code owner July 2, 2026 07:24
@mydea mydea requested review from JPeer264 and andreiborza and removed request for a team July 2, 2026 07:24

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sounds reasonable to me. I agree that this streamlines the tests. The only thing that this makes a bit more annoying is that the -streamed suffix came in handy when I wanted to run span streaming tests. You could basically just run yarn test streamed and every span streaming suite ran. yarn test -t "streamed" works of course somewhat similar but is more annoying because it matches a broader set of tests and is slower. Not the end of the world though 😅

@mydea mydea merged commit ba0c065 into develop Jul 2, 2026
86 of 88 checks passed
@mydea mydea deleted the fn/mysql-combine branch July 2, 2026 08:06
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