-
Notifications
You must be signed in to change notification settings - Fork 277
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
Unifying test arguments and test workflows #503
Unifying test arguments and test workflows #503
Conversation
Signed-off-by: Sarat Vemulapalli <[email protected]>
Signed-off-by: Sarat Vemulapalli <[email protected]>
Signed-off-by: Sarat Vemulapalli <[email protected]>
Signed-off-by: Sarat Vemulapalli <[email protected]>
Signed-off-by: Sarat Vemulapalli <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #503 +/- ##
==========================================
- Coverage 69.31% 68.45% -0.86%
==========================================
Files 58 59 +1
Lines 1509 1525 +16
==========================================
- Hits 1046 1044 -2
- Misses 463 481 +18
Continue to review full report at Codecov.
|
Signed-off-by: Sarat Vemulapalli <[email protected]>
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.
Some nits, but feel free to defer to another PR, there's enough here.
By making bundle-workflow/src/run_integ_test.py
and friends runnable it becomes rather difficult to test them (hence lack of tests for them today). You could refactor them into classes such as IntegTestSuiteRunner(TestSuite)
, sinking any common args logic into TestSuite
and moving the runners into the test suite subfolders as well, and then calling .run
. Then test.sh
wouldn't need to do the switching of what test suite to run in bash and become a dumb caller for run.sh
like the other runners.
export AWS_ROLE_ARN=arn:aws:iam::<AWS_JENKINS_ACCOUNT>:role/opensearch-test | ||
export AWS_ROLE_SESSION_NAME=dummy-session | ||
|
||
Next, configure temporary credentials in environment w/ |
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.
Quote only the shell commands, this line should not be between ```.
@@ -34,6 +34,11 @@ pipeline { | |||
name: 'test_run_id', | |||
trim: true | |||
), | |||
string( | |||
defaultValue: '', | |||
name: 'test_suite_type', |
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.
Nit, test_suite_type
-> test_suite
, I think it's equally clear but shorter.
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.
Sure, I like it. I have a follow up PR, will clean it up there.
| test_suite_type | Run a specific test suite. [integ-test, bwc-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.
test_suite
Yeah absolutely, I didnt want to do major restructuring. Will take care of this in a follow up PR. |
args = TestArgs() | ||
with TemporaryDirectory(keep=args.keep) as work_dir: | ||
logging.info("Switching to temporary work_dir: " + work_dir) | ||
os.chdir(work_dir) |
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.
Can use with WorkingDirectory(work_dir) as cur_dir
here
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.
Sure will take care of this in a quick follow up PR.
Description
test.sh
.Issues Resolved
Closes #393 #492
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.