Repository navigation
Workflow to publish qdrant-edge on crates.io - #8260
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughAdds a new GitHub Actions workflow Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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. Comment |
There was a problem hiding this comment.
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
publishinput defaults tofalse. 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 runconsistently 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
📒 Files selected for processing (3)
.github/workflows/edge-rust-release.ymllib/edge/publish/README.mdlib/edge/publish/amalgamate.py
58d3219 to
b0c17a9
Compare
* [ai] Workflow to publish qdrant-edge on crates.io * Doc, tune Cargo.toml
* [ai] Workflow to publish qdrant-edge on crates.io * Doc, tune Cargo.toml
Prompt used for the first commit: