-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 more identifiers to gradle-check job webhook payload #12938
Conversation
Signed-off-by: Rishabh Singh <[email protected]>
Tagging @peternied for feedback and review. |
Compatibility status:Checks if related components are compatible with change b12cc21 Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/performance-analyzer.git] |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #12938 +/- ##
============================================
- Coverage 71.42% 71.37% -0.05%
- Complexity 59978 60359 +381
============================================
Files 4985 5021 +36
Lines 282275 284067 +1792
Branches 40946 41151 +205
============================================
+ Hits 201603 202748 +1145
- Misses 63999 64541 +542
- Partials 16673 16778 +105 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Peter Nied <[email protected]> Signed-off-by: Rishabh Singh <[email protected]>
❕ Gradle check result for 0be531b: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
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.
Even with the outstanding comments this change would be a good step forward if merged as is, thanks @rishabh6788
Signed-off-by: Rishabh Singh <[email protected]>
Signed-off-by: Rishabh Singh <[email protected]>
❌ Gradle check result for 8f07f5b: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for accf82f: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for 8f07f5b: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for bf78f73: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for 46f32ae: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for 46f32ae: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
@peternied The gradle-check just won't pass. :( |
❌ Gradle check result for 46f32ae: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
@rishabh6788 Please follow these steps for each build failure to root cause the issue(s)
|
❌ Gradle check result for 46f32ae: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
@rishabh6788 please investigate the failures so this PR can be merged |
Rebased the main branch and it is resolved. |
@andrross Can you please provide your feedback and approve if it looks good to you? |
@rishabh6788 passing check is not enough we need to be sure all these failures are investigated when they occur since they are so many failures - even during your attempt to collect more information about these failures the irony is not lost on me.
Its part of our pull request requirements checklist - I do insist that this requirement is followed before this change is merged. |
This has similar test failures as https://build.ci.opensearch.org/job/gradle-check/36125/testReport/ |
Verified all the failing gradle-checks and confirm that the test failures are same as that reported in https://build.ci.opensearch.org/job/gradle-check/36125/testReport/ |
@peternied @andrross Are we good to merge this PR? |
* Add more identifiers to gradle-check job webhook payload Signed-off-by: Rishabh Singh <[email protected]> * Update .github/workflows/gradle-check.yml Co-authored-by: Peter Nied <[email protected]> Signed-off-by: Rishabh Singh <[email protected]> * Add more identifiers to gradle-check job webhook payload Signed-off-by: Rishabh Singh <[email protected]> --------- Signed-off-by: Rishabh Singh <[email protected]> Signed-off-by: Rishabh Singh <[email protected]> Co-authored-by: Peter Nied <[email protected]> (cherry picked from commit a6bbc09) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
)" This reverts commit a6bbc09. Signed-off-by: dblock <[email protected]>
)" (#13027) This reverts commit a6bbc09. Signed-off-by: dblock <[email protected]>
…project#12938) * Add more identifiers to gradle-check job webhook payload Signed-off-by: Rishabh Singh <[email protected]> * Update .github/workflows/gradle-check.yml Co-authored-by: Peter Nied <[email protected]> Signed-off-by: Rishabh Singh <[email protected]> * Add more identifiers to gradle-check job webhook payload Signed-off-by: Rishabh Singh <[email protected]> --------- Signed-off-by: Rishabh Singh <[email protected]> Signed-off-by: Rishabh Singh <[email protected]> Co-authored-by: Peter Nied <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
…nsearch-project#12938)" (opensearch-project#13027) This reverts commit a6bbc09. Signed-off-by: dblock <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
…project#12938) * Add more identifiers to gradle-check job webhook payload Signed-off-by: Rishabh Singh <[email protected]> * Update .github/workflows/gradle-check.yml Co-authored-by: Peter Nied <[email protected]> Signed-off-by: Rishabh Singh <[email protected]> * Add more identifiers to gradle-check job webhook payload Signed-off-by: Rishabh Singh <[email protected]> --------- Signed-off-by: Rishabh Singh <[email protected]> Signed-off-by: Rishabh Singh <[email protected]> Co-authored-by: Peter Nied <[email protected]>
…nsearch-project#12938)" (opensearch-project#13027) This reverts commit a6bbc09. Signed-off-by: dblock <[email protected]>
Description
We are adding an additional post action to
gradle-check
job to fetch the failed tests for each run and index those results into an OpenSearch cluster.Based on the feedback from @peternied here, this PR adds additional env variables to add metadata related to branch and PR contributor details.
As per our current implementation following fields get indexed for each gradle-check run when there are test failures:
For all the gradle-check test failure that happen as part of post merge action, i.e., when a PR is merged, the pr_number field passed from the existing workflow is
Null
and same is reflected in the indexed document.It would be really helpful if we can add more metadata around merged commits that help operator easily identify person associated with the commit and pull request numbers.
The new env variables introduced are:
event_name
: The eventpull_request_target
orpush
that triggered thegradle-check
workflow.branch_name
: This will be the base repo branch in case of pull_request action. Forpush
this will be the branch to which the commit was merged.pr_owner
: The github id of the user who created the PR. Will beNull
in case ofpush
action.pr_or_commit_description
: The commit message that is displayed upon merge, this contains important details around pr contributor and associated pull_requests. This will be PR body description forpull_request
action.Related Issues
opensearch-project/opensearch-build#4469
Check List
[ ] New functionality includes testing.[ ] All tests pass[ ] New functionality has been documented.[ ] New functionality has javadoc added[ ] Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)[ ] Commit changes are listed out in CHANGELOG.md file (See: Changelog)[ ] Public documentation issue/PR createdBy 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.