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

Enhance changelog workflow to check for missing labels #13167

Merged

Conversation

kotwanikunal
Copy link
Member

Description

  • Hardens the check for CHANGELOG.md file and ensures a backport label exists if the entry is BwC

Related Issues

N/A

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)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

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.

Copy link
Contributor

github-actions bot commented Apr 11, 2024

Compatibility status:

Checks if related components are compatible with change 1212672

Incompatible components

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/performance-analyzer.git]

Copy link
Contributor

✅ Gradle check result for d05225e: SUCCESS

Copy link

codecov bot commented Apr 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.47%. Comparing base (b15cb0c) to head (1212672).
Report is 167 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #13167      +/-   ##
============================================
+ Coverage     71.42%   71.47%   +0.05%     
- Complexity    59978    60638     +660     
============================================
  Files          4985     5039      +54     
  Lines        282275   285338    +3063     
  Branches      40946    41327     +381     
============================================
+ Hits         201603   203940    +2337     
- Misses        63999    64557     +558     
- Partials      16673    16841     +168     

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

@peternied peternied requested review from reta and andrross April 11, 2024 20:23
@peternied
Copy link
Member

@kotwanikunal Can you link to example workflows of this change that show the new error states in your fork?

@dblock
Copy link
Member

dblock commented Apr 12, 2024

This workflow is failing in this PR, that's not expected, is it? It should have re-run it when skip-changelog was added and skipped it?

@kotwanikunal kotwanikunal force-pushed the changelog-verifier-updates branch from d05225e to 6b18aa1 Compare April 12, 2024 19:20
@kotwanikunal
Copy link
Member Author

This workflow is failing in this PR, that's not expected, is it? It should have re-run it when skip-changelog was added and skipped it?

There was a scenario that was missing. Updated the workflow

@kotwanikunal Can you link to example workflows of this change that show the new error states in your fork?

Sure.

Without backport label- kotwanikunal#164
With backport label - kotwanikunal#165
With a breaking change - kotwanikunal#166

Copy link
Contributor

❌ Gradle check result for 6b18aa1: 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
Copy link
Member

Without backport label- kotwanikunal#164
With backport label - kotwanikunal#165
With a breaking change - kotwanikunal#166

None of these failed, what should the expected behavior be?

Copy link
Contributor

❌ Gradle check result for 6b18aa1: ABORTED

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?

Copy link
Contributor

❌ Gradle check result for 6b18aa1: ABORTED

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?

@kotwanikunal
Copy link
Member Author

Without backport label- kotwanikunal#164
With backport label - kotwanikunal#165
With a breaking change - kotwanikunal#166

None of these failed, what should the expected behavior be?

@peternied Looks like a GH bug. Recreated the PR without any changes: kotwanikunal#167

Copy link
Contributor

❌ Gradle check result for 6b18aa1: 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?

@kotwanikunal
Copy link
Member Author

❌ Gradle check result for 6b18aa1: 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?

Looks like I need to rebase. Complaining of a version mismatch

@kotwanikunal kotwanikunal force-pushed the changelog-verifier-updates branch from 6b18aa1 to 1212672 Compare April 15, 2024 19:01
Copy link
Contributor

❌ Gradle check result for 1212672: 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
Copy link
Member

@kotwanikunal What is the root cause on the gradle check failures?

@kotwanikunal
Copy link
Member Author

❌ Gradle check result for 1212672: 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?

#10006

@kotwanikunal
Copy link
Member Author

@kotwanikunal What is the root cause on the gradle check failures?

I was missing a rebase previous - a new change got merged to 2.x which got compatible with 3.0.
Listed for the other one,

Copy link
Contributor

✅ Gradle check result for 1212672: SUCCESS

@kotwanikunal kotwanikunal merged commit f37ad8a into opensearch-project:main Apr 15, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants