You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
what is the current versioning convention for tags? #18
Yes. The idea is that the tags should work like semver. In practice, you should be able to set the action at v1 forever and not worry about it.
The only reason I added the v1.1 tag originally is because it was used to denote that I added new functionality to the action (when I completely rewrote it), but the line between bug fixes, enhancements, and new features (which warrant a minor version bump) can sometimes be subtle or just outright opinion, so I'm sure someone could disagree with the action being at v1.1 instead of roughly v1.3 or so.
For what it's worth, I expected to bump it to v1.2 soon and will try to make it as painless as possible for people to pin their version bounds as tight as they wish.
It's worth nothing that the implementation of github actions itself treats everything after the @ as a "git committish" (or really anything that can be stuck after git checkout), so tags, branch names, hashes, short-hashes, etc., are all fair game should someone really want to pin their action version exactly.
Somewhat related (@cartazio sorry for hijacking this issue), in the top-level README it reads:
A Collection of GitHub actions for interacting with Haskell.
So let's assume we add an other action, e.g. haskell/actions/run-tests, how would we version this? One obvious solution would be to just version them together, which would kind of work as long as both actions don't introduce breaking changes.
But what would we do when say e.g. run-test introduces a breaking change and hence requires a major version bump? The naive implication would be that setup would also continue on v2.* and that users of haskell/actions/setup@v1 would not get any updates anymore.
Or is the idea to have a separate set of tags for each action so that a user would e.g. specify
uses: haskell/actions/run-tests@run-test-v1
?
Or maybe ask @AlexeyRaga if he is open to the idea of widening the audience of the haskell-actions org, so that a user would specify:
We have been thinking about it too, and came to the conclusion that having multiple actions in one repository isn't ideal because of the versioning: bumping a version for one action results in a version bump for all the actions within the repository, and this is very confusing.
Perhaps this is also the reason for GH itself having a repo per action. Even heavily related actions (like upload and download artefacts) are modelled as different repositories by GH. So perhaps a repo per action isn's a bad idea after all.
I went with one repo because it's been pretty rare in my experience that one needs to introduce backwards incompatibility into a github action. It's usually easy enough to preserve existing behavior and extend things with new options. I also didn't want to clutter the haskell org with more repos until I had been able to talk to more people about things. (I had only a few days to get this repo migrated over since the previous one was archived somewhat suddenly)
I also didn't know the haskell-actions org existed, at all, or I probably would've tried to get that opened up first.
As it is, it's possible to split out haskell/actions into separate repos and continue to reference them here so that haskell/actions/setup and haskell/setup-action both worked (or some other solution).
So let's assume we add an other action, e.g. haskell/actions/run-tests, how would we version this? One obvious solution would be to just version them together, which would kind of work as long as both actions don't introduce breaking changes.
But what would we do when say e.g. run-test introduces a breaking change and hence requires a major version bump? The naive implication would be that setup would also continue on v2.* and that users of haskell/actions/setup@v1 would not get any updates anymore.
Yeah that's correct. You can get around this by using branches to make it easier to ensure that v1 could continue to update and only relevant code would change, but it's not the most pleasant. This is the same strategy you need to use if you want to backport changes across versions in a single codebase anyway.
So, I guess the question is. Should this repo be changed to haskell/setup-action, migrated to haskell-actions/setup, or remain as is? And what should happen to the haskell-actions org?
I think that the problem was not backwards compatibility per se. It is more like a cognitive load: because new versions are released regardless on whether the action has changed or not, the version name is now meaningless most of the time.
But I admit that it is kind of a personal feelings, just like some people like monorepos and lock-step versioning and other do not.
So please don't read my comment as "you are doing it wrong", I was just showing that we had exactly the same question and why we came with this answer :)
One more option: How about using an independent (aka orphan) branch for each action. This allows for two things:
Version each action independently.
Do the namespacing through tags only (e.g. haskell/actions@run-tests-v1 vs haskell/actions/run-tests@run-test-v1), as each independent branch can have its own actions.yaml at the project root.
For comparison:
haskell/actions/run-tests@v1 # namespacing through directories + no independent versioning (status quo) (1)
haskell/actions/run-tests@run-tests-v1 # namespacing through directories + independent versioning of actions (2)
haskell-actions/run-tests@v1 # namespating by using separate repos at haskell-actions (3)
haskell/actions@run-tests-v1 # namespacing + versioning by tags (new suggestion) (4)
Downside of (1): Does not allow for independent versioning of actions.
Downside of (2): Not DRY (the action name, here run-tests, has to be spelled out twice).
An other downside with the current setup is that actions in subdirectories can't be published to GitHub Marketplace. The same limitation applies for using orphan branches.
The relation between a published action on GitHub Marketplace and a repositories is strictly 1-to-1.
I'm not sure if publishing an action to GitHub Marketplace provides much value. Still, if it's my call, I would vote for using separate repositories (e.g. haskell/setup-action).
On Tue, Jan 19, 2021 at 10:24 AM Simon Hengel ***@***.***> wrote:
An other downside with the current setup is that actions in subdirectories
can't be published to GitHub Marketplace. The same limitation applies for
using orphan branches.
The relation between a published action on GitHub Marketplace and a
repositories is strictly 1-to-1.
I'm not sure if publishing an action to GitHub Marketplace provides much
value. Still, if it's my call, I would vote for using separate repositories
(e.g. haskell/setup-action).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABBQSLCXZ2ZWZL766NBI3S2WP4NANCNFSM4VEZ25YA>
.
Yeah that was unintentional. I've been procrastinating on setting this up, but it's time to sit down and write myself a pipeline that versions/tags/etc things when they get merged to main. I'll see if I can get that done this weekend
Any updates on this? Eventually (not urgent by any means), I would be nice to either get v1 point to the latest v1.x tag, or to clarify that haskell/actions/setup does not follow this versioning scheme.
Activity
hazelweakly commentedon Dec 21, 2020
Yes. The idea is that the tags should work like semver. In practice, you should be able to set the action at
v1forever and not worry about it.The only reason I added the
v1.1tag originally is because it was used to denote that I added new functionality to the action (when I completely rewrote it), but the line between bug fixes, enhancements, and new features (which warrant a minor version bump) can sometimes be subtle or just outright opinion, so I'm sure someone could disagree with the action being atv1.1instead of roughlyv1.3or so.For what it's worth, I expected to bump it to
v1.2soon and will try to make it as painless as possible for people to pin their version bounds as tight as they wish.It's worth nothing that the implementation of github actions itself treats everything after the
@as a "git committish" (or really anything that can be stuck aftergit checkout), so tags, branch names, hashes, short-hashes, etc., are all fair game should someone really want to pin their action version exactly.sol commentedon Dec 26, 2020
Somewhat related (@cartazio sorry for hijacking this issue), in the top-level
READMEit reads:So let's assume we add an other action, e.g.
haskell/actions/run-tests, how would we version this? One obvious solution would be to just version them together, which would kind of work as long as both actions don't introduce breaking changes.But what would we do when say e.g.
run-testintroduces a breaking change and hence requires a major version bump? The naive implication would be thatsetupwould also continue onv2.*and that users ofhaskell/actions/setup@v1would not get any updates anymore.Or is the idea to have a separate set of tags for each action so that a user would e.g. specify
?
Or maybe ask @AlexeyRaga if he is open to the idea of widening the audience of the
haskell-actionsorg, so that a user would specify:or
?
cartazio commentedon Dec 27, 2020
if only github had nested projects support, a la gitlab :)
AlexeyRaga commentedon Dec 28, 2020
We have been thinking about it too, and came to the conclusion that having multiple actions in one repository isn't ideal because of the versioning: bumping a version for one action results in a version bump for all the actions within the repository, and this is very confusing.
So we ended up having one repo per action (here: https://github.com/haskell-actions/)
Perhaps this is also the reason for GH itself having a repo per action. Even heavily related actions (like upload and download artefacts) are modelled as different repositories by GH. So perhaps a repo per action isn's a bad idea after all.
hazelweakly commentedon Dec 30, 2020
I went with one repo because it's been pretty rare in my experience that one needs to introduce backwards incompatibility into a github action. It's usually easy enough to preserve existing behavior and extend things with new options. I also didn't want to clutter the haskell org with more repos until I had been able to talk to more people about things. (I had only a few days to get this repo migrated over since the previous one was archived somewhat suddenly)
I also didn't know the
haskell-actionsorg existed, at all, or I probably would've tried to get that opened up first.As it is, it's possible to split out
haskell/actionsinto separate repos and continue to reference them here so thathaskell/actions/setupandhaskell/setup-actionboth worked (or some other solution).Yeah that's correct. You can get around this by using branches to make it easier to ensure that
v1could continue to update and only relevant code would change, but it's not the most pleasant. This is the same strategy you need to use if you want to backport changes across versions in a single codebase anyway.So, I guess the question is. Should this repo be changed to
haskell/setup-action, migrated tohaskell-actions/setup, or remain as is? And what should happen to thehaskell-actionsorg?AlexeyRaga commentedon Dec 30, 2020
I think that the problem was not backwards compatibility per se. It is more like a cognitive load: because new versions are released regardless on whether the action has changed or not, the version name is now meaningless most of the time.
But I admit that it is kind of a personal feelings, just like some people like monorepos and lock-step versioning and other do not.
So please don't read my comment as "you are doing it wrong", I was just showing that we had exactly the same question and why we came with this answer :)
sol commentedon Jan 1, 2021
One more option: How about using an independent (aka orphan) branch for each action. This allows for two things:
haskell/actions@run-tests-v1vshaskell/actions/run-tests@run-test-v1), as each independent branch can have its ownactions.yamlat the project root.For comparison:
Downside of (1): Does not allow for independent versioning of actions.
Downside of (2): Not DRY (the action name, here
run-tests, has to be spelled out twice).sol commentedon Jan 19, 2021
An other downside with the current setup is that actions in subdirectories can't be published to GitHub Marketplace. The same limitation applies for using orphan branches.
The relation between a published action on GitHub Marketplace and a repositories is strictly 1-to-1.
I'm not sure if publishing an action to GitHub Marketplace provides much value. Still, if it's my call, I would vote for using separate repositories (e.g.
haskell/setup-action).cartazio commentedon Jan 19, 2021
amesgen commentedon Feb 12, 2021
I am not sure if it is intentional that the v1 tag does not point to the same commit as v1.2 (just noted due to GHC 9.0).
FWIW there are ways to automate this, e.g. actions-tagger (used by the official actions/upload-release-asset).
hazelweakly commentedon Feb 12, 2021
Yeah that was unintentional. I've been procrastinating on setting this up, but it's time to sit down and write myself a pipeline that versions/tags/etc things when they get merged to main. I'll see if I can get that done this weekend
amesgen commentedon Mar 12, 2021
Any updates on this? Eventually (not urgent by any means), I would be nice to either get v1 point to the latest v1.x tag, or to clarify that haskell/actions/setup does not follow this versioning scheme.EDIT: v1 now points to the latest release.
Merge pull request haskell#18 from rwe/dependabot/npm_and_yarn/action…
andreasabel commentedon Dec 28, 2022
Recent incarnation:
andreasabel commentedon Jan 10, 2023
Closing this issue in favour of #141.