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: set a crashed flag when cri detects a crash #27909

Merged
merged 16 commits into from Oct 2, 2023

Conversation

cacieprins
Copy link
Contributor

  • Closes

Additional details

When a crash is encountered, CRI does not automatically reject CDP commands. This was preventing capture protocol from properly completing afterSpec cleanup. To fix this, the CRI client listens for a crash signal and sets a crashed flag so that send can properly reject its return promise.

Steps to test

How has the user experience changed?

PR Tasks

@cacieprins cacieprins marked this pull request as ready for review September 26, 2023 18:26
cli/CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@ryanthemanuel ryanthemanuel left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for getting this fixed!

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
@cypress
Copy link

cypress bot commented Sep 26, 2023

24 flaky tests on run #51384 ↗︎

0 28134 1345 0 Flakiness 24

Details:

updates changelog
Project: cypress Commit: 50e2e77beb
Status: Passed Duration: 19:47 💡
Started: Oct 2, 2023 5:17 PM Ended: Oct 2, 2023 5:37 PM
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

Test Artifacts
network stubbing > waiting and aliasing > can spy on a 304 not modified image response Output
Flakiness  e2e/origin/basic_login.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

Test Artifacts
Multi-step Auth > final-auth redirects back to localhost - flat 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
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

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

Review all test suite changes for PR #27909 ↗︎

@cacieprins cacieprins merged commit 9ca7883 into develop Oct 2, 2023
80 of 82 checks passed
@cacieprins cacieprins deleted the cacie/fix/protocol-crash-hang branch October 2, 2023 19:03
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 11, 2023

Released in 13.3.1.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Oct 11, 2023
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.

None yet

3 participants