-
Notifications
You must be signed in to change notification settings - Fork 3.4k
chore(DRAFT): make the @packages/telemetry
an independent bundle
#32623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AtofStryker
wants to merge
1
commit into
develop
Choose a base branch
from
chore/bundle_telemetry
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+178
−55
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cypress
|
Project |
cypress
|
Branch Review |
chore/bundle_telemetry
|
Run status |
|
Run duration | 20m 01s |
Commit |
|
Committer | Bill Glesias |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
1
|
|
15
|
|
1102
|
|
4
|
|
26690
|
View all changes introduced in this branch ↗︎ |
Warning
Partial Report: The results for the Application Quality reports may be incomplete.
UI Coverage
45.11%
|
|
---|---|
|
186
|
|
157
|
Accessibility
97.96%
|
|
---|---|
|
4 critical
8 serious
2 moderate
2 minor
|
|
101
|
Tests for review
cypress/e2e/studio/studio.cy.ts • 1 failed test • app-e2e
Test | Artifacts | |
---|---|---|
Cypress Studio > creates a new test from an empty spec |
Test Replay
Screenshots
|
issues/28527.cy.ts • 1 flaky test • 5x-driver-electron
Test | Artifacts | |
---|---|---|
issue 28527 > fails and then retries and verifies about:blank is not displayed |
Test Replay
Screenshots
|
e2e/origin/config_env.cy.ts • 1 flaky test • 5x-driver-inject-document-domain-chrome
Test | Artifacts | |
---|---|---|
cy.origin- Cypress.config() > serializable > overwrites different values in secondary if one exists in the primary |
Test Replay
|
commands/waiting.cy.js • 1 flaky test • 5x-driver-chrome:beta
Test | Artifacts | |
---|---|---|
... > errors > throws when waiting for 2nd response to route |
Test Replay
|
e2e/origin/config_env.cy.ts • 1 flaky test • 5x-driver-chrome:beta
Test | Artifacts | |
---|---|---|
cy.origin- Cypress.config() > serializable > overwrites different values in secondary if one exists in the primary |
Test Replay
|
issues/28527.cy.ts • 1 flaky test • 5x-driver-chrome:beta
Test | Artifacts | |
---|---|---|
issue 28527 > fails and then retries and verifies about:blank is not displayed |
Test Replay
Screenshots
|
The first 5 flaky specs are shown, see all 15 specs in Cypress Cloud.
@packages/telemetry
an independent bundle
…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.
611d915
to
5262613
Compare
"target": "ES2022", | ||
"module": "ES2022", | ||
"moduleResolution": "node", | ||
"noEmit": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additional details
Makes
@packages/telemetry
an independent bundle. This change, similar to #32633, builds@packages/telemetry
with 3 entry points: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 userollup
to move/rename the compiled browser bundle (NOTE:node_modules
dependencies are external and will be resolved by the package) to have abrowser
entry point, and omit theclient
file in thenode
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
TODO: needs to be tested with the telemetry client
Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?Note
Restructures @packages/telemetry into separate CJS/ESM/browser builds and switches all browser imports to
@packages/telemetry/browser/client
, with docs/tests and minor proxy handling updates.cjs/
(Node CJS),esm/
(Node ESM), and bundledbrowser/client
(Rollup).package.json
(main/types/module, build scripts), add Rollup config and tsconfigs; remove TS runtimeindex.js
loader.src/telemetry/index.ts
), adjustTelemetryNoop
typings.@packages/telemetry/src/browser
→@packages/telemetry/browser/client
inpackages/app
,driver
, and runner telemetry events.packages/telemetry
as completed in ESM migration guide.isVerbose
).network-proxy.ts
(span || undefined
).Written by Cursor Bugbot for commit 5262613. This will update automatically on new commits. Configure here.