Skip to content
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

refactor: lifts toPosix to its own file, removes circular dependency between stack_utils and source_map_utils #30983

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

cacieprins
Copy link
Contributor

  • Closes

Additional details

Lifts the function from stack_utils that source_map_utils was using to its own file. This enables the removal of the stack_utils.ts <-> source_map_utils cycle. Vitest unit tests are added as well.

This utility is recreated several times across the repo. Perhaps a single third party npm package, like unixify or normalize-path would be helpful.

Steps to test

How has the user experience changed?

PR Tasks

@cacieprins cacieprins marked this pull request as ready for review January 30, 2025 17:22
Copy link

cypress bot commented Jan 30, 2025

cypress    Run #60273

Run Properties:  status check failed Failed #60273  •  git commit 350918f192: Merge branch 'develop' into cacie/refactor/stack-sourcemap-circular
Project cypress
Branch Review cacie/refactor/stack-sourcemap-circular
Run status status check failed Failed #60273
Run duration 17m 48s
Commit git commit 350918f192: Merge branch 'develop' into cacie/refactor/stack-sourcemap-circular
Committer Cacie Prins
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 7
Tests that did not run due to a developer annotating a test with .skip  Pending 1099
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 26528
View all changes introduced in this branch ↗︎
UI Coverage  46.2%
  Untested elements 186  
  Tested elements 164  
Accessibility  92.54%
  Failed rules  3 critical   8 serious   2 moderate   2 minor
  Failed elements 885  

Tests for review

Failed  src/runs/RunCard.cy.tsx • 1 failed test • app-ct

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
... > can timeout when retrieving upstream response Test Replay
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  issues/28527.cy.ts • 1 flaky test • 5x-driver-chrome:beta

View Output

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

View Output

Test Artifacts
... > errors > throws when route is never resolved 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

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

@jennifer-shehane
Copy link
Member

@cacieprins Hmm, a lot of weird failures on this one https://cloud.cypress.io/projects/ypt4pf/runs/60150/overview

@cacieprins
Copy link
Contributor Author

@cacieprins Hmm, a lot of weird failures on this one https://cloud.cypress.io/projects/ypt4pf/runs/60150/overview

Bizarre.. I'll table this refactor for now

@cacieprins cacieprins marked this pull request as draft January 30, 2025 18:36
@cacieprins cacieprins marked this pull request as ready for review February 5, 2025 16:33
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