Add sample integ tests for latest systemd unit file#17410
Add sample integ tests for latest systemd unit file#17410peterzhuamazon merged 30 commits intoopensearch-project:mainfrom
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: |
|
❌ Gradle check result for 1ff7d59: 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? |
|
❌ Gradle check result for 1ff7d59: 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? |
Some unrelated tests are failing. Can we re-run this? |
|
❌ Gradle check result for 1ff7d59: 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? |
|
❌ Gradle check result for 1ff7d59: 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? |
|
❌ Gradle check result for 1ff7d59: 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? |
|
❌ Gradle check result for 1ff7d59: 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 The tests pass locally, and gradle testing convention precommit checks pass now, also I do not see any test failures with Gradle Check (Jenkins) workflow so I think we can merge this? |
|
❌ Gradle check result for 1ff7d59: 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? |
I don't see any test failures here: https://build.ci.opensearch.org/job/gradle-check/54199/testReport/ |
c66fb4a to
1ff7d59
Compare
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
|
Also passes: |
|
❌ Gradle check result for d3b1c0a: 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? |
console log: Not related to our change this time! |
|
❕ Gradle check result for d3b1c0a: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
…ct#17410) * Add integration tests for systemd Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Fix indentation Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Remove unit file mount Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Use centos image Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Change method name Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Add sample systemd integ tests to verify behavior Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Update su with sudo probably need to have a privileged mode Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> * Additional tests Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Wrap commands with su -c Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Add sudo Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Remove sudo for test process exit Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Minor fixes Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Fixed script string Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Remove redundant code Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Add terminate script Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Modified terminate script Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Add Changelog-3.0 entry Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Fix for gradle precommit workflow Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Fix testing conventions gradle precommit check Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Fix imports Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Only run as part of build integTest, remove gradle check Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Remove bash Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * add sudo for systemctl command Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Remove OpenSearchIntegTest class Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Rename test file Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Add test script Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Extend LuceneTestCase class Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Remove test bash script Signed-off-by: Rajat Gupta <gptrajat@amazon.com> * Modify build.gradle 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 <72070007+RajatGupta02@users.noreply.github.com> Co-authored-by: Rajat Gupta <gptrajat@amazon.com> Co-authored-by: Peter Zhu <zhujiaxi@amazon.com> Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>
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.