-
Notifications
You must be signed in to change notification settings - Fork 275
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 improvements #640
Draft
rgoldberg
wants to merge
82
commits into
mas-cli:main
Choose a base branch
from
rgoldberg:638-release-improvements
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Release improvements #640
+349
−1,412
Conversation
This file contains 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
houndci-bot
reviewed
Nov 16, 2024
rgoldberg
force-pushed
the
638-release-improvements
branch
6 times, most recently
from
November 17, 2024 00:13
03de1d2
to
8306c6e
Compare
rgoldberg
force-pushed
the
638-release-improvements
branch
7 times, most recently
from
November 18, 2024 06:56
0faa0f8
to
ef6bd6e
Compare
@phatblat I've incorporated your fixes from the If you have any other fixes that weren't already in that branch in this repo at the time when this comment was posted, please share them with me so I can incorporate them into the branch for this PR. Thanks. |
rgoldberg
force-pushed
the
638-release-improvements
branch
4 times, most recently
from
November 20, 2024 06:07
f06fedd
to
4856cee
Compare
Closed
rgoldberg
force-pushed
the
638-release-improvements
branch
2 times, most recently
from
November 21, 2024 03:59
9016365
to
c169e88
Compare
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
…sistent with the shebangs that are used throughout. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
…sion values. It only seems to be used for testing with `act`. `event.json` should either be generated or be manually created; in either case, it should reside somewhere that is ignored by git, as the only source of version info in git should be version tags. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
`brew_core_update`: disable tracing & cleanup script. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Cleanup comments / documentation / spacing. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
…condition. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
…ttacks / accidents. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
…f an output from `start` job. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
…e_release` output from `start` job. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
…ore` job. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
…ller` to ensure that custom tap isn't bumped if the package installer wasn't uploaded to the GitHub release. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
…ify & speedup workflow. Move all environment variables to the top level. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
…into `release.yml`. Run `git rev-parse …` instead of `git rev-list -n 1 …` for mas-cli/tap/mas. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Requires corresponding commits to `homebrew-core/mas` & `mas-cli/tap/mas` formulae. Rename `dstroot` variable as `distributions_root` in `script/package`. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Should only release revisions that have version tags on them, so should only need a single commit. `ref:` should default to the reference for the event, which should be `github.event.release.tag_name`, so shouldn't need to explicitly set it. If any of these changes cause problems, will back them out. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
`script/package` calls `script/build --universal` instead of requiring the latter to be called before the former. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
…` target has been merged into `mas` target. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
… tag & current revision for local (i.e. non-release builds), since releases should all be for a version tagged revision. Partial mas-cli#638 Signed-off-by: Ross Goldberg <[email protected]>
rgoldberg
force-pushed
the
638-release-improvements
branch
from
November 21, 2024 20:45
41c1f62
to
aabdb51
Compare
rgoldberg
added
the
🧽 chore
Administrative task: documentation, build, test, release, git, etc.
label
Nov 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
@phatblat
This is my WIP of improvements for the release process, plus some unrelated cleanup.
I haven't tested any of this stuff, as I'm worried about accidentally releasing a new version.
I've incorporated all your changes from your
638/release-fixes
, so that can be deleted.Can you start looking through the changes, then let me know if they're good, should be changed, or should be discarded?
The general principle of this PR is simplicity:
mas-cli/mas
repo:Makefile
homebrew/homebrew-core
ormas-cli/tap
homebrew-core
&mas-cli/tap/mas
formulae in taps instead of locally generating / modifying them.Sources/mas/Package.swift
mas-cli/mas
on release.mas-cli/mas
repo only in version tag, not in any files or in any branch namesbrew bump-formula-pr
) instead of reinventing the wheel/bin/bash
is used everywhere instead of some places usingbash
from the$PATH
sd
(script that used it was deleted, but if script kept, should use bash scripting instead)mise
: usebrew bundle
insteadscript/version --write
&script/version_bump
withscript/generate_version_info_for_swift
Sources/mas/Package.swift
) for revisions that aren't directly tagged with a version tag are specified by the fullgit describe --tags
output, which includes the number of commits since the tag & the current revision.release.yml
job dependencies.cd
into project root at beginning of every bash script.-u
in all bash shebangsImprovements that are being worked on:
release.yml
output release event info only whenname != ''
?release.yml
.act
, unless either:mas-cli/tap/mas
/ GitHub Release artifacts:mas.pkg
filename.brew bump-formula-pr
probably won't do that.homebrew-core
?Future tasks include:
actions/checkout@v4
output:git config --global init.defaultBranch main
git config --global advice.detachedHead false
.actrc
--eventpath .github/event.json
to a path under git-ignored.build
?Dangerfile.swift
appears to be used only for PRs made directly onmas-cli/mas
, but not for those via forks:awk
grep
cut
sd
sed
tag.gpgSign
).main
except for old sub-patch version tags for branches named for the patch version.Resolve #638