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

Adds improvements & new crates to publish-crates.sh #2173

Merged
merged 7 commits into from
Jan 27, 2025

Conversation

cloutiertyler
Copy link
Contributor

@cloutiertyler cloutiertyler commented Jan 25, 2025

Description of Changes

This PR modifies publish-crates.sh:

  1. to take a new argument --allow-dirty which is forwarded to crates publish
  2. to not fail if a crate has already been published before
  3. to add tyler@clockworklabs.io and zeke@clockworklabs.io to be an owner on all newly published crates

NOTE! I recommend we investigate https://github.com/crate-ci/cargo-release in the future rather than to improve this script ad infinitum.

API and ABI breaking changes

None

Expected complexity level and risk

1, it can only break this script, but nothing else.

Testing

I have not tested the new improvements to the script since it's quite hard to test without bumping the versions on things. The risk however is very low and I figure we can fix issues as they come.

@cloutiertyler cloutiertyler requested a review from bfops as a code owner January 25, 2025 20:04
crates/schema/Cargo.toml Outdated Show resolved Hide resolved
tools/publish-crates.sh Outdated Show resolved Hide resolved
Copy link
Collaborator

@bfops bfops left a comment

Choose a reason for hiding this comment

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

Thank you for doing this! This looks better than what I got from copilot in my spike of making these changes.

That said, I think it needs another quick pass.

Ideally these would also be separate changes since they're logically independent:

  • Bump crate versions
  • Add new crates to publish script
  • Add new functionality to publish script

That said, they're all small and self-contained so I think it's okay to leave these in the same PR this time (as long as you're fine with all of them waiting to merge until all of them are approved).

bfops and others added 4 commits January 27, 2025 10:34
Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
…x-publish' of github.com:clockworklabs/SpacetimeDB into tyler/bump-version-fix-publish
@bfops
Copy link
Collaborator

bfops commented Jan 27, 2025

Created #2176 to track us investigating the cargo-release tool.

@bfops bfops changed the title Bumps to v1.0.0-rc3.1 and adds improvements & new crates to publish-crates.sh Adds improvements & new crates to publish-crates.sh Jan 27, 2025
@bfops
Copy link
Collaborator

bfops commented Jan 27, 2025

I moved the version bumps into #2177.

Copy link
Collaborator

@bfops bfops left a comment

Choose a reason for hiding this comment

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

This version LGTM

@cloutiertyler
Copy link
Contributor Author

Thank you for making the changes, this LGTM.

@bfops bfops added this pull request to the merge queue Jan 27, 2025
Merged via the queue into master with commit a81b6c2 Jan 27, 2025
14 checks passed
@bfops bfops deleted the tyler/bump-version-fix-publish branch January 28, 2025 00:03
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.

2 participants