Skip to content
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

Upload test results based on actual jenkins build number #2500

Merged
merged 5 commits into from
Aug 23, 2022

Conversation

gaiksaya
Copy link
Member

@gaiksaya gaiksaya commented Aug 23, 2022

Signed-off-by: Sayali Gaikawad gaiksaya@amazon.com

Description

Looks like #2488 only fixed the message but not the actual path. This PR fixes the same for all tests.

The test_run_id was hardcoded to 1 for integ-test and bwc-test which now is changed to build_number of the job.
This will allow us to run any number of tests for same build_id without overwriting the results.
In case of performance tests since it is not integrated with test_recorder yet, the build_number is added as a part of the upload path.

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

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.

Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
@gaiksaya gaiksaya requested a review from a team as a code owner August 23, 2022 18:26
@prudhvigodithi prudhvigodithi self-requested a review August 23, 2022 19:54
@prudhvigodithi
Copy link
Member

The --test-run-id can have the BUILD_NUMBER for the bwc and integ tests. So now the prefix path would be integ-test/1.3.5/5960/linux/arm64/tar/test-results/<BUILD_NUMBER>

@codecov-commenter
Copy link

codecov-commenter commented Aug 23, 2022

Codecov Report

Merging #2500 (cb19c80) into main (b6de7c7) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #2500   +/-   ##
=========================================
  Coverage     94.47%   94.47%           
  Complexity       27       27           
=========================================
  Files           218      218           
  Lines          4449     4449           
  Branches         29       29           
=========================================
  Hits           4203     4203           
  Misses          240      240           
  Partials          6        6           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
@gaiksaya
Copy link
Member Author

Hi @prudhvigodithi please review. I made the changes. Thanks!

@gaiksaya gaiksaya mentioned this pull request Aug 23, 2022
@@ -98,7 +98,7 @@ pipeline {
uploadTestResults(
buildManifestFileName: BUILD_MANIFEST,
jobName: JOB_NAME
)
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space?

buildNumber: BUILD_ID
)
jobName: JOB_NAME
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra Space?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed it. Thanks!

Copy link
Member

@peterzhuamazon peterzhuamazon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some spacing issues I am good with this change.
Thanks.

Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
@gaiksaya gaiksaya merged commit 035e8cc into opensearch-project:main Aug 23, 2022
@gaiksaya gaiksaya deleted the fix-results-path branch August 23, 2022 23:02
@gaiksaya gaiksaya self-assigned this Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants