-
Notifications
You must be signed in to change notification settings - Fork 897
feat: add release channel tag to image #17287
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
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e0548a0
feat: add release channel tag to image
Zoupers e8a6713
Merge branch 'coder:main' into main
Zoupers b2af545
Merge branch 'coder:main' into main
Zoupers d00185d
Merge branch 'main' into main
Zoupers 1ca50d0
Update scripts/image_tag.sh
Zoupers aeaf1ba
Update .github/workflows/release.yaml
Zoupers c30dda6
update according to suggestions
Zoupers b779f83
left something...
Zoupers cb44735
left something...
Zoupers 6c705bf
Update scripts/image_tag.sh
Zoupers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stirby This will break when you do a backport to an older version right? I thought I'd ping you since you know more about the channels than I do.
e.g. if the current
stable
tag isv2.2.0
and you createv2.1.1
as "stable" then it will overwritestable
with an older versionThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is the case then it severely complicates things and we'll need to do something like we do with the
git tag
semver stuff above (but we can't just copy and paste that otherwisestable
won't work)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked the release history, and found there does exists this situation. For example, v2.14.4 is released after v2.15.3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, not sure how we even go about fixing these. When we do something like the
git tag
thing above, it'd need to filter by the current channel (but that metadata isn't stored in Git AFAIK, only in github releases)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be better to have tag like
v2.14
and leavestable
to the lateststable
version ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even if we did that there's still not an easy way to determine if there is a "higher" stable version. When releasing
v2.14.4
, we would want it to detectv2.15.3
as a "higher" stable version. But if there are only mainline versions higher than the current version, we'd still want to update thestable
tag.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about introduce a new parameter to manage the stable and mainline tag in release.yml?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or we can introduce a version file in the repo which tells if the version is stable. Then we can check the latest stable version.
It should be easy to manage, we just need to add version to it while we are running a stable release.
But the branches we need to commit to seems not that easy to determine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also think we have another problem when we promote
mainline
tostable
since we don't do anything in github/git other than changing the release notes I imagine.@stirby
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can verify the issues that @deansheather mentioned make it difficult to accept the current implementation. This is certainly something we want to fix but don't have the resources right now.
Down the road we can do our stable releases and promotion more intelligently to support this, but our workflow can't handle this change currently.