Skip to content

Conversation

@AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented Oct 1, 2025

  • Closes N/A

Additional details

Makes @packages/telemetry an independent bundle. This change, similar to #32633, builds @packages/telemetry with 3 entry points:

  • a node commonjs entrypoint for server code
  • a node esm entrypoint for server code (not used and is not emitted)
  • a browser esm entrypoint to be used in browser based code in the browser directory.

We are somewhat limited with an older moduleResolution and can't leverage exports similar to the CLI, the best we can do is use rollup to move/rename the compiled browser bundle (NOTE: node_modules dependencies are external and will be resolved by the package) to have a browser entry point, and omit the client file in the node build.

We bundle delcarations with the code so we don't have to worry about type checking the telemetry package in other extraneous monorepo packages as we are no longer importing from source

Steps to test

How has the user experience changed?

PR Tasks


Note

Bundles @packages/telemetry as an independent CJS/ESM/browser package and switches browser consumers to @packages/telemetry/browser/client, with minor proxy fix and docs/tests updates.

  • Telemetry packaging (core change)
    • Add Rollup build for browser client (rollup.config.mjs) and split outputs: cjs/, esm/, browser/ with new tsconfigs (tsconfig.cjs.json, tsconfig.esm.json, tsconfig.browser.json).
    • Update package.json fields (maincjs/node.js, add module, types, files) and scripts to build CJS/ESM/Browser; add dev deps (rollup, plugin-typescript, typescript, rimraf).
    • Move shared telemetry code to src/telemetry/*; update imports in src/client.ts and src/node.ts; improve TelemetryNoop typings; remove legacy index.js and old tsconfig.
  • Consumer updates
    • Switch browser imports to @packages/telemetry/browser/client in packages/app and packages/driver.
    • Proxy: pass span || undefined to handleHttpRequest.
  • Docs
    • Update README examples to new browser import path and add bundling notes; mark telemetry as completed in guides/esm-migration.md.
  • Tests
    • Update imports to new paths and adjust constructor options (e.g., isVerbose), fixing types.
  • Deps/infra
    • Add rollup/typescript entries to yarn.lock.

Written by Cursor Bugbot for commit e15f512. This will update automatically on new commits. Configure here.

@cypress
Copy link

cypress bot commented Oct 1, 2025

cypress    Run #66354

Run Properties:  status check failed Failed #66354  •  git commit 98981faa55: chore: make the @packages/telemetry an independent bundle without needed ts-node...
Project cypress
Branch Review chore/bundle_telemetry
Run status status check failed Failed #66354
Run duration 19m 54s
Commit git commit 98981faa55: chore: make the @packages/telemetry an independent bundle without needed ts-node...
Committer Bill Glesias
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 12
Tests that did not run due to a developer annotating a test with .skip  Pending 1102
Tests that did not run due to a failure in a mocha hook  Skipped 4
Tests that passed  Passing 26706
View all changes introduced in this branch ↗︎

Warning

Partial Report: The results for the Application Quality reports may be incomplete.

UI Coverage  45.4%
  Untested elements 185  
  Tested elements 158  
Accessibility  97.97%
  Failed rules  4 critical   8 serious   2 moderate   2 minor
  Failed elements 101  

Tests for review

Failed  cypress/e2e/studio/studio.cy.ts • 1 failed test • app-e2e

View Output

Test Artifacts
Cypress Studio > updates an existing test with assertions Test Replay Screenshots
Flakiness  issues/28527.cy.ts • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
issue 28527 > fails and then retries and verifies about:blank is not displayed Test Replay Screenshots
Flakiness  e2e/origin/config_env.cy.ts • 1 flaky test • 5x-driver-chrome

View Output

Test Artifacts
cy.origin- Cypress.config() > serializable > overwrites different values in secondary if one exists in the primary Test Replay
Flakiness  issues/28527.cy.ts • 1 flaky test • 5x-driver-chrome

View Output

Test Artifacts
issue 28527 > fails and then retries and verifies about:blank is not displayed Test Replay Screenshots
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox

View Output

Test Artifacts
... > stops waiting when an xhr request is canceled
    </td>
  </tr></table>
Flakiness  commands/waiting.cy.js • 1 flaky test • 5x-driver-chrome:beta

View Output

Test Artifacts
... > errors > throws when waiting for response to route Test Replay

The first 5 flaky specs are shown, see all 11 specs in Cypress Cloud.

@AtofStryker AtofStryker changed the title chore(DRAFT): make the @packages/telemetry an independent bundle chore(DRAFT): make the @packages/telemetry an independent bundle Oct 6, 2025
@AtofStryker AtofStryker force-pushed the chore/bundle_telemetry branch from 611d915 to 5262613 Compare October 7, 2025 00:34
cursor[bot]

This comment was marked as outdated.

@AtofStryker AtofStryker force-pushed the chore/bundle_telemetry branch from 5262613 to 74cc257 Compare October 10, 2025 14:18
…ded ts-node to register entrypoint. Both ESM and CJS distributions are built and types are used as source to be compatible with older styles of commonjs bundling. Types are not shipped with the package.
@AtofStryker AtofStryker force-pushed the chore/bundle_telemetry branch from 74cc257 to 98981fa Compare October 10, 2025 14:23
@AtofStryker AtofStryker changed the title chore(DRAFT): make the @packages/telemetry an independent bundle chore: make the @packages/telemetry an independent bundle Oct 10, 2025
@AtofStryker AtofStryker merged commit 6e7a742 into develop Oct 10, 2025
6 of 8 checks passed
@AtofStryker AtofStryker deleted the chore/bundle_telemetry branch October 10, 2025 15:45
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 18, 2025

Released in 15.5.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v15.5.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Oct 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants