-
Notifications
You must be signed in to change notification settings - Fork 304
[Tests][BWC] add BWC tests to Jenkins #1795
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1795 +/- ##
============================================
+ Coverage 94.49% 94.52% +0.03%
- Complexity 18 19 +1
============================================
Files 174 176 +2
Lines 3612 3614 +2
Branches 27 27
============================================
+ Hits 3413 3416 +3
+ Misses 195 194 -1
Partials 4 4
Continue to review full report at Codecov.
|
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 you please add tests for the new jobs? Thank you!
Refer this
@abhinavGupta16, could you provide a reference or help with how to handle the dockerAgent variable that is used for the agent. I keep getting something on the lines:
I created a binded variable and that doesn't work and tried to return a function. It would appear there is an open issue here: jenkinsci/JenkinsPipelineUnit#507 that actually seems the reason why I'm not able to do this. |
I don't think we can override the variables declared locally in |
Yes I am referring the lib tester for detect test docker image like:
but it still fails here
because |
Ah! I see. I believe we should make |
Within the test? |
In the job |
Will that create conflicts for every pipeline that uses a variable |
It is still being used as a global variable in the job. dockerAgent is declared locally in a stage and within script block. It is then being used in docker block of a different stage. Unfortunately, jenkins allows this, but we shouldn't share local variables between stages |
For OpenSearch and OpenSearch Dashboards. Also fix a bug with the test config showing incorrectly. Issue resolved: opensearch-project#705 Signed-off-by: Kawika Avilla <[email protected]>
Signed-off-by: Kawika Avilla <[email protected]>
Signed-off-by: Kawika Avilla <[email protected]>
7768682
to
4f9eccc
Compare
Signed-off-by: Kawika Avilla <[email protected]>
88b0689
to
36e7cad
Compare
Signed-off-by: Kawika Avilla <[email protected]>
} | ||
stages { | ||
stage('verify-parameters') { | ||
agent { |
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.
Agent can't be none here due to fileExists
Error message from Jenkins : Required context class hudson.FilePath is missing Perhaps you forgot to surround the code with a step that provides this, such as: node
@abhinavGupta16, was able to get the tests added. Also got it successfully running in Jenkins as well: Results:
|
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.
Thanks for adding the tests.
Signed-off-by: Kawika Avilla <[email protected]>
Description
For OpenSearch and OpenSearch Dashboards. Also fix a bug with the test config
showing incorrectly.
Signed-off-by: Kawika Avilla [email protected]
Issues Resolved
#705
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.