-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add sample integ tests for latest systemd unit file #17410
base: main
Are you sure you want to change the base?
Add sample integ tests for latest systemd unit file #17410
Conversation
@peterzhuamazon Here are the sample tests to verify the behavior |
❌ Gradle check result for beaa600: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
@RajatGupta02 I am not sure how exactly this test is supposed to be running, should we run it in Docker with RPM distribution installed? Thank you. |
It will be onboard to opensearch-build repo and run within the framework there. |
Hi @RajatGupta02 @kumargu I made a change to this PR, specially adding I also have changes to build repo which we can build the new deb/rpm with service file and env file from your previous PR (#17107): There might be some changes required for this line, as our docker container is assuming to have 4 CPUs, I wonder if you can use workers by default to avoid overflowing the system.
cc: @getsaurabh02 The result log:
|
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
efccfcc
to
4afea87
Compare
❌ Gradle check result for 4afea87: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
@reta Could you please review this PR? We were able to run these tests on opensearch-build repo (which now pulls the core repo and runs these tests in a separate environment in Jenkins there) |
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
❌ Gradle check result for 928e5db: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
After fixing one of the gradle precommit check that involved
|
*/ | ||
|
||
/* | ||
* Licensed to Elasticsearch under one or more contributor |
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 new file, no need to have Elasticsearch attribution
@@ -0,0 +1,7 @@ | |||
apply plugin: 'opensearch.standalone-rest-test' | |||
|
|||
tasks.register("integTest", Test) { |
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.
AFAIK you probably don't need to run this test as part of Gradle check, right?
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.
Nope, this only needs to be executed as part of the build integTest.
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
this is probably because we moved some scripts to a file and the test is trying access the file? If yes, can we keep the script to the same SystemIT file? |
Description
Added few integ tests for the latest systemd unit file that has to be shipped from version 3.0 onwards.
Supporting References
Related PR: #17107
Check List
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.