Skip to content

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

Draft
mydea wants to merge 3 commits into
developfrom
fn/mysql-combine
Draft

test(node): Collapse mysql span streaming tests into same suite#21890
mydea wants to merge 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

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