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

Branch on snc repo should follow openshift repo branching #853

Open
praveenkumar opened this issue Feb 7, 2024 · 4 comments
Open

Branch on snc repo should follow openshift repo branching #853

praveenkumar opened this issue Feb 7, 2024 · 4 comments

Comments

@praveenkumar
Copy link
Member

praveenkumar commented Feb 7, 2024

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.

  • Right now we push code to master (which is ideally for 4.14) and then cherry-pick it for 4.15 branch which is kind of backward instead we push to the master and then cherry-pick to respective branch and if a branch doesn't need it then just put PR on that branch and no need to cherry-pick.

  • Openshift installer have e2e-crc tests which is failing for quite some time because snc master is capable to create bundle only for 4.14 and installer goes to 4.16-4.17 and it fails.

  • We can create branch early on like 4.16 to do layer testing for engineering candidate also.

  • Also we don't need to create Merge release_4.14 to master  #811 or Merge release_4.13 branch to master #725 to have master update for next released version.

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
Copy link
Contributor

cfergeau commented Feb 7, 2024

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
Copy link
Member Author

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
Copy link
Contributor

cfergeau commented Feb 9, 2024

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
Copy link
Member Author

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

  • Run the CI job against PR (so after changing the default branch, PR would be created against that branch so if author wants to have it for different branch then it can be set accordingly during PR creation. There is no change around CI job run.
  • Create release bundle from internal CI and that is also have option to use the branch info for which we want to use to create the bundle so that is also provided manually. (No change there also)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants