Skip to content

build: harden Rust crate publishing#562

Merged
JingsongLi merged 3 commits into
apache:mainfrom
XiaoHongbo-Hope:fix/rust-release-sequencing
Jul 22, 2026
Merged

build: harden Rust crate publishing#562
JingsongLi merged 3 commits into
apache:mainfrom
XiaoHongbo-Hope:fix/rust-release-sequencing

Conversation

@XiaoHongbo-Hope

@XiaoHongbo-Hope XiaoHongbo-Hope commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Package LICENSE, NOTICE, test helpers, and testdata in both published crates.
  • Validate release tags and package inventories with locked dependencies.
  • Publish paimon, wait for the exact crates.io version, then dry-run and publish paimon-datafusion.
  • Skip versions that already exist so failed GA runs can be retried safely.

Why

The current matrix uses max-parallel: 1, which limits concurrency but does not guarantee paimon runs before paimon-datafusion. The packaged crates also omit legal files and reference test helpers outside their package roots.

RC validation does not dry-run both crates together: it packages both crates and dry-runs paimon. The paimon-datafusion dry-run runs only after paimon is visible on crates.io during GA publication.

Verification

  • cargo package --locked -p paimon -p paimon-datafusion --all-features
  • Package inventories contain LICENSE, NOTICE, dependency reports, test helpers, and testdata
  • Rust formatting, YAML parsing, actionlint, and diff checks
  • Static workflow assertions confirm the explicit job dependency chain and separate dry-runs

@XiaoHongbo-Hope
XiaoHongbo-Hope force-pushed the fix/rust-release-sequencing branch from 9723ea0 to eb96683 Compare July 22, 2026 07:32
@XiaoHongbo-Hope
XiaoHongbo-Hope marked this pull request as ready for review July 22, 2026 08:03
@jianguotian

Copy link
Copy Markdown

+1

@JingsongLi JingsongLi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

@JingsongLi
JingsongLi merged commit defdd24 into apache:main Jul 22, 2026
13 checks passed
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.

3 participants