Skip to content

Workflow to publish qdrant-edge on crates.io - #8260

Merged
xzfc merged 2 commits into
devfrom
qdrant-edge-crates.io
Mar 2, 2026
Merged

xzfc merged 2 commits into
devfrom
qdrant-edge-crates.io

Conversation

@xzfc

@xzfc xzfc commented Mar 2, 2026

Copy link
Copy Markdown
Member

Prompt used for the first commit:

@.github/workflows/edge-rust-package.yml
Add workflow to publish it to crates.io.
Runs manually. Runs cargo check -p examples on macos/ubutnu/windows before publishing.
Assume token is in secrets.CRATES_IO_TOKEN_EDGE.

See .github/workflows/edge-py-release.yml as a reference.

@xzfc
xzfc requested review from generall and timvisee March 2, 2026 14:56
@coderabbitai

coderabbitai Bot commented Mar 2, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 58d3219 and b0c17a9.

📒 Files selected for processing (3)
  • .github/workflows/edge-rust-release.yml
  • lib/edge/publish/README.md
  • lib/edge/publish/amalgamate.py
✅ Files skipped from review due to trivial changes (1)
  • lib/edge/publish/README.md
🚧 Files skipped from review as they are similar to previous changes (2)
  • .github/workflows/edge-rust-release.yml
  • lib/edge/publish/amalgamate.py

📝 Walkthrough

Walkthrough

Adds a new GitHub Actions workflow .github/workflows/edge-rust-release.yml with two jobs: edge-rust-check (matrix: ubuntu, macos, windows) to build/check the edge examples, and publish (ubuntu) to publish the qdrant-edge crate when workflow input publish is true. Updates lib/edge/publish/amalgamate.py to introduce a VERSION constant and set package.publish = True in the generated manifest. Adds lib/edge/publish/README.md with brief publish steps.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • Single edge crate #8173: Introduced the amalgamate script and initial edge packaging workflow that this change builds upon.

Suggested reviewers

  • timvisee
  • generall
🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Workflow to publish qdrant-edge on crates.io' directly and clearly describes the main change in the pull request: adding a GitHub Actions workflow for publishing the qdrant-edge crate to crates.io.
Description check ✅ Passed The description provides the prompt used for implementation, referencing an existing workflow pattern (.github/workflows/edge-py-release.yml) and explaining the workflow's purpose, execution trigger, and security approach for the crates.io token.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch qdrant-edge-crates.io

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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 and usage tips.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🧹 Nitpick comments (2)
lib/edge/publish/README.md (1)

1-4: Add clarification about enabling the publish checkbox.

The workflow's publish input defaults to false. Users should be informed to check the "Publish to crates.io" option when triggering the workflow, otherwise only the check job will run.

📝 Suggested documentation update
 # How to publish to crates.io

 1. Update the `VERSION` in [amalgamate.py](amalgamate.py).
-2. Run [Qdrant Edge Rust Release](https://github.com/qdrant/qdrant/actions/workflows/edge-rust-release.yml) workflow.
+2. Run [Qdrant Edge Rust Release](https://github.com/qdrant/qdrant/actions/workflows/edge-rust-release.yml) workflow with the "Publish to crates.io" option checked.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@lib/edge/publish/README.md` around lines 1 - 4, Update the README to clarify
that the Qdrant Edge Rust Release workflow's publish input defaults to false and
users must enable the "Publish to crates.io" checkbox when manually triggering
the workflow; mention the existing steps (update VERSION in amalgamate.py and
run the Qdrant Edge Rust Release workflow) and add a note that failing to check
the publish option will run only the check job and not publish to crates.io.
.github/workflows/edge-rust-release.yml (1)

83-84: Consider consistent script invocation.

While this job runs only on Ubuntu where the shebang works, using uv run consistently across both jobs improves maintainability.

♻️ Suggested change for consistency
       - name: Amalgamate
-        run: lib/edge/publish/amalgamate.py
+        run: uv run lib/edge/publish/amalgamate.py
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/edge-rust-release.yml around lines 83 - 84, The Amalgamate
job currently executes the script directly via "run:
lib/edge/publish/amalgamate.py"; change the job's run invocation to use the
consistent wrapper "uv run" so both jobs call the script the same way — update
the Amalgamate job's run value (referencing the job name "Amalgamate" and the
script path "lib/edge/publish/amalgamate.py") to use "uv run
lib/edge/publish/amalgamate.py".
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/edge-rust-release.yml:
- Around line 48-49: The Amalgamate workflow step currently invokes the script
file lib/edge/publish/amalgamate.py which relies on a Unix shebang and will fail
on Windows; update the step named "Amalgamate" to call uv run explicitly with
the script path (invoke uv run against lib/edge/publish/amalgamate.py) so the
script is executed cross-platform rather than relying on the shebang.

---

Nitpick comments:
In @.github/workflows/edge-rust-release.yml:
- Around line 83-84: The Amalgamate job currently executes the script directly
via "run: lib/edge/publish/amalgamate.py"; change the job's run invocation to
use the consistent wrapper "uv run" so both jobs call the script the same way —
update the Amalgamate job's run value (referencing the job name "Amalgamate" and
the script path "lib/edge/publish/amalgamate.py") to use "uv run
lib/edge/publish/amalgamate.py".

In `@lib/edge/publish/README.md`:
- Around line 1-4: Update the README to clarify that the Qdrant Edge Rust
Release workflow's publish input defaults to false and users must enable the
"Publish to crates.io" checkbox when manually triggering the workflow; mention
the existing steps (update VERSION in amalgamate.py and run the Qdrant Edge Rust
Release workflow) and add a note that failing to check the publish option will
run only the check job and not publish to crates.io.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 15be52f and 58d3219.

📒 Files selected for processing (3)
  • .github/workflows/edge-rust-release.yml
  • lib/edge/publish/README.md
  • lib/edge/publish/amalgamate.py

Comment thread .github/workflows/edge-rust-release.yml Resolved
@xzfc
xzfc force-pushed the qdrant-edge-crates.io branch from 58d3219 to b0c17a9 Compare March 2, 2026 15:24
@xzfc
xzfc merged commit 13df41e into dev Mar 2, 2026
16 checks passed
@xzfc
xzfc deleted the qdrant-edge-crates.io branch March 2, 2026 22:57
@xzfc xzfc mentioned this pull request Mar 3, 2026
This was referenced Mar 19, 2026
generall pushed a commit that referenced this pull request Mar 26, 2026
* [ai] Workflow to publish qdrant-edge on crates.io

* Doc, tune Cargo.toml
KShivendu pushed a commit that referenced this pull request Mar 30, 2026
* [ai] Workflow to publish qdrant-edge on crates.io

* Doc, tune Cargo.toml
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