Skip to content

ci: add shared build, lint, verify and smoke workflows for Python, Java and Node - #386

Merged
jimisola merged 15 commits into
mainfrom
ci/385-shared-python-build
Nov 23, 2026
Merged

jimisola merged 15 commits into
mainfrom
ci/385-shared-python-build

Conversation

@jimisola

@jimisola jimisola commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Requested by Jimisola · project thread

Description

Part of #385. Brings the shared workflows up to what the repos run inline, with one place defining versions, the test matrix and the Windows/macOS smoke. Same shape for every language: jobs lint, build (a test (<ver>) matrix, then build), reqstool, smoke, validate-openspec and an aggregate ci.

Python (python-build-hatch, python-build-poetry, python-lint, python-smoke): python-versions matrix 3.13/3.14/3.15, build/coverage on the latest release, pinned hatch/Poetry, post-test-command, wheel smoke on Windows/macOS.
Java (java-build-maven, java-build-gradle, java-lint, new java-smoke): java-versions / java-version on the latest LTS (25), post-test-command, build-tool for lint. The callers compile to the same Java 25 (breaking for consumers: Java 25+ needed).
Node (typescript-build, typescript-lint, new typescript-smoke): node-versions / node-version on the latest LTS (26), post-test-command; existing inputs unchanged. tsc stays a per-repo devDependency.
Shared: common-reqstool-verify.yml (pypi/main matrix, build-directory input), install-reqstool on Python 3.15, Renovate preset: no python cap, Java LTS allow-list (21/25/29), Node even majors only (validated with renovate-config-validator).

Callers: python-decorators#113, python-hatch-plugin#125, python-poetry-plugin#172, client#507, java-annotations#215, java-maven-plugin#227, java-gradle-plugin#110, typescript-tags#216, vscode#186 (all draft, all green on Linux, Windows and macOS). safe-settings: #389 (draft; requires ci).

Fixes #385 (workflows). Drift guard, the grouped Renovate "tool versions" rule and a .github self-test on Windows/macOS are follow-ups.

Test plan

Every migrated repo runs these workflows end to end, including smoke on windows-latest and macos-latest. The Windows runs found real bugs, fixed in the repos (path separators, line endings, encoding, spawnSync('npm')). The unpinned-ref CodeQL alerts on the caller PRs clear once callers pin to the release SHA after this merges.

Notes for the merge

  • Merge main into this branch first (it is behind).
  • History was rewritten once, with approval, to add the missing sign-off on one commit (DCO is green now). Commit "ci: shared java build, lint and smoke workflows" is authored and signed off as Claude.
  • Order: this PR, release, pin callers to the release SHA, then ci(safe-settings): require the ci gate instead of build and lint contexts #389 and the repo PRs.

Checklist

—
Written by @jimisola together with Claude. I've reviewed this reply and the fix myself before posting.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Mt2FAXPoMhrbjtWKhBTwZM

jimisola and others added 7 commits November 22, 2026 04:14
@jimisola jimisola self-assigned this Nov 22, 2026
Comment thread .github/workflows/python-smoke.yml Fixed
The artifact download in these workflows follows a checkout of the caller's
ref; the default checkout (empty ref input) is the same commit without
naming github.ref explicitly.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mt2FAXPoMhrbjtWKhBTwZM
Signed-off-by: Jimisola <[email protected]>
Comment thread .github/workflows/python-smoke.yml Fixed
jimisola and others added 3 commits November 22, 2026 09:28
A relative path is read by Poetry as a package name.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mt2FAXPoMhrbjtWKhBTwZM
Signed-off-by: Jimisola <[email protected]>
Plugin e2e tests install the built wheel/sdist from dist/.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mt2FAXPoMhrbjtWKhBTwZM
Signed-off-by: Jimisola <[email protected]>
Both only need the caller's own commit. Removing the input leaves a plain
default checkout; nothing downstream consumes a caller-supplied ref (no
pull_request_target/workflow_run caller exists, token is contents: read,
no secrets are passed).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mt2FAXPoMhrbjtWKhBTwZM
Signed-off-by: Jimisola <[email protected]>
jimisola and others added 3 commits November 22, 2026 09:48
Java build workflows get a test matrix (java-versions), a build job on
java-version, post-test-command, and a <name>-build artifact for the reqstool
verify job. Adds java-smoke.yml and a build-tool input on java-lint.
common-reqstool-verify gets build-directory (target for Maven).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mt2FAXPoMhrbjtWKhBTwZM
Signed-off-by: Jimisola <[email protected]>
Add node-versions test matrix, post-test-command and a -build artifact
to typescript-build; working-directory to typescript-lint; and a generic
typescript-smoke for Windows/macOS. Existing inputs keep their behavior.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mt2FAXPoMhrbjtWKhBTwZM
Signed-off-by: Jimisola <[email protected]>
Drop the python <=3.13 cap and replace java <=21 with an LTS allow-list;
only even Node majors are accepted.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mt2FAXPoMhrbjtWKhBTwZM
Signed-off-by: Jimisola <[email protected]>
@jimisola jimisola changed the title ci: add shared Python verify, smoke and test matrix ci: add shared build, lint, verify and smoke workflows for Python, Java and Node Nov 22, 2026
@jimisola
jimisola force-pushed the ci/385-shared-python-build branch 2 times, most recently from 9a5cc5e to 0ea8516 Compare November 23, 2026 07:23
@jimisola
jimisola marked this pull request as ready for review November 23, 2026 07:39
@jimisola
jimisola merged commit 193abb8 into main Nov 23, 2026
9 checks passed
@jimisola
jimisola deleted the ci/385-shared-python-build branch November 23, 2026 07:40
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.

ci: migrate Python and Java repos to shared build/lint workflows, with Windows/macOS coverage from one place

2 participants