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: Remove experimentalRunEvents flag #15276

Merged
merged 5 commits into from
Mar 2, 2021

Conversation

chrisbreiding
Copy link
Contributor

@chrisbreiding chrisbreiding commented Mar 1, 2021

User facing changelog

  • The experimentalRunEvents configuration flag has been removed. It is no longer necessary to enable listening to run events in the plugins file.

PR Tasks

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 1, 2021

Thanks for taking the time to open a PR!

@chrisbreiding chrisbreiding changed the title Remove experimentalRunEvents flag chore: Remove experimentalRunEvents flag Mar 1, 2021
@chrisbreiding chrisbreiding changed the title chore: Remove experimentalRunEvents flag feat: Remove experimentalRunEvents flag Mar 1, 2021
@bahmutov
Copy link
Contributor

bahmutov commented Mar 1, 2021

Will these events be enabled in both interactive and non-interactive modes?

@chrisbreiding
Copy link
Contributor Author

Just run mode for the time being.

@bahmutov
Copy link
Contributor

bahmutov commented Mar 1, 2021

I was hoping both, so I could switch code coverage plugin to it, otherwise no luck, has to happen in both modes https://github.com/cypress-io/code-coverage

@chrisbreiding
Copy link
Contributor Author

That requires more discussion and work to implement. For now, we're just removing the flag.

@cypress
Copy link

cypress bot commented Mar 1, 2021



Test summary

9362 2 118 3Flakiness 1


Run details

Project cypress
Status Failed
Commit 6a81fd1
Started Mar 2, 2021 3:17 PM
Ended Mar 2, 2021 3:29 PM
Duration 11:22 💡
OS Linux Debian - 10.5
Browser Multiple

View run in Cypress Dashboard ➡️


Failures

cypress/integration/commands/querying_spec.js Failed
1 ... > retries until length equals n
2 ... > route aliases > returns the 2nd xhr when dots in alias

Flakiness

cypress/integration/retries.ui.spec.js Flakiness
1 runner/cypress retries.ui.spec > opens attempt on each attempt failure for the screenshot, and closes after test passes

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

flotwig
flotwig previously approved these changes Mar 1, 2021
Comment on lines -77 to -81
}, {
name: 'experimentalRunEvents',
defaultValue: false,
validation: v.isBoolean,
isExperimental: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

would it be good to add this to breakingOptions at the bottom of this file, so users get a warning that it's no longer required to pass this option?

Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

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

I'm trying to see that the events work without the flag and I can't console.log any of the details. I know I have the changes because I see the new warning message. Am I missing something? Running via yarn start.

module.exports = (on, config) => {
  on('before:run', (details) => { 
    console.log(details) 
  })
  on('before:spec', (spec) => { 
    console.log(spec) 
  })
  on('after:spec', (spec, results) => { 
    console.log(spec, results) 
  })
  on('after:run', (results) => { 
    console.log(results) 
  })
}

Screen Shot 2021-03-01 at 7 59 48 PM

Also, when did this happen to our CSS? 😳 This error message on the plugins is completely weird.

@chrisbreiding
Copy link
Contributor Author

I'm trying to see that the events work without the flag and I can't console.log any of the details. I know I have the changes because I see the new warning message. Am I missing something? Running via yarn start.

These events only fire in run mode, so you won't see them with yarn start.

As for the CSS, I think the bootstrap upgrade would be the most likely culprit.

Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

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

@chrisbreiding We didn't upgrade bootstrap recently that I'm aware of. Do you have a PR link?

I'll open a new PR to fix the CSS issue.

@chrisbreiding
Copy link
Contributor Author

My mistake, I thought we had merged the bootstrap upgrade, but we haven't. Maybe the node-sass change?

@chrisbreiding chrisbreiding merged commit 59c2c03 into develop Mar 2, 2021
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 15, 2021

Released in 6.7.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v6.7.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Mar 15, 2021
@chrisbreiding chrisbreiding deleted the TR-671-remove-run-events-flag branch April 5, 2022 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants