-
Notifications
You must be signed in to change notification settings - Fork 58
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
Cypress workflow improvements #560
Cypress workflow improvements #560
Conversation
Signed-off-by: Tyler Ohlsen <[email protected]>
CI will fail to run 3.0 cluster. Confirmed on my local this runs all 11 test suites (8 existing + 3 new under
|
Codecov Report
@@ Coverage Diff @@
## main #560 +/- ##
=======================================
Coverage 50.25% 50.25%
=======================================
Files 166 166
Lines 5593 5593
Branches 1055 1055
=======================================
Hits 2811 2811
Misses 2511 2511
Partials 271 271 |
Signed-off-by: Tyler Ohlsen <[email protected]>
@@ -132,6 +128,6 @@ jobs: | |||
uses: cypress-io/github-action@v2 | |||
with: | |||
working-directory: opensearch-dashboards-functional-test | |||
command: yarn run cypress run --env SECURITY_ENABLED=false --spec cypress/integration/plugins/anomaly-detection-dashboards-plugin/*.js | |||
command: yarn run cypress run --env SECURITY_ENABLED=false --spec cypress/integration/plugins/anomaly-detection-dashboards-plugin/**/*.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this skip existing specs like create_detector_spec.js as you only execute specs under anomaly-detection-dashboards-plugin's subdirectories?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, they will be included along with any subdirectories - you can see that in the list of found specs in comment above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your command in the comment has no .js:
yarn cypress:run-without-security --spec 'cypress/integration/plugins/anomaly-detection-dashboards-plugin/**/*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed it still shows 11 w/ command:
│ Specs: 11 found (plugins/anomaly-detection-dashboards-plugin/create_detector_spec.js, │
│ plugins/anomaly-detection-dashboards-plugin/dashboard_spec.js, plugins/anomal │
│ y-detection-dashboards-plugin/detector_configuration_spec.js, plugins/anomaly- │
│ detection-dashboards-pl...)
@amitgalitz can you look into the test failures? Looks related to associated detectors page. |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-560-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 53677c54a8df8e2e77a5cb34f98acd5e7c202ab9
# Push it to GitHub
git push --set-upstream origin backport/backport-560-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x Then, create a pull request where the |
Signed-off-by: Tyler Ohlsen <[email protected]>
Signed-off-by: Tyler Ohlsen <[email protected]>
Description
This PR has 2 improvements:
vis_augmenter
subdirectory as part of this PR and are currently not running in this workflow.main
, this will fetchmain
branches of all the repos. This follows what is done in OSD repo. It also helps prevent conflicts and lessens the differences betweenmain
/2.x
.Check List
--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.