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

Run cypress-tests and cypress-tests-tenancy-disabled on Chrome #1728

Merged

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Jan 5, 2024

Description

Fixes an error seen on cypress tests runs like this:

...
Still waiting to connect to Firefox, retrying in 1 second (attempt 58/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 59/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 60/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 61/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 62/62)
Cypress failed to make a connection to Firefox.

This usually indicates there was a problem opening the Firefox browser.

Error: could not find CRI target
    at lazyAssLogic (/home/runner/.cache/Cypress/9.5.4/Cypress/resources/app/node_modules/lazy-ass/index.js:110:14)
    at lazyAss (/home/runner/.cache/Cypress/9.5.4/Cypress/resources/app/node_modules/lazy-ass/index.js:115:28)
    at findStartPage (/home/runner/.cache/Cypress/9.5.4/Cypress/resources/app/packages/server/lib/browsers/protocol.js:56:28)
    at runMicrotasks (<anonymous>:null:null)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

by switching these workflows to run with Chrome instead.

Also renames these jobs since tests is used in multiple workflows and these should ideally be unique.

Category

Test fix

Issues Resolved

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Craig Perkins <[email protected]>
@cwperks cwperks added the backport 2.x backport to 2.x branch label Jan 5, 2024
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (780b3aa) 67.09% compared to head (9514b39) 67.09%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1728   +/-   ##
=======================================
  Coverage   67.09%   67.09%           
=======================================
  Files          94       94           
  Lines        2404     2404           
  Branches      318      318           
=======================================
  Hits         1613     1613           
  Misses        713      713           
  Partials       78       78           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@peternied
Copy link
Member

peternied commented Jan 5, 2024

@cwperks Could you create a copy of this PR in your fork with 10x runs of these jobs to make sure they are reliable then link it back here?

@cwperks
Copy link
Member Author

cwperks commented Jan 8, 2024

@peternied I just pushed a branch to run this 10x

@cwperks
Copy link
Member Author

cwperks commented Jan 8, 2024

@peternied See results of the run here: https://github.com/cwperks/security-dashboards-plugin/actions/runs/7448743565/job/20263781185

Ubuntu appears stable, but the windows runners do not consistently pass (its a coin toss).

Should I remove windows-latest from the matrix for these checks and file an issue around enabling these 2 checks on Windows?

@peternied
Copy link
Member

Should I remove windows-latest from the matrix for these checks and file an issue around enabling these 2 checks on Windows?

Definitely, lets create a separate issue, or add onto an existing one to track what isn't working with windows.

@cwperks
Copy link
Member Author

cwperks commented Jan 8, 2024

Thank you @peternied. I removed windows-latest from the matrix and will modify the description of this issue to include the 2 workflows in this PR.

peternied
peternied previously approved these changes Jan 8, 2024
Copy link
Collaborator

@derek-ho derek-ho left a comment

Choose a reason for hiding this comment

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

LGTM

RyanL1997
RyanL1997 previously approved these changes Jan 11, 2024
Signed-off-by: Craig Perkins <[email protected]>
@DarshitChanpura DarshitChanpura merged commit b5f7134 into opensearch-project:main Jan 11, 2024
13 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 11, 2024
…1728)

Signed-off-by: Craig Perkins <[email protected]>
Co-authored-by: Darshit Chanpura <[email protected]>
(cherry picked from commit b5f7134)
peternied pushed a commit that referenced this pull request Jan 11, 2024
…1728) (#1733)

Signed-off-by: Craig Perkins <[email protected]>
Co-authored-by: Darshit Chanpura <[email protected]>
(cherry picked from commit b5f7134)

Co-authored-by: Craig Perkins <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants