Cypress workflow improvements#560
Conversation
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
|
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 <ohltyler@amazon.com>
| 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.
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.
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.
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.
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.xThen, create a pull request where the |
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
…oject#570) Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com> (cherry picked from commit 6f114af)
Description
This PR has 2 improvements:
vis_augmentersubdirectory as part of this PR and are currently not running in this workflow.main, this will fetchmainbranches 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
--signoffBy 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.