-
Notifications
You must be signed in to change notification settings - Fork 6
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
Match node version with tag version #270
Conversation
I suggest that if no any automazation is added at least add some wiki or doc where we specify the steps to release+upgrade emphasising the fact that we need to keep the same value from tag within |
/ask what if the tag does not follow the standard v*.. for example |
Question: what if the tag does not follow the standard v*.. for example Answer: The script uses the To handle non-standard version tags, the script would need to be updated to accommodate the specific format of these tags. This could involve using a more complex regular expression or a different method of parsing the tag string. However, it's generally recommended to stick to a standard versioning scheme (like semantic versioning) for consistency and ease of use. |
/ask what if we don't use |
Question: what if we don't use Answer: In the current setup, if the branch is of type If the branch is not of type If you don't use |
I used it since this pattern is also hard-coded here |
we might not use |
git tag does not use semver |
I mean, we make the releases and we choose how to version it, no? |
In our workflow, |
/ask is it possible to create a workflow in git-action which is triggered on tag ? |
Question: is it possible to create a workflow in git-action which is triggered on tag ? Answer: on:
create:
tags:
- v* In this example, the workflow will be triggered whenever a tag starting with 'v' is created. You can modify the tag pattern to suit your needs. For example, if you want to trigger the workflow for any tag, you can simply use on:
create:
tags:
- '*' This will trigger the workflow whenever any tag is created. Remember to replace the |
this could be a path leading to a more solid solution ( maybe ) |
I think it would be nice also to check that the |
would be out of the scope of the PR/story. maybe we can add in the future sprints |
Description
Matches the node package version to latest tag version of the repo. Also unifies other crates to a single version which is defined in the root workspace
Cargo.toml
.Substrate has a
build
script that readsCARGO_PKG_VERSION
(https://github.com/paritytech/polkadot-sdk/blob/polkadot-v1.1.0/substrate/utils/build-script-utils/src/version.rs#L52). Then it saves the version asSUBSTRATE_CLI_IMPL_VERSION
and it is returned bySubstrateCli::impl_version()
(node --version
)What it means?
In the future, every time we create a release, we need to bump the version in the workspace
Cargo.toml
to the tag versionOther notes
polkadot recently removed dependency of node version to the crate version. There were also some issues about non-deterministic results when deriving node version from crate. Node's version is now included in compile-time, i.e hard-coded as constant. Idk if we should follow the suite, but could be evaluated during an upgrade of dependencies
paritytech/polkadot-sdk#1495
Result