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

fix: re-enable CYPRESS_INTERNAL_VITE_DEV development #25364

Merged
merged 2 commits into from
Jan 18, 2023

Conversation

ZachJW34
Copy link
Contributor

@ZachJW34 ZachJW34 commented Jan 4, 2023

User facing changelog

n/a

Additional details

CYPRESS_INTERNAL_VITE_DEV=1 yarn dev was not working due to Vite updates changing the stdout and causing our process spawner to not proceed with the gulp process. I also added stripAnsi to the matcher as the Vite stdout is colorful.

I also removed the rimraf ./node_modules/.vite as that is where the vite optimized deps live. @tgriesser do you remember why we had to do this? Maybe CI will tell me after I break everything...

Steps to test

Run CYPRESS_INTERNAL_VITE_DEV=1 yarn dev. I had to run this, try and navigate to the app and then restart the process. Vite was optimizing deps but there was too many and it was timing out. It got closer and closer each time and then eventually started working. I'm on a slow machine though so maybe it was just a me thing.

How has the user experience changed?

Faster dev environment when making changes to the app/launchpad. Updates went from 20s to less than 1 second.

PR Tasks

  • Have tests been added/updated?
  • Has the original issue (or this PR, if no issue exists) been tagged with a release in ZenHub? (user-facing changes only)
  • Has a PR for user-facing changes been opened in cypress-documentation?
  • Have API changes been updated in the type definitions?

@tgriesser
Copy link
Member

I also removed the rimraf ./node_modules/.vite as that is where the vite optimized deps live. @tgriesser do you remember why we had to do this? Maybe CI will tell me after I break everything...

Seems fine to me, I think there were issues with cached files but it was awhile ago, maybe not an issue with more recent vite versions

@ZachJW34 ZachJW34 self-assigned this Jan 6, 2023
@cypress
Copy link

cypress bot commented Jan 6, 2023



Test summary

26418 0 1179 0Flakiness 44


Run details

Project cypress
Status Passed
Commit 5d07e5e
Started Jan 6, 2023 6:50 PM
Ended Jan 6, 2023 7:08 PM
Duration 18:54 💡
OS Linux Debian -
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

create-from-component.cy.ts Flakiness
1 ... > runs generated spec
commands/net_stubbing.cy.ts Flakiness
1 network stubbing > intercepting request > can delay and throttle a StaticResponse
2 network stubbing > intercepting request > can delay and throttle a StaticResponse
3 ... > with `times` > only uses each handler N times
4 network stubbing > intercepting response > can throttle a proxy response using res.setThrottle
This comment includes only the first 5 flaky tests. See all 44 flaky tests in the Cypress Dashboard.

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@lmiller1990 lmiller1990 merged commit 991c532 into develop Jan 18, 2023
@lmiller1990 lmiller1990 deleted the zachw/reenable-vite-dev branch January 18, 2023 01:47
tgriesser added a commit that referenced this pull request Jan 18, 2023
* develop: (45 commits)
  fix: re-enable CYPRESS_INTERNAL_VITE_DEV development (#25364)
  fix: add skip domain injection description (#25463)
  fix: revert CSP header and script-src addition (#25445)
  chore: Update v8 snapshot cache (#25401)
  feat: Do not strip CSP headers from HTTPResponse (#24760)
  fix: keep spaces in formatted output in test runner (#24687)
  fix: Restrict dependency versions to known supported ranges (#25380)
  chore: Update v8 snapshot cache (#25370)
  feat: experimental skip domain injection (#25307)
  chore: support vite v4 for component testing (#25365)
  feat: Use JSX/TSX in generated spec filenames (#25318)
  docs(angular): Properties that are spied upon have to be defined within `componentProperties` instead of on root level. (#25359)
  chore: remove lint-changed from scripts/docs (#25308)
  chore: bump to 12.3.0 [skip ci] (#25355)
  fix: make NODE_ENV "production" for prod builds of launchpad (#25320)
  fix: .contains() should only return one element at all times (#25250)
  feat: add currentRetry to Cypress API (#25297)
  chore: release @cypress/webpack-dev-server-v3.2.2
  chore: release create-cypress-tests-v2.0.1
  fix: change wording for spec creation (#25271)
  ...
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.

3 participants