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

Add publishDistributionBuildResults and publishIntegTestResults to publish the OpenSearch build and integration test results #459

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

prudhvigodithi
Copy link
Member

@prudhvigodithi prudhvigodithi commented Jul 20, 2024

Description

Add publishDistributionBuildResults and publishIntegTestResults to publish the OpenSearch build and integration test results

Sample Usage

publishIntegTestResults(
    version: env.version,
    distributionBuildNumber: env.buildId,
    distributionBuildUrl: "https://build.ci.opensearch.org/blue/organizations/jenkins/distribution-build-opensearch/detail/distribution-build-opensearch/${env.buildId}/pipeline",
    rc: rc,
    rcNumber: env.RC_NUMBER,
    platform: env.platform,
    architecture: env.architecture,
    distribution: env.distribution,
    testReportManifestYml: "test-report.yml"
)
publishDistributionBuildResults(
    failureMessages: buildMessage(search: 'Error building'),
    passMessages: buildMessage(search: 'Successfully built'),
    inputManifestPath: "manifests/$INPUT_MANIFEST",
    rc: rc,
    rcNumber: env.RC_NUMBER,
    componentCategory: "OpenSearch"
)

Issues Resolved

Part of opensearch-project/opensearch-metrics#56 and opensearch-project/opensearch-metrics#51

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: Prudhvi Godithi <[email protected]>
Copy link

codecov bot commented Jul 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.26%. Comparing base (96cf7bf) to head (4aff3de).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #459   +/-   ##
=========================================
  Coverage     84.26%   84.26%           
  Complexity       80       80           
=========================================
  Files           106      106           
  Lines           521      521           
  Branches         61       61           
=========================================
  Hits            439      439           
  Misses           26       26           
  Partials         56       56           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@prudhvigodithi prudhvigodithi force-pushed the main branch 8 times, most recently from 5fe75cf to 7d7e838 Compare July 22, 2024 16:12
build.gradle Outdated Show resolved Hide resolved
vars/publishIntegTestResults.groovy Show resolved Hide resolved
@prudhvigodithi prudhvigodithi requested a review from gaiksaya July 22, 2024 18:49
Copy link
Member

@gaiksaya gaiksaya left a comment

Choose a reason for hiding this comment

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

Are we okay with lib naming? OR should we be more specific where we are publishing the results to? (metrics cluster in this case)

@prudhvigodithi prudhvigodithi force-pushed the main branch 7 times, most recently from 02be0f8 to fb876b7 Compare July 22, 2024 19:53
@prudhvigodithi
Copy link
Member Author

Are we okay with lib naming? OR should we be more specific where we are publishing the results to? (metrics cluster in this case)

The README has the details Sayali, else the library name is becoming very long.

Signed-off-by: Prudhvi Godithi <[email protected]>
@prudhvigodithi prudhvigodithi merged commit cd984fa into opensearch-project:main Jul 22, 2024
9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 22, 2024
…o publish the OpenSearch build and integration test results (#459)

Signed-off-by: Prudhvi Godithi <[email protected]>
(cherry picked from commit cd984fa)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants