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: flaky redirect test #19042

Merged
merged 5 commits into from
Nov 23, 2021
Merged

fix: flaky redirect test #19042

merged 5 commits into from
Nov 23, 2021

Conversation

mjhenkes
Copy link
Member

@mjhenkes mjhenkes commented Nov 22, 2021

  • Closes

User facing changelog

Change is not user facing.

Additional details

This test is failing due to issue #19039. Previously failed XHR calls can be matched up with subsequent XHR calls inappropriately. Specifically the /timeout?ms=100 call is matching up with a previously failed instance of this. This pr avoids this issue by specifying a new /retry-timeout route. Since the route is unique to this test it doesn't have the possibility of having a previously failed pre-request. This is not fixing the root issue, just providing flaky test relief.

How has the user experience changed?

PR Tasks

  • Have tests been added/updated?

@mjhenkes mjhenkes self-assigned this Nov 22, 2021
@mjhenkes mjhenkes requested a review from a team as a code owner November 22, 2021 17:48
@mjhenkes mjhenkes requested review from jennifer-shehane and removed request for a team November 22, 2021 17:48
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 22, 2021

Thanks for taking the time to open a PR!

@mjhenkes mjhenkes changed the title 'Fix' flaky redirect test Fix: flaky redirect test Nov 22, 2021
@mjhenkes mjhenkes changed the title Fix: flaky redirect test fix: flaky redirect test Nov 22, 2021
@cypress
Copy link

cypress bot commented Nov 22, 2021



Test summary

18705 0 202 0Flakiness 2


Run details

Project cypress
Status Passed
Commit f0fa47c
Started Nov 23, 2021 3:29 PM
Ended Nov 23, 2021 3:40 PM
Duration 11:38 💡
OS Linux Debian - 10.10
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"
cypress/proxy-logging-spec.ts Flakiness
1 ... > works with forceNetworkError

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

@chrisbreiding chrisbreiding requested review from chrisbreiding and flotwig and removed request for jennifer-shehane November 23, 2021 15:20
Copy link
Contributor

@flotwig flotwig left a comment

Choose a reason for hiding this comment

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

Nice. Let's get #19039 moving soon too.

Comment on lines +46 to +53
app.get('/redirect-timeout', (req, res) => {
return Promise
.delay(100)
.then(() => {
return res.send('<html><body>timeout</body></html>')
})
})

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: is there something blocking you from creating a cy.intercept() instead of a new route in server.js? This file be balloonin'. I guess you'd have to update the test to deal with the add'l logs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, this was my attempt to be minimally invasive.

@mjhenkes mjhenkes merged commit 2b4916f into develop Nov 23, 2021
@mjhenkes mjhenkes deleted the fix-flaky-redirect-test branch November 23, 2021 16:16
tgriesser added a commit that referenced this pull request Nov 28, 2021
* develop:
  test: node_modules installs for system-tests, other improvements (#18574)
  chore(deps): update dependency semantic-release to v17.2.3 [security] (#19022)
  chore: remove flaky ci jobs for main builds (#19071)
  chore(contributing): clarify PULL_REQUEST_TEMPLATE (#19068)
  fix: the shadow root container element is ignored when clicking an element in it. (#18908)
  'Fix' flaky redirect test (#19042)
  release 9.1.0 [skip ci]
  fix: Allow 'this' to be used in overridden commands (#18899)
  fix(react): link to rerender example (#19020)
  chore(deps): update dependency aws-sdk to v2.814.0 [security] (#18948)
  fix: test config overrides leak for .only execution (#18961)
  feat: Set CYPRESS=true as env var in child processes where Cypress runs user code in Node (#18981)
  fix: Restore broken gif (#18987)
  chore: release @cypress/vite-dev-server-v2.2.1
lmiller1990 pushed a commit that referenced this pull request Nov 29, 2021
tgriesser added a commit that referenced this pull request Nov 29, 2021
* 10.0-release:
  feat(graphql): ability to update/query for appData (#19082)
  fix system test
  fix failing tests due to merge
  resolve conflicts
  test: node_modules installs for system-tests, other improvements (#18574)
  update yarn.lock
  chore(deps): update dependency semantic-release to v17.2.3 [security] (#19022)
  chore: remove flaky ci jobs for main builds (#19071)
  chore(contributing): clarify PULL_REQUEST_TEMPLATE (#19068)
  fix: the shadow root container element is ignored when clicking an element in it. (#18908)
  'Fix' flaky redirect test (#19042)
  release 9.1.0 [skip ci]
  fix: Allow 'this' to be used in overridden commands (#18899)
  fix(react): link to rerender example (#19020)
  chore(deps): update dependency aws-sdk to v2.814.0 [security] (#18948)
  fix: test config overrides leak for .only execution (#18961)
  feat: Set CYPRESS=true as env var in child processes where Cypress runs user code in Node (#18981)
  fix: Restore broken gif (#18987)
  chore: release @cypress/vite-dev-server-v2.2.1
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