-
Notifications
You must be signed in to change notification settings - Fork 34
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 integration tests on build #143
Run Cypress integration tests on build #143
Conversation
21c946b
to
adb7001
Compare
Codecov Report
@@ Coverage Diff @@
## main #143 +/- ##
=======================================
Coverage 81.42% 81.42%
=======================================
Files 13 13
Lines 140 140
Branches 27 27
=======================================
Hits 114 114
Misses 24 24
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
a0a2beb
to
712de0e
Compare
- "*" | ||
env: | ||
OPENSEARCH_DASHBOARDS_VERSION: 'main' | ||
OPENSEARCH_VERSION: '3.0.0-SNAPSHOT' |
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.
may I ask why it's running in opensearch_version, 3.0.0 snapshot?
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.
Right -- this is for the main branch. We'll go with 2.5 on the 2.x branch.
112035d
to
2033e05
Compare
@msfroh Great progress! Can we fix the timeout in git actions
|
# It doesn't matter what plugin we use, but by launching OpenSearch | ||
# from a plugin repo, we don't need to checkout and build | ||
# OpenSearch itself. | ||
- name: Checkout Anomaly-Detection | ||
uses: actions/checkout@v2 | ||
with: | ||
path: anomaly-detection | ||
repository: opensearch-project/anomaly-detection | ||
ref: ${{ env.ANOMALY_DETECTION_PLUGIN_VERSION }} | ||
|
||
- name: Run OpenSearch with plugin | ||
run: | | ||
cd anomaly-detection | ||
./gradlew run -Dopensearch.version=${{ env.OPENSEARCH_VERSION }} & | ||
bash -c 't=0; while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9200)" != "200" ]]; do sleep 5; let t=$t+5; if [[ $t -gt 300 ]]; then exit 1; fi; done' | ||
shell: bash |
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.
Update the path of anomaly-detection
and get the OpenSearch installed
8df179f
to
71435c4
Compare
71435c4
to
30e2853
Compare
Run the Cypress integration tests as a GitHub action on every build, to better catch regressions. Signed-off-by: Michael Froh <froh@amazon.com>
30e2853
to
26aa523
Compare
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.
This is awesome!
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
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport-143-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 2ef265d54536089c9749bea42e499fafc5a03804
# Push it to GitHub
git push --set-upstream origin backport-143-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
Run the Cypress integration tests as a GitHub action on every build, to better catch regressions. Signed-off-by: Michael Froh <froh@amazon.com> (cherry picked from commit 2ef265d)
Run the Cypress integration tests as a GitHub action on every build, to better catch regressions. Signed-off-by: Michael Froh <froh@amazon.com> (cherry picked from commit 2ef265d) Signed-off-by: Louis Chu <clingzhi@amazon.com>
Run the Cypress integration tests as a GitHub action on every build, to better catch regressions. Signed-off-by: Michael Froh <froh@amazon.com> (cherry picked from commit 2ef265d)
Run the Cypress integration tests as a GitHub action on every build, to better catch regressions. Signed-off-by: Michael Froh <froh@amazon.com> (cherry picked from commit 2ef265d)
Run the Cypress integration tests as a GitHub action on every build, to better catch regressions. Signed-off-by: Michael Froh <froh@amazon.com> (cherry picked from commit 2ef265d)
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.8 2.8
# Navigate to the new working tree
pushd ../.worktrees/backport-2.8
# Create a new branch
git switch --create backport-143-to-2.8
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 2ef265d54536089c9749bea42e499fafc5a03804
# Push it to GitHub
git push --set-upstream origin backport-143-to-2.8
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.8 Then, create a pull request where the |
Run the Cypress integration tests as a GitHub action on every build, to better catch regressions. Signed-off-by: Michael Froh <froh@amazon.com> (cherry picked from commit 2ef265d)
Run the Cypress integration tests as a GitHub action on every build, to better catch regressions. Signed-off-by: Michael Froh <froh@amazon.com> (cherry picked from commit 2ef265d)
Run the Cypress integration tests as a GitHub action on every build, to better catch regressions.
Signed-off-by: Michael Froh froh@amazon.com
Description
Run the Cypress integration tests as a GitHub action on every build, to better catch regressions.
Issues Resolved
#119 - Add integration test to git actions
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.