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

Release process fix & major/minor/rev macro addition #8126

Merged
merged 11 commits into from
Jun 16, 2021

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Jun 15, 2021

  • Release process update is based on release 3.0.0 #8034.
  • makecorever.py is now used as part of the release process script.
  • MAJOR/MINOR/REVISION are added in core_version.h based on platform.txt's version when building with Arduino-CLI, or git tag when releasing. PlatformIO will have to be updated too (this is not addressed here).

This is WIP but is going to be merged anyway in order to try the release script executed remotely by CI.
A tag will be added (3.0.1) and removed right after that (this gymnastic happens quite often while releasing these days).
This will allow to check generated logs and archive to address #8049

@d-a-v d-a-v added the alpha included in alpha release label Jun 15, 2021
def git(*args):
cmd = ["git", "-C", platform_path]
cmd.extend(args)
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, universal_newlines=True, stderr=subprocess.DEVNULL)
return proc.stdout.readlines()[0].strip()

git_desc = platform_version;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following the above, should this have additional param to skip git-describe?
Meaning, this still could still work with a shallow copy or with some broken tagging (like github actions checkout does)

Copy link
Collaborator Author

@d-a-v d-a-v Jun 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tagging works OK including when used by github-action. Releases are based on tagging.
I updated the script per your 3 reviews and added comments.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

broken == checkout doing git fetch origin +$commit-sha$:refs/tags/$tag-name$, which is worked around with fetch-depth:0... which could be avoided

my only problem with that is that version string depends on too much stuff, where we already know it from the tag name anyway; and commit sha comes from rev-parse regardless, shallow copy or not.

tools/makecorever.py Outdated Show resolved Hide resolved
package/build_boards_manager_package.sh Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpha included in alpha release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants