Skip to content

ci: add CI workflow and refresh the dependency lock - #26

Merged
willleeney merged 5 commits into
mainfrom
ci/add-workflow-and-refresh-lock
Oct 29, 2026
Merged

willleeney merged 5 commits into
mainfrom
ci/add-workflow-and-refresh-lock

Conversation

@willleeney

@willleeney willleeney commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This repo had no CI — no .github directory, 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.lock was 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 unused google.genai.types import in tests/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) uses type statements, so mypy died on a syntax error inside numpy's own .pyi:

numpy/__init__.pyi:737: error: Type statement is only supported in Python 3.12 and greater  [syntax]

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:

Python numpy resolved ruff mypy pytest
3.10 2.2.6 pass pass 32 passed
3.11 2.2.6 pass pass 32 passed
3.12 2.5.3 pass pass 32 passed
3.13 2.5.3 pass pass 32 passed

Integration smoke test — documented, not wired

The suite here replaces StackOneToolSet with a MagicMock; 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-conformance carries 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-conformance is a private repository and this repo has no secret configured to clone it (gh secret list is 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 format is 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 with uv sync --locked, so a dependency change that isn't re-locked can no longer merge.

Dependencies

  • uv.lock was refreshed to stackone-ai 2.10.1 and google-adk 2.9.0; after merging main it also carries stackone-ai's <3.0.0 cap 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).
  • pyjwt 2.15.1, urllib3 2.8.0, authlib 1.9.1, certifi 2026.10.23, and truststore 0.10.5 are pinned to clear their remaining open alerts; all 32 tests still pass.

Notes

  • Removes mypy's hardcoded python_version = "3.10" and fixes three pre-existing ruff violations so the gates are green on arrival.
  • The integration smoke test is documented in the README but not wired into CI; this repo has no credential to clone sdk-conformance.
  • The job is capped at 15 minutes and checkout discards the token for later steps; ruff format is not gated because two files carry pre-existing formatting drift.

Written for commit 97e8345. Summary will update on new commits.

View guided diff Turn on auto-fix

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.
Copilot AI lite review requested due to automatic review settings September 14, 2026 07:32
Comment thread .github/workflows/ci.yaml Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 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.

Comment thread README.md
Comment on lines +274 to +276
git clone git@github.com:StackOneHQ/sdk-conformance.git
cd sdk-conformance && pnpm install
./scripts/run_smoke.sh adk

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Comment thread .github/workflows/ci.yaml Resolved
Comment thread README.md Resolved
Comment thread .github/workflows/ci.yaml Resolved
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 glebedel 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.

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.

Comment thread uv.lock

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 97e8345: truststore is locked at 0.10.5. authlib (1.9.1) and certifi (2026.10.23) were moved past their advisories in 740a1dd.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

@willleeney
willleeney merged commit b348b22 into main Oct 29, 2026
6 checks passed
willleeney added a commit that referenced this pull request Oct 29, 2026
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.

3 participants