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
Collaborator

@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.

build.gradle Outdated Show resolved Hide resolved
vars/publishIntegTestResults.groovy Show resolved Hide resolved
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
Copy link
Collaborator 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