Skip to content

Add a claude-generated script that runs our release process.#1887

Draft
nuttycom wants to merge 6 commits intozcash:mainfrom
nuttycom:crate_release_script
Draft

Add a claude-generated script that runs our release process.#1887
nuttycom wants to merge 6 commits intozcash:mainfrom
nuttycom:crate_release_script

Conversation

@nuttycom
Copy link
Copy Markdown
Collaborator

No description provided.

@nuttycom nuttycom force-pushed the crate_release_script branch from 7feb415 to 22c3835 Compare July 31, 2025 22:45
nuttycom added 3 commits July 31, 2025 16:48
Prompt:
Today's goal is to write a Python script to facilitate the release of crates in this Rust workspace. The
dependencies within this workspace are complex. The last 7 commits in this workspace can serve as an example
for the process that should performed. Crates should be released in dependency order, and for each crate being
released, the operations for the release of that crate should be performed in a single commit.
Prompt:
The `update_supply_chain` step should be modified to use `cargo vet` to update the supply chain metadata,
instead of modifying the supply chain metadata directly.
…s` validation.

Prompt:
As a prerequisite for creating each release commit, just prior to committing the changes, we should run `cargo
publish -p <crate_name> --dry-run` to ensure that there are no unresolved problems that could disrupt the
release. In addition, we should run `cargo semver-checks` to verify that the version bump being proposed
respects SemVer constraints.
@nuttycom nuttycom force-pushed the crate_release_script branch from 22c3835 to d7f628b Compare July 31, 2025 22:48
… update`

Prompt:
`cargo update` is not sufficiently granular; it may update other dependencies that we don't want updated. Use
`cargo check --tests --all-features` instead; this will perform the minimal required update to the Cargo.lock
file.
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.79%. Comparing base (971531e) to head (57fe9b3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1887   +/-   ##
=======================================
  Coverage   57.79%   57.79%           
=======================================
  Files         184      184           
  Lines       22386    22386           
=======================================
  Hits        12938    12938           
  Misses       9448     9448           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…kdown parsing.

Prompt:

The next goal is to make the `update_changelog` and
`update_dependent_changelogs` functions more robust: `update_changelog`
needs to operate properly in the case that there does not yet exist a
`PLANNED` section for the release we're about to make. The
`update_dependent_changelogs` function may need to add a `### Changes`
section for the current release if one doesn't exist yet, and may need
to add a `Migrated to` line to that section if no such line exists
recording updated dependencies. Use the `marko` markdown parser and
update the AST directly instead of performing direct manipulation of the
CHANGELOG text, taking advantage of the structured nature of the
CHANGELOG data.
…when running the release script.

Prompt:

create a pyproject.toml file such that the `release_crates.py` script can be reliably run using `uv`
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.

1 participant