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: optimize reduce addCypressToWebpackEslintRulesInPlace #27819

Merged

Conversation

Connormiha
Copy link
Contributor

Additional details

I just optimized reduce to avoid creating new object each iteration. And set O(n) instead of O(n*n).

Steps to test

How has the user experience changed?

PR Tasks

@CLAassistant
Copy link

CLAassistant commented Sep 15, 2023

CLA assistant check
All committers have signed the CLA.

@cypress-app-bot
Copy link
Collaborator

@cypress
Copy link

cypress bot commented Sep 15, 2023

24 flaky tests on run #51046 ↗︎

0 28124 1345 0 Flakiness 24

Details:

fix: optimize reduce addCypressToWebpackEslintRulesInPlace
Project: cypress Commit: ca2e7597e7
Status: Passed Duration: 18:37 💡
Started: Sep 15, 2023 11:52 AM Ended: Sep 15, 2023 12:11 PM
Flakiness  project-setup.cy.ts • 1 flaky test • launchpad-e2e

View Output Video

Test Artifacts
... > skips the setup steps when choosing component tests to run Test Replay Output Screenshots
Flakiness  specs_list_latest_runs.cy.ts • 1 flaky test • app-e2e

View Output Video

Test Artifacts
App/Cloud Integration - Latest runs and Average duration > when no runs are recorded > shows placeholders for all visible specs Test Replay Output Screenshots
Flakiness  e2e/origin/config_env.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

Test Artifacts
cy.origin- Cypress.config() > serializable > overwrites different values in secondary if one exists in the primary Output
Flakiness  e2e/origin/commands/assertions.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

Test Artifacts
cy.origin assertions > #consoleProps > .should() and .and() Output
Flakiness  cypress/cypress.cy.js • 3 flaky tests • 5x-driver-firefox

View Output Video

Test Artifacts
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output

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

Review all test suite changes for PR #27819 ↗︎

@nagash77
Copy link
Contributor

Hi @Connormiha I am seeing some linting failures in the build. Can you please check out our contributing guide linting standards and update your PR? I am also seeing a failing check-ts check.

@Connormiha
Copy link
Contributor Author

Hi @Connormiha I am seeing some linting failures in the build. Can you please check out our contributing guide linting standards and update your PR? I am also seeing a failing check-ts check.

I updated, but it seems the tests didn't restart.

@Connormiha Connormiha force-pushed the simplify-reduce-app-handler branch from cd17a81 to 8379abc Compare September 18, 2023 21:47
@jennifer-shehane jennifer-shehane merged commit 43792e7 into cypress-io:develop Jan 29, 2024
67 checks passed
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.

7 participants