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

feat: Deprecate run-ct / open-ct, and update all examples to use --ct instead #18422

Merged
merged 22 commits into from
Oct 26, 2021

Conversation

BlueWinds
Copy link
Contributor

User facing changelog

cypress run-ct and cypress open-ct are deprecated and will be removed in a future version. Use Use cypress [open|run] --ct or cypress [open|run] --component instead.

PR Tasks

  • Have tests been added/updated?
  • Has the original issue or this PR been tagged with a release in ZenHub?

@BlueWinds BlueWinds requested a review from a team as a code owner October 8, 2021 19:00
@BlueWinds BlueWinds requested review from chrisbreiding and jennifer-shehane and removed request for a team October 8, 2021 19:00
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 8, 2021

Thanks for taking the time to open a PR!

@BlueWinds BlueWinds changed the title Deprecate run-ct / open-ct, and update all examples to use --ct instead feat: Deprecate run-ct / open-ct, and update all examples to use --ct instead Oct 8, 2021
@BlueWinds BlueWinds changed the title feat: Deprecate run-ct / open-ct, and update all examples to use --ct instead chore: Deprecate run-ct / open-ct, and update all examples to use --ct instead Oct 8, 2021
@BlueWinds BlueWinds changed the title chore: Deprecate run-ct / open-ct, and update all examples to use --ct instead feat: Deprecate run-ct / open-ct, and update all examples to use --ct instead Oct 8, 2021
@BlueWinds BlueWinds force-pushed the issue-18418-deprecate-open-ct branch from 19c40e0 to 4dec064 Compare October 8, 2021 22:06
@BlueWinds BlueWinds force-pushed the issue-18418-deprecate-open-ct branch from 4dec064 to c89d6cf Compare October 11, 2021 18:35
Copy link
Contributor

@chrisbreiding chrisbreiding left a comment

Choose a reason for hiding this comment

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

I tested this out manually and verified it works as intended.

Other than the log formatting changes, this needs a test of some kind, at least testing the DataContext change.

There are also a lot of failing tests that aren't failing in the base branch. Need to fix those before this can be merged in.

@@ -61,6 +61,13 @@ export class DataContext extends DataContextShell {
toAwait.push(this.actions.project.setActiveProject(this.config.launchArgs.projectRoot))
}

if (this.config.launchArgs.testingType) {
Copy link
Member

@emilyrohrbough emilyrohrbough Oct 12, 2021

Choose a reason for hiding this comment

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

Is it possible to test this?

Copy link
Member

Choose a reason for hiding this comment

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

Soon. Working on the testing infrastructure for open mode right now

Copy link
Contributor

Choose a reason for hiding this comment

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

@tgriesser Do you think there's any value in unit tests for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I went ahead and wrote one. Happy to change the approach there if people have opinions.

@cowboy cowboy requested a review from a team October 12, 2021 15:04
@BlueWinds BlueWinds force-pushed the issue-18418-deprecate-open-ct branch from fea1a39 to 5367165 Compare October 12, 2021 16:56
@chrisbreiding chrisbreiding self-assigned this Oct 12, 2021
return require('./run-ct').run(options)
}
if (mode === 'interactive') {
if (options.testingType === 'component' && !process.env.LAUNCHPAD) {
Copy link
Member

Choose a reason for hiding this comment

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

Is there documentation around the LAUNCHPAD env? I'm probably missing it but haven't found it yet

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not that I've found either. Speaking with the CT team, the original plan was to merge launchpad into the develop behind this flag, but plans changed, and now the env variable will be removed before launch.

I'm not removing it here in this PR though, because that's a change which will, I expect, have massive ramifications for our tests on cypress - at the very least every system test that assumes cypress open drops it into the e2e testing mode will need an update.

@cypress
Copy link

cypress bot commented Oct 22, 2021



Test summary

4206 0 50 2Flakiness 1


Run details

Project cypress
Status Passed
Commit 50555f5
Started Oct 25, 2021 8:45 PM
Ended Oct 25, 2021 8:56 PM
Duration 11:11 💡
OS Linux Debian - 10.9
Browser Electron 93

View run in Cypress Dashboard ➡️


Flakiness

cypress/integration/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

Co-authored-by: Chris Breiding <[email protected]>
@chrisbreiding chrisbreiding merged commit 196e8f6 into unified-desktop-gui Oct 26, 2021
tgriesser added a commit that referenced this pull request Oct 27, 2021
* unified-desktop-gui:
  feat: Adding a cache layer for remote queries, e2e test helpers (#18652)
  fix: overflow clip to prevent selector header from dissapearing (#18649)
  feat(unify): command log color update (#18596)
  build: run frontend-shared tests in CI (#18628)
  Update README.md
  feat: Deprecate run-ct / open-ct, and update all examples to use --ct instead (#18422)
  feat(unify): add growth prompts (#18626)
tgriesser added a commit that referenced this pull request Oct 27, 2021
* unified-desktop-gui:
  feat: Adding a cache layer for remote queries, e2e test helpers (#18652)
  fix: overflow clip to prevent selector header from dissapearing (#18649)
  feat(unify): command log color update (#18596)
  build: run frontend-shared tests in CI (#18628)
  Update README.md
  feat: Deprecate run-ct / open-ct, and update all examples to use --ct instead (#18422)
  feat(unify): add growth prompts (#18626)
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.

6 participants