Skip to content

fix(sampo/core/github-action): apply pre-release audit fixes - #387

Merged
goulvenclech merged 2 commits into
mainfrom
fix/pre-release-audit
Nov 29, 2026
Merged

goulvenclech merged 2 commits into
mainfrom
fix/pre-release-audit

Conversation

@goulvenclech

Copy link
Copy Markdown
Member

What has changed?

Four fixes from the pre-0.25 audit, to merge before release PR #386.

sampo update and the new-version hint looked for releases tagged sampo-v<version>, while the CLI's releases have been tagged cargo-sampo-v<version> since 0.18.0, so neither found anything newer than 0.17.4. Both now match cargo-sampo-v only. The sampo-v releases stop at 0.17.4, older than any CLI with this fix.

In Python projects, sampo publish failed for a uv workspace member. uv build wrote to the workspace root's dist/, while uv publish, run from the member, looked in the member's dist/ and found nothing. The build now passes --out-dir dist.

The Action's 30-second request timeout cut the upload of a large release asset short. An upload now has 30 minutes, and the other API calls keep 30 seconds.

The Action README example set a CARGO_TOKEN environment variable that neither Sampo nor cargo reads. It now sets CARGO_REGISTRY_TOKEN, which cargo reads, beside the other registries' tokens. The cargo-token input still works.

How is it tested?

A unit test renders the repository's own tag_format for the CLI and compares it with the prefix sampo update matches. An integration test publishes a uv workspace member through a stand-in uv that builds into the workspace root unless told otherwise, as uv does. The upload timeout has no test, as a test would have to wait past 30 seconds. sampo update did not run against GitHub, and the README example did not run in a workflow.

How is it documented?

The corrected example in the Action README, and three patch changesets, one for each of the other fixes.

@sampo-s-bot

sampo-s-bot Bot commented Nov 29, 2026

Copy link
Copy Markdown

🧭 Changeset detected

Merging this PR will release the following updates:

sampo (Cargo) — patch version bump

Patch changes

  • Fixed sampo update and the new-version hint never finding a release newer than 0.17.4.
  • In Python (PyPI) projects, fixed sampo publish finding no file to upload for a uv workspace member, whose build landed in the workspace root's dist/.

sampo-core (Cargo) — patch version bump

Patch changes

  • In Python (PyPI) projects, fixed sampo publish finding no file to upload for a uv workspace member, whose build landed in the workspace root's dist/.

sampo-github-action (Cargo) — patch version bump

Patch changes

  • Fixed the GitHub Action failing to upload a release asset that takes more than 30 seconds to send.
  • In Python (PyPI) projects, fixed sampo publish finding no file to upload for a uv workspace member, whose build landed in the workspace root's dist/.

@github-actions github-actions Bot added documentation Improvements or additions to documentation crt:sampo Changes in Sampo CLI crate. crt:sampo-github-action Changes in Sampo's Github action crate. crt:sampo-core Changes in Sampo core logic or internal utils. labels Nov 29, 2026
@goulvenclech
goulvenclech merged commit ac26dbc into main Nov 29, 2026
9 checks passed
@goulvenclech
goulvenclech deleted the fix/pre-release-audit branch November 29, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crt:sampo Changes in Sampo CLI crate. crt:sampo-core Changes in Sampo core logic or internal utils. crt:sampo-github-action Changes in Sampo's Github action crate. documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant