Skip to content

Adds workflow that fails CI check on purpose if a pull request target was deprecated branch#1127

Closed
DarshitChanpura wants to merge 1 commit intoopensearch-project:mainfrom
DarshitChanpura:protect-deprecated-branches
Closed

Adds workflow that fails CI check on purpose if a pull request target was deprecated branch#1127
DarshitChanpura wants to merge 1 commit intoopensearch-project:mainfrom
DarshitChanpura:protect-deprecated-branches

Conversation

@DarshitChanpura
Copy link
Member

@DarshitChanpura DarshitChanpura commented Oct 5, 2022

Description

This change adds a workflow that is built to fail on trigger. This workflow will only be triggered when a pull-request is opened against a deprecated branch mentioned in the workflow yaml, to prevent changes from going in.

Category

Maintenance

Why these changes are required?

This change will serve as a reminder for Maintainers to not merge PRs into deprecated branches accidentally.

Testing

Manual testing

When main was part of deprecated-branches.yml When main wasn't part of deprecated-branches.yml
CI check triggered CI check not triggered

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

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.

@DarshitChanpura DarshitChanpura added backport 1.3 backport 2.0 backport to 2.0 branch backport 2.x backport to 2.x branch backport 1.x backport to 1.x branch backport 1.2 backport to 1.2 branch backport 2.1 backport 2.1 branch backport 1.0 backport 1.1 backport 2.2 backport to 2.2 branch backport 2.3 backport to 2.3 branch labels Oct 5, 2022
@DarshitChanpura DarshitChanpura requested a review from a team October 5, 2022 19:09
@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2022

Codecov Report

Merging #1127 (403dd75) into main (729cd67) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1127   +/-   ##
=======================================
  Coverage   74.43%   74.43%           
=======================================
  Files          86       86           
  Lines        1874     1874           
  Branches      244      244           
=======================================
  Hits         1395     1395           
  Misses        424      424           
  Partials       55       55           

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

…ated branch

Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
@DarshitChanpura DarshitChanpura force-pushed the protect-deprecated-branches branch from 69fea2d to 403dd75 Compare October 6, 2022 15:13
Copy link
Member

@cliu123 cliu123 left a comment

Choose a reason for hiding this comment

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

I don’t think we should fail CI on those branches on purpose. The branches are not abandoned. CI should be healthy.

@peternied
Copy link
Member

The branches are not abandoned.

Singling out the 1.0 branch, we have not backporting any security or bug fixes and there are no plans to release updates as the OpenSearch distribution. If this isn't abandoned, what level of support are we maintaining for these branches?

@davidlago
Copy link

Closing after clarifying the back-porting policy here

@davidlago davidlago closed this Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.x backport to 1.x branch backport 1.0 backport 1.1 backport 1.2 backport to 1.2 branch backport 1.3 backport 2.x backport to 2.x branch backport 2.0 backport to 2.0 branch backport 2.1 backport 2.1 branch backport 2.2 backport to 2.2 branch backport 2.3 backport to 2.3 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants