crc-org / snc

Single Node Cluster creation scripts for OpenShift 4.x as used by CodeReady Containers
https://crc.dev
Apache License 2.0
100 stars 49 forks source link

Branch on snc repo should follow openshift repo branching #853

Open praveenkumar opened 4 months ago

praveenkumar commented 4 months ago

Right now we are try to keep our master in sync with whatever is released version of openshift (in current case it is 4.14). Idea is to have same branching as openshift repo so that we can avoid some of issues.

We update our README to have this info so the consumer of snc knows how to create the bundle for specific openshift/microshift release.

cfergeau commented 4 months ago

No strong opinion on the branch naming, as long as one key requirement is met: everyone knows for sure which branch is going to be used next time we release a bundle, and it is the branch which is tested the most, any issues with this branch becomes high priority, crc is tested against this branch, ...

Why not testing 4.16 early, but we also have to be clear that any issue found there is not going to be high priority (eg PRs may take some time to be reviewed).

praveenkumar commented 4 months ago

everyone knows for sure which branch is going to be used next time we release a bundle, and it is the branch which is tested the most, any issues with this branch becomes high priority, crc is tested against this branch, ...

Agree, and our internal job able to take branch name as argument for creating the bundle. we can always set the default branch to something than master/main on github like release-4.14 so that when someone create PR it should by default taken to that branch and then PR owner select different branch as it fits.

Why not testing 4.16 early, but we also have to be clear that any issue found there is not going to be high priority (eg PRs may take some time to be reviewed).

Sure, PR review for master or non release version take some time because that would be not high priority but we can get issue very early on once e2e-crc on installer side fixed.

cfergeau commented 4 months ago

we can always set the default branch to something than master/main on github like release-4.14 so that when someone create PR it should by default taken to that branch

This means something we need to remember to manually update every few months, otherwise we won't be testing the right thing.

praveenkumar commented 4 months ago

we can always set the default branch to something than master/main on github like release-4.14 so that when someone create PR it should by default taken to that branch

This means something we need to remember to manually update every few months, otherwise we won't be testing the right thing.

Currently following way we do the test

So even if we forget to update this default branch, I don't think on PR side and internal CI there is issues or do I miss something here?

Note: I just changed the default branch to release-4.14 and every change is now goes through master => respective branch. At least want to see if that offer better maintenance without compromising our testing quality.