Repository navigation
ci: add CI workflow and refresh the dependency lock - #26
Conversation
There was no CI in this repo — nothing ran on a pull request. Adds a workflow gating lint, type check and tests across the supported 3.10-3.13 matrix. `uv sync --locked` is used so a dependency change that was not re-locked cannot merge. That immediately mattered: uv.lock had drifted to stackone-ai 2.8.0 while 2.10.1 was released, and google-adk 1.31.1 while 2.9.0 was released. Both are refreshed here and the suite passes on the new versions, so the drift was stale pinning rather than an incompatibility. Two fixes were needed to make the gates green rather than red on arrival: - Three pre-existing ruff violations (a 113-char line, an unsorted import block, an unused `google.genai.types` import). - mypy's hardcoded `python_version = "3.10"`. It made mypy parse dependency stubs with 3.10 grammar while the environment can hold 3.12-only packages — numpy >=2.5 (requires-python >=3.12, reached transitively via stackone-ai) uses `type` statements, which failed as a syntax error. Unsetting it targets the running interpreter instead, so each matrix job checks against its own version. Verified on 3.10 (numpy 2.2.6) through 3.13 (numpy 2.5.3). `ruff format` is deliberately not gated: two files carry pre-existing formatting drift, and reformatting them is unrelated to adding CI.
There was a problem hiding this comment.
🟡 Changes recommended
One or more issues must be addressed before approval.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds CI checks across Python 3.10–3.13 and refreshes dependency locking.
Changes:
- Adds locked dependency installation, linting, mypy, and pytest workflow.
- Updates dependencies and mypy configuration.
- Documents integration smoke-test execution and fixes lint issues.
File summaries
| File | Description |
|---|---|
| tests/test_tools.py | Updated as part of this pull request. |
| stackone_adk/plugin.py | Updated as part of this pull request. |
| README.md | Updated as part of this pull request. |
| pyproject.toml | Updated as part of this pull request. |
| .github/workflows/ci.yaml | Updated as part of this pull request. |
Review details
- Files reviewed: 5/6 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| git clone git@github.com:StackOneHQ/sdk-conformance.git | ||
| cd sdk-conformance && pnpm install | ||
| ./scripts/run_smoke.sh adk |
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
Keeps main's stackone-ai <3.0.0 cap and 0.2.1 version from #27. uv.lock is regenerated rather than hand-merged, with pyjwt 2.15.1 and urllib3 2.8.0 to clear their remaining open alerts. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
glebedel
left a comment
There was a problem hiding this comment.
Merged main in to resolve the conflict with #27 (keeps the stackone-ai <3.0.0 cap and 0.2.1). Re-locked with pyjwt 2.15.1 and urllib3 2.8.0 to clear their remaining alerts. CI green on 3.10-3.13. This supersedes the open Dependabot PRs.
…lones the smoke test's siblings
There was a problem hiding this comment.
2 Open source vulnerabilities detected - high severity
Aikido detected 2 vulnerabilities across 1 package, it includes 1 high and 1 medium vulnerabilities.
Details
Remediation:
truststore— 2 CVEs (high) — fixed in 0.10.5
Reply @AikidoSec ignore: [REASON] to ignore this issue.
More info
There was a problem hiding this comment.
0 issues found across 2 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.
Auto-approved: Adds CI gating ruff, mypy, and pytest on Python 3.10–3.13 with uv sync --locked, refreshes the stale uv.lock, and applies the config/lint cleanups needed to get CI green. Limited to tooling, docs, and a generated lockfile; the dismissed README finding is fixed in the diff.
View guided diff | Turn on auto-fix | Re-trigger cubic
Summary
This repo had no CI — no
.githubdirectory, nothing running on a pull request. This adds a workflow gating lint, type check and tests across the supported 3.10–3.13 matrix, and refreshes a lockfile that had gone stale.Lockfile drift
uv.lockwas pinned to stackone-ai 2.8.0 (2.10.1 released) and google-adk 1.31.1 (2.9.0 released). Both are refreshed here.Nothing broke on the newer versions — all 32 tests pass on the upgraded stack, including across a major google-adk bump. The drift was stale pinning, not an incompatibility. The workflow uses
uv sync --locked, so a dependency change that was not re-locked can no longer merge silently.Two fixes needed to make CI green on arrival
Adding gates that fail immediately would be pointless, so:
Three pre-existing ruff violations — a 113-char line in
plugin.py, an unsorted import block, and an unusedgoogle.genai.typesimport intests/test_tools.py.mypy's hardcoded
python_version = "3.10". This one is worth reading. It forced mypy to parse dependency stubs with 3.10 grammar while the environment can legitimately contain 3.12-only packages. numpy ≥2.5 (requires-python >=3.12, reached transitively via stackone-ai) usestypestatements, so mypy died on a syntax error inside numpy's own.pyi:The pin was incoherent — it asserted "check as 3.10" while the installed tree could be 3.12-only. Unsetting it targets the running interpreter, so each matrix job checks against its own version. That is also broader coverage than the pin gave. Verified end to end:
Integration smoke test — documented, not wired
The suite here replaces
StackOneToolSetwith aMagicMock; the real SDK is imported exactly once, for an exception class. It therefore passes regardless of SDK behaviour and cannot catch an SDK regression.sdk-conformancecarries a smoke script that drives the real SDK through the real plugin against a mock StackOne API. I ran it against this branch's refreshed dependencies — it passes, including that the plugin's declaration carries a raw JSON Schema rather than a lossy rebuild.It is not wired into CI:
sdk-conformanceis a private repository and this repo has no secret configured to clone it (gh secret listis empty, and I do not have admin here to add one). Wiring it needs a deploy key or PAT added first. Until then the README documents how to run it locally.Deliberately not done
ruff formatis not gated — two files carry pre-existing formatting drift, and reformatting them is unrelated to adding CI. Worth a separate pass if you want formatting enforced.🤖 Generated with Claude Code
Summary by cubic
Adds CI to this repo (previously none) and refreshes a stale
uv.lock. The workflow gates ruff, mypy, and pytest on Python 3.10–3.13 withuv sync --locked, so a dependency change that isn't re-locked can no longer merge.Dependencies
uv.lockwas refreshed to stackone-ai 2.10.1 and google-adk 2.9.0; after merging main it also carries stackone-ai's<3.0.0cap and the 0.2.1 version from fix: pin stackone-ai below 3.0.0 ahead of the SDK v3 breaking release #27 (regenerated, not hand-merged).Notes
python_version = "3.10"and fixes three pre-existing ruff violations so the gates are green on arrival.sdk-conformance.ruff formatis not gated because two files carry pre-existing formatting drift.Written for commit 97e8345. Summary will update on new commits.