Skip to content

fix(ci): unblock cargo publish and dry-run packaging in CI#7989

Merged
wjones127 merged 2 commits into
lance-format:mainfrom
wjones127:fix/cargo-publish-readme
Jul 24, 2026
Merged

fix(ci): unblock cargo publish and dry-run packaging in CI#7989
wjones127 merged 2 commits into
lance-format:mainfrom
wjones127:fix/cargo-publish-readme

Conversation

@wjones127

Copy link
Copy Markdown
Contributor

The 9.0.0 crates.io publish failed while packaging lance-index-core:

error: readme `README.md` does not appear to exist (relative to `.../rust/lance-index-core`).

The crate was added in #7713 with readme = "README.md" but no such file. cargo publish --workspace packages every crate before uploading any, so the whole release aborted and no 9.0.0 crates reached crates.io.

Two changes:

  • Add rust/lance-index-core/README.md, matching the sibling internal crates.
  • Add a cargo package --workspace --no-verify job to the Rust workflow. Nothing in CI packaged the crates, so manifest problems that only surface at publish time (missing readme/license files, path dependencies without a version) were invisible until the release ran. --no-verify skips rebuilding each packaged crate, which the other jobs already cover, so the job takes about a minute.

Verified locally: all 25 publishable crates now package cleanly.

Fixes #7986

The 9.0.0 crates.io publish failed because lance-index-core declared a
readme that did not exist. Nothing in CI packages the crates, so the
problem only surfaced during the release. Add a `cargo package
--no-verify` job that mirrors the publish command.
@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: QUIET

Plan: Pro Plus

Run ID: 23f89012-79df-4a38-b4bb-5b9401ebcd66

📥 Commits

Reviewing files that changed from the base of the PR and between ed078e7 and 04ec896.

📒 Files selected for processing (2)
  • .github/workflows/rust.yml
  • rust/lance-index-core/README.md

📝 Walkthrough

Walkthrough

The Rust workflow adds a workspace packaging validation job, and lance-index-core gains README documentation describing its internal purpose and usage restrictions.

Changes

Rust packaging

Layer / File(s) Summary
Document internal index core crate
rust/lance-index-core/README.md
Adds the crate description, its role in Lance index plugins, and an internal-use warning.
Validate publishable workspace packages
.github/workflows/rust.yml
Adds a workflow job that runs cargo package across the workspace with all features and specified exclusions.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: xuanwo

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added A-ci CI / build workflows bug Something isn't working labels Jul 24, 2026

@Xuanwo Xuanwo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you!

wjones127 added a commit that referenced this pull request Jul 24, 2026
Backport of #7989 so the 9.0.x line can publish to crates.io.

`cargo publish --workspace` aborted on the 9.0.0 release because
`lance-index-core` declared a readme that does not exist, and it
packages every crate before uploading any, so nothing reached crates.io.
Without this, 9.0.1 would fail the same way.

Fixes #7986
@wjones127
wjones127 marked this pull request as ready for review July 24, 2026 18:19
@wjones127
wjones127 merged commit 9fba9d4 into lance-format:main Jul 24, 2026
34 checks passed
@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ci CI / build workflows bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish Rust crate Failed (build)

2 participants