Repository navigation
Description
As documented in Release checklist, we need to update the oras version to the upcoming release version before voting as oras maintains a linear commit history. However, there is a risk that we might need to revert the version update commit if the vote gets rejected.
Success scenario:
gitGraph
commit tag: "v1.0.0"
commit
commit id: "bump: update to v1.1.0-rc.1" tag: "v1.1.0-rc.1" type: HIGHLIGHT
branch release-1.1
checkout main
commit
commit id: "fix: fix a bug"
commit
checkout release-1.1
cherry-pick id: "fix: fix a bug"
commit id: "bump: update to v1.1.0-rc.2" tag: "v1.1.0-rc.2" type: HIGHLIGHT
checkout main
cherry-pick id: "bump: update to v1.1.0-rc.2"
checkout release-1.1
commit id: "bump: update to v1.1.0" tag: "v1.1.0" type: HIGHLIGHT
checkout main
cherry-pick id: "bump: update to v1.1.0"
commit
Bad scenario where releasing v1.1.0-rc.1 is rejected once:
gitGraph
commit tag: "v1.0.0"
commit
commit id: "bump: update to v1.1.0-rc.1"
commit
commit id: "revert: bump: update to v1.1.0-rc.1" type: REVERSE
commit
commit id: "fix: address vote comments"
commit id: "bump: update to v1.1.0-rc.1 again" tag: "v1.1.0-rc.1" type: HIGHLIGHT
commit
As inspired by opencontainers/image-spec, #1002 and #1010, the above risk can be mitigated by cutting from a PR branch (and then merge back) where the PR approval is treated as a vote although it makes oras commit history non-linear.
Success scenario:
%%{init: { 'theme': 'base' } }%%
gitGraph
commit tag: "v1.0.0"
commit
branch fork/release-vote
commit id: "bump: update to v1.1.0-rc.1" tag: "v1.1.0-rc.1" type: HIGHLIGHT
branch release-1.1
checkout main
merge fork/release-vote
commit
commit id: "fix: fix a bug"
commit
checkout release-1.1
cherry-pick id: "fix: fix a bug"
branch fork/release-vote-2
commit id: "bump: update to v1.1.0-rc.2" tag: "v1.1.0-rc.2" type: HIGHLIGHT
checkout release-1.1
merge fork/release-vote-2
checkout main
cherry-pick id: "bump: update to v1.1.0-rc.2"
checkout release-1.1
branch fork/release-vote-3
commit id: "bump: update to v1.1.0" tag: "v1.1.0" type: HIGHLIGHT
checkout release-1.1
merge fork/release-vote-3
checkout main
cherry-pick id: "bump: update to v1.1.0"
commit
Bad scenario where releasing v1.1.0-rc.1 is rejected once:
%%{init: { 'theme': 'base' } }%%
gitGraph
commit tag: "v1.0.0"
commit
branch fork/release-vote
commit id: "bump: update to v1.1.0-rc.1"
checkout main
commit
commit
commit id: "fix: address vote comments"
branch fork/release-vote-2
commit id: "bump: update to v1.1.0-rc.1 again" tag: "v1.1.0-rc.1" type: HIGHLIGHT
checkout main
merge fork/release-vote-2
commit
@qweeah @TerryHowe @sajayantony @SteveLasker I think we can reset releasing v1.1.0-rc.1 and start experimenting with the new approach. If it works perfect, we can update the release checklist accordingly.
Activity
shizhMSFT commentedon Jul 9, 2023
Since the commit history of the new approach is non-linear but GitHub shows the non-linear commits in a linear way, PR reviewers are required to be careful about the following situation where
feat: Ais before thev1.1.0-rc.1(in terms of commit time) but not included inv1.1.0-rc.1(as they are in different branches).%%{init: { 'theme': 'base' } }%% gitGraph commit tag: "v1.0.0" commit branch fork/release-vote checkout main commit id: "feat: A" checkout fork/release-vote commit id: "bump: update to v1.1.0-rc.1" tag: "v1.1.0-rc.1" type: HIGHLIGHT checkout main commit id: "feat: B" merge fork/release-vote checkout main commitshizhMSFT commentedon Jul 9, 2023
/cc @FeynmanZhou @yizha1 as
notationmay also adopt this approach.qweeah commentedon Jul 10, 2023
How can we deal with this situation? If we cannot pick
feat: Aandfeat: Bout, should we disallow code merge into main branch until cutting from a PR branch is done?Update: This is not an issue. I realized that the
v1.1.0-rc.1doesn't includefeat: Aandfeat: B, so voting for branch cutting won't block merging new codes.shizhMSFT commentedon Jul 10, 2023
As alternative solution to cherry picking, we can merge
mainin the release branch if all new commits should be included, and then merge back.Cherry pick version:
%%{init: { 'theme': 'base' } }%% gitGraph commit tag: "v1.0.0" commit branch fork/release-vote commit id: "bump: update to v1.1.0-rc.1" tag: "v1.1.0-rc.1" type: HIGHLIGHT branch release-1.1 checkout main merge fork/release-vote commit id: "fix: fix a bug" checkout release-1.1 cherry-pick id: "fix: fix a bug" branch fork/release-vote-2 commit id: "bump: update to v1.1.0-rc.2" tag: "v1.1.0-rc.2" type: HIGHLIGHT checkout release-1.1 merge fork/release-vote-2 checkout main cherry-pick id: "bump: update to v1.1.0-rc.2" checkout release-1.1 branch fork/release-vote-3 commit id: "bump: update to v1.1.0" tag: "v1.1.0" type: HIGHLIGHT checkout release-1.1 merge fork/release-vote-3 checkout main cherry-pick id: "bump: update to v1.1.0" commitMerge version
%%{init: { 'theme': 'base' } }%% gitGraph commit tag: "v1.0.0" commit branch fork/release-vote commit id: "bump: update to v1.1.0-rc.1" tag: "v1.1.0-rc.1" type: HIGHLIGHT branch release-1.1 checkout main merge fork/release-vote commit id: "fix: fix a bug" checkout release-1.1 merge main branch fork/release-vote-2 commit id: "bump: update to v1.1.0-rc.2" tag: "v1.1.0-rc.2" type: HIGHLIGHT checkout release-1.1 merge fork/release-vote-2 checkout main merge release-1.1 checkout release-1.1 branch fork/release-vote-3 commit id: "bump: update to v1.1.0" tag: "v1.1.0" type: HIGHLIGHT checkout release-1.1 merge fork/release-vote-3 checkout main merge release-1.1 commitsajayantony commentedon Jul 12, 2023
Do we need to update - https://github.com/oras-project/oras-www/blob/main/docs/community/developer_guide.mdx#L79
Honestly I haven't found non-linear merge an issue as long as the person knows that the release commit always must merged and not squashed.
Another recommendation would be to include the diff from the last tag (major or minor)
v1.0.0...v1.1.0-rc.1
qweeah commentedon Jul 13, 2023
@sajayantony I am on it oras-project/oras-www#213
github-actions commentedon Sep 12, 2023
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
github-actions commentedon Nov 12, 2023
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
TerryHowe commentedon Nov 13, 2023
Do we need this?
qweeah commentedon Nov 14, 2023
This is already applied and documented in here