Repository navigation
ci+docs: publish 0.2.3 to PyPI with the org token, and fix README examples that fail on 0.2.3 (OSS-71) - #54
Conversation
Checked against a 0.2.3 wheel built from main and the prod API: - `hydradb feedback <id> --rating positive` is refused: feedback needs --feedback, --ground-truth-answer or --ground-truth-source-id. The example now passes -f. - `hydradb graph query ... --output json` fails with "No such option": --output is a global option and goes before the command. - `hydradb list` without --kind returns knowledge sources only, and the JSON for --kind memory uses `user_memories`, not `sources`. - Add `database delete-collection` and `connectors resource add --name`, which the CLI has and the README did not list. - Add feedback to the table of contents. - Running tests: `pip install -e .` does not install pytest. Use the Makefile targets. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: adityamishra-hydradb <[email protected]>
The workflow read `secrets.PYPI_API_TOKEN`, which no longer exists. The org secret is `PYPI_TOKEN`. With the token missing, the PyPI step was skipped and the run still passed, so PyPI stayed on 0.1.0 while GitHub releases moved on. The step now reads `PYPI_TOKEN` and fails the run when the token is missing or twine refuses the upload. It still runs after the wheel is attached to the GitHub release, so the curl installer is not blocked by a PyPI failure. `--skip-existing` lets a re-run finish when the version is already on PyPI. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: adityamishra-hydradb <[email protected]>
|
@hydra-mira-review review |
|
/devin review |
Mira score 5/5 · 🟢 Good to merge
This PR prepares package publishing for version 0.2.3 and corrects command examples for that release. Publishing uses the organization token and reports failures, while documentation clarifies command options and test setup. Before this ships · 2 to confirm
How this PR works · 4 changes, 2 medium risk, 2 low riskUsers cannot install the current release from PyPI, and several README examples fail with version 1. Reject wheels that report the wrong release version · 🟠 medium risk ·
|
OpenHack SummarySecurity review of ci+docs: publish 0.2.3 to PyPI with the org token, and fix README examples that fail on 0.2.3 (OSS-71). 2 changed files; 0 findings at or above the low reporting threshold. Confidence Score: 5/5No reportable security findings were detected in this scan. Security merge-readiness rubric: 1 = critical, 2 = high, 3 = medium, 4 = low, 5 = no reportable findings. This score reflects scan findings, not a guarantee of correctness or complete coverage. Files Needing Attention: None Important Files Changed
Last reviewed commit: 91167e7 · View review on OpenHack
|
…g (OSS-71) `hydradb --version` prints `__version__` from src/hydradb_cli/__init__.py, which is kept by hand next to pyproject.toml. The workflow only checked the wheel's file name, which comes from pyproject.toml. The new curl installer (OSS-69) checks `hydradb --version` after install, so one missed bump would make every curl install of that release fail. The workflow now installs the built wheel in a fresh venv and requires the last word of `--version` to equal the tag, before anything is published. Found in the OSS-69 review. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: adityamishra-hydradb <[email protected]>
|
@hydra-mira-review review |
|
/devin review |
Signed-off-by: Aditya Mishra <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
7c5131b to
5188ea7
Compare
For humans
This prepares the 0.2.3 release (Linear OSS-71: "released 0.2.0 lags main").
mainis 0.2.3 with 17 merged PRs that no user has, because the last release is v0.2.0. Two things blocked the release:PyPI publishing was silently off.
publish.ymlreadsecrets.PYPI_API_TOKEN, which no longer exists. The organization secret isPYPI_TOKEN. With no token, the PyPI step was skipped and the run still went green, so PyPI stayed on 0.1.0. Now the step readsPYPI_TOKENand fails the run if the token is missing or the upload is refused. It still runs after the wheel is attached to the GitHub release, so the curl installer works even when PyPI fails.--skip-existinglets a re-run finish.Three README examples fail on 0.2.3. They were checked against a 0.2.3 wheel built from
mainand the prod API:hydradb feedback <id> --rating positiveis refused: feedback needs-f,--ground-truth-answeror--ground-truth-source-id.hydradb graph query ... --output jsonfails with "No such option":--outputis global and goes before the command.hydradb listwithout--kindreturns knowledge only; memories need--kind memoryand come back underuser_memories.The commit also adds the missing
database delete-collectionandconnectors resource add --namerows, and fixes the test steps (pip install -e .does not install pytest; use the Makefile).PyPI project
hydradb-cliis ours (author[email protected]; its 0.1.0 source is byte-identical to commit 2d1cdfa). PyPI releases were paused in July because the old token was gone; Soham OK'd resuming them (12-02).After merge: cut the
v0.2.3GitHub release frommain(after a last user-path check), confirm the wheel is on the release and on PyPI, then update the README's "PyPI releases are paused" note and the docs pages (separate PR).For agents
actionlintpasses on.github/workflows/publish.yml.~/oss-maintenance/p0/OSS-69-REPORT.md(0.2.3 wheel vs prod, 68 commands).🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.