Skip to content

Fix CI script inclusion of release branches (v2) - #10515

Closed
findepi wants to merge 1 commit into
apache:mainfrom
findepi:findepi/fix-ci-script-inclusion-of-release-branches-16699f
Closed

findepi wants to merge 1 commit into
apache:mainfrom
findepi:findepi/fix-ci-script-inclusion-of-release-branches-16699f

Conversation

@findepi

@findepi findepi commented Jun 17, 2024 •

Copy link
Copy Markdown
Member

The CI scripts are meant to run on release maintenance branches such as 1.5.x. They were run for releases up to 1.0 because of the 0.* pattern. This commit fixes this by replacing branch allow-list with a deny-list for triggering the builds.

Alternative to #10514

@findepi

findepi commented Jun 17, 2024

Copy link
Copy Markdown
Member Author

Once this is merged, the changes need to be backported to existing active 1.x.x branches.

@findepi

findepi commented Jun 27, 2024

Copy link
Copy Markdown
Member Author

do we want to run CI on maintenance branches such as 1.5.x?

@Fokko

Fokko commented Jun 28, 2024

Copy link
Copy Markdown
Contributor

do we want to run CI on maintenance branches such as 1.5.x?

Yes, that makes sense. I think I have a preference for #10514 because it is easier to reason about, and more future-proof (in case we add a new branch).

@findepi

findepi commented Jun 28, 2024

Copy link
Copy Markdown
Member Author

My personal preference is with this one. in #10514 I didn't like the fact that i foresaw 2.x release branches and i didn't foresee 3.x release branches (or 4.x, ...). And i wanted to foresee 2.x release branches because they are imminent.
But more important to fix the problem and both PRs do this and any solution still need to be backported to release branches.

I undrafted #10514, please decide.

@Fokko

Fokko commented Jun 28, 2024

Copy link
Copy Markdown
Contributor

@findepi I'm fine either way. I looked at the branches, and it is very clean at the moment (just the ones that you marked here). @nastra do you have a preference?

@findepi
findepi marked this pull request as draft June 28, 2024 07:58
@nastra

nastra commented Jun 28, 2024

Copy link
Copy Markdown
Contributor

I'm personally also in favor of #10514 as it's easy to understand and should have enough future-proofness

@findepi

findepi commented Jun 28, 2024

Copy link
Copy Markdown
Member Author

thank you @nastra for your feedback

i actually think we can do even simpler: remove any branch patterns.
it won't make the ci run on docs or gh-pages branches -- we don't have the workflow files there at all, so they won't run anyway.

the only case where branch patterns matter is when someone creates a new branch off master.
this obviously happens when creating new maintenance branch for a release. from this perspective, we don't need any patters. This obviously happens also when dependabot creates a branch (and we should exclude it as in this PR). Are there any other situations like this? If no, we can have just this branches-ignore: 'dependabot/**'

The CI scripts are meant to run on release maintenance branches such as
1.5.x. They were run for releases up to 1.0 because of the `0.*`
pattern. This commit fixes this by replacing branch allow-list with a
deny-list for triggering the builds.
@findepi
findepi force-pushed the findepi/fix-ci-script-inclusion-of-release-branches-16699f branch from c878fd5 to 4c67cae Compare June 28, 2024 10:11
@findepi

findepi commented Jun 28, 2024

Copy link
Copy Markdown
Member Author

changed the PR with the above in mind. it's now simpler.
but will also undraft #10514.

also sent #10578 to fix current 1.5.x branch

@findepi

findepi commented Jul 16, 2024

Copy link
Copy Markdown
Member Author

#10514 merged, so closing this one

@findepi findepi closed this Jul 16, 2024
@findepi
findepi deleted the findepi/fix-ci-script-inclusion-of-release-branches-16699f branch July 16, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants