Skip to content

Conversation

alexeagle
Copy link
Contributor

@alexeagle alexeagle commented Dec 29, 2021

Instead of building our own .tgz file with release artifacts, just let GitHub do it.
Makes the release instructions much quicker, and doesn't require a review pass for releases, so we'll do them more frequently.

Note that GitHub does serve a stable SHA, and automated release notes include the workspace snippet with the SHA.
This produces an archive of 338K that users will fetch. Our previous release was 45K, so this is an order of magnitude larger since our test code, examples, and documentation are now included. However IMO it's not that important, compared with simpler maintenance.

This follows the new example from the rules authors SIG: https://github.com/bazel-contrib/rules-template

fixes #586

@alexeagle alexeagle force-pushed the release2 branch 2 times, most recently from 3d74b2c to c6d4e0c Compare December 29, 2021 01:03
Instead of building our own .tgz file with release artifacts, just let GitHub do it.
Makes the release instructions much quicker, and doesn't require a review pass for releases, so we'll do them more frequently.
fixes bazel-contrib#586
Copy link
Contributor

@hrfuller hrfuller left a comment

Choose a reason for hiding this comment

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

This is great. Should we cut a release after this merges to make sure it works? :)

pass
for command in config['bazelCommands']:
bazel_args = command.split(' ')
bazel_args.append("--override_repository=rules_python=%s/rules_python" % os.environ['TEST_SRCDIR'])
Copy link
Contributor

Choose a reason for hiding this comment

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

Very cool.

bazel_args.append("--override_repository=rules_python=%s/rules_python" % os.environ['TEST_SRCDIR'])

# Bazel's wrapper script needs this or you get
# Bazel's wrapper script needs this or you get
Copy link
Contributor

Choose a reason for hiding this comment

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

nit trailing ws.

@alexeagle alexeagle merged commit 0597cdf into bazel-contrib:main Jan 2, 2022
@alexeagle alexeagle deleted the release2 branch January 2, 2022 20:03
@alexeagle
Copy link
Contributor Author

@hrfuller I'll push a tag to the repo now to verify.

alexeagle added a commit that referenced this pull request Aug 8, 2022
Since #587 we just distribute the whole source archive from GitHub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove release artifact

2 participants