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: support using create-cypress-tests as part of build process #18714

Merged
merged 13 commits into from
Nov 1, 2021

Conversation

lmiller1990
Copy link
Contributor

@lmiller1990 lmiller1990 commented Nov 1, 2021

  • support importing from create-cypress-tests inside of packages
  • add missing deps to data-context
  • had to increase max zip side, can probably decrease prior to release when we remove a lot of older, unused code

Example failing step: https://app.circleci.com/pipelines/github/cypress-io/cypress/25799/workflows/adc8b63e-591b-4aa6-a4e5-119ccf9f2708/jobs/969136

@lmiller1990 lmiller1990 requested a review from a team as a code owner November 1, 2021 01:38
@lmiller1990 lmiller1990 requested review from jennifer-shehane and removed request for a team November 1, 2021 01:38
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 1, 2021

Thanks for taking the time to open a PR!

@lmiller1990 lmiller1990 requested review from a team and tgriesser and removed request for a team and jennifer-shehane November 1, 2021 01:38
@cypress
Copy link

cypress bot commented Nov 1, 2021



Test summary

18569 0 216 7Flakiness 3


Run details

Project cypress
Status Passed
Commit 7e838f6
Started Nov 1, 2021 3:57 PM
Ended Nov 1, 2021 4:15 PM
Duration 18:09 💡
OS Linux Debian - 10.9
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

commands/net_stubbing_spec.ts Flakiness
1 network stubbing > waiting and aliasing > can timeout waiting on a single request using "alias.request"
2 network stubbing > waiting and aliasing > can timeout waiting on a single request using "alias.request"
e2e/redirects_spec.js Flakiness
1 redirection > meta > binds to the new page after a timeout

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

@@ -73,7 +73,7 @@ const checkZipSize = function (zipPath) {
const zipSize = filesize(stats.size, { round: 0 })

console.log(`zip file size ${zipSize}`)
const MAX_ALLOWED_SIZE_MB = os.platform() === 'win32' ? 295 : 260
const MAX_ALLOWED_SIZE_MB = os.platform() === 'win32' ? 295 : 300
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can decrease when we remove all the old code, prior to merging this feature branch?

Copy link
Member

@tgriesser tgriesser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saw this last week and was looking to fix before we merged #18704. One last thing needed - we need to ensure that create-cypress-tests is copied over to the binary builds, which it currently isn't because it doesn't start with @cypress/.

It's a simple fix in this code, but was looking to get failing tests for it before I pushed, since this isn't seeming to catch that because of how the node_modules resolves, thinking we need to rm -rf packages && rm -rf npm or something after the build, before we run the smoke tests. Will push that up in a few.

"create-cypress-tests": "0.0.0-development",
"cross-fetch": "^3.1.4",
"dataloader": "^2.0.0",
"dedent": "^0.7.0",
"electron": "14.1.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must've missed when this happened. I don't think we should be depending on electron, if anything it should be injected from server.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I agree, I thought it was a bit weird a data layer pulls in electron - we should remove that. I think @ImCesar is working around electron now, maybe he can remove the reference to electron we have in data-context when he is back.

@ZachJW34 ZachJW34 mentioned this pull request Nov 1, 2021
5 tasks
@tgriesser tgriesser merged commit 0501452 into unified-desktop-gui Nov 1, 2021
@tgriesser tgriesser deleted the lmiller1990/fix-build-step branch November 1, 2021 16:19
@ZachJW34
Copy link
Contributor

ZachJW34 commented Nov 1, 2021

I added create-cypress-tests so as to use the scanFSForAvailableDependency function. Looks like it would have been easier to duplicate the code rather than having to setup the build steps necessary to import packages not prefixed with @cypress from /npm. Sorry to cause all the hassle!

tgriesser added a commit that referenced this pull request Nov 4, 2021
…ve-activeProject

* unified-desktop-gui: (57 commits)
  chore: Add e2e tests for global mode (#18719)
  chore: add percy to app and launchpad package (#18781)
  chore: update test
  refactor: move settings in app (#18729)
  feat: setup launchpad lifecycle (#18734)
  feat(app): decouple event manager from driver (#18695)
  chore: Force single resolution for core modules, infinite loop guard (#18764)
  fix(driver): Sticky elements within a fixed container will not prevent an element from being scrolled to (#18441)
  chore: cleaning up the runner container pattern (#18741)
  feat: Use .config files (#18578)
  chore(app): basic style and example to stop scrollIntoView bug (#18736)
  chore: make `create` function on server.ts obsolete (#18615)
  feat: add codegen utility (#18708)
  docs: Add instructions to squash commits to develop in Contributing (#18728)
  fix(@cypress/react): throw if using Next.js swc-loader without nodeVersion=system (#18686)
  refactor: remove Ramda (#18723)
  fix: support using create-cypress-tests as part of build process (#18714)
  chore: Increase paralleled machines for desktop-gui tests (#18725)
  fix(app): do not cache graphql (#18716)
  chore: Update Chrome (stable) to 95.0.4638.69 (#18696)
  ...
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