-
Notifications
You must be signed in to change notification settings - Fork 36
Conversation
This PR adds CI/CD workflows. CI workflow builds a zip file, installs that on the official odfe docker image, and runs rest test case. CI workflow is triggered via branch pushing. CD workflow builds zip, rpm, deb files and uploads those files to s3. CD workflow is triggered via tag creation. This PR also increases model initialization waiting time as needed on an rest test case as that time can be can be longer on a remote cluster. Testing done: 1. run the scripts on CI/CD workflow on Mac and tested it works. 2. make sure local gradle build time does not increase.
// we wait at most 60 secs | ||
if (duration < 60_000) { | ||
Thread.sleep(2_000); | ||
} else { |
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.
if it is timed out, is it better to fail fast?
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.
yeah, changed to throw exception.
@@ -172,7 +172,22 @@ private void startDetector( | |||
} catch (Exception e) {} | |||
} | |||
Thread.sleep(5_000); |
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 wait can be merged to the wait below now
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.
merged
.github/workflows/CI.yml
Outdated
- name: Run AD Test | ||
run: | | ||
./gradlew ':integTestRunner' --tests "com.amazon.opendistroforelasticsearch.ad.rest.*IT" -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" | ||
./gradlew :integTestRunner --tests "com.amazon.opendistroforelasticsearch.ad.e2e.*IT" -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" |
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 won't run if the first one fails. just wanna confirm if this is what we expect
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.
good point. Merged these 2 lines into one.
Issue #, if available:
#104
Description of changes:
This PR adds CI/CD workflows. CI workflow builds a zip file, installs that on the official ODFE docker image, and runs rest test case. CI workflow is triggered by branch pushing. CD workflow builds zip, rpm, deb files, and uploads those files to s3. CD workflow is triggered by tag creation.
This PR also increases model initialization waiting time as needed on DetectionResultEvalutationIT as it can be long on a remote cluster.
Testing done:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.