Repository navigation
fix(generator): lint-clean Python template, check all app templates in CI - #101
Merged
Merged
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
andiikaa
added a commit
that referenced
this pull request
Nov 24, 2026
…go test, wider triggers Review of #101: - no buildx cache: ~1.5 GB of Actions cache per PR, slower to export than to rebuild, and it kept the weekly run from resolving dependencies anew - python: uv sync with the image's Python (was the runner's 3.14), import the app to catch NOVA SDK API changes ruff can't see - rust: cargo test (the README asks for it); clear error if the Dockerfile names no rust:<version> - triggers: also pkg/appenv and pkg/cmd/app.go on PRs, every push to main - concurrency like ci.yml, so queued main/scheduled runs aren't cancelled - the app's setup-go caches the app's modules
andiikaa
added a commit
that referenced
this pull request
Nov 24, 2026
…go test, wider triggers Review of #101: - no buildx cache: ~1.5 GB of Actions cache per PR, slower to export than to rebuild, and it kept the weekly run from resolving dependencies anew - python: uv sync with the image's Python (was the runner's 3.14), import the app to catch NOVA SDK API changes ruff can't see - rust: cargo test (the README asks for it); clear error if the Dockerfile names no rust:<version> - triggers: also pkg/appenv and pkg/cmd/app.go on PRs, every push to main - concurrency like ci.yml, so queued main/scheduled runs aren't cancelled - the app's setup-go caches the app's modules
andiikaa
force-pushed
the
ci/template-checks
branch
from
November 24, 2026 14:32
cccd7d8 to
d63a847
Compare
… and weekly The e2e test only builds the default python app, so template breakage went unnoticed (the Next.js template's own lint has been failing). The Templates workflow generates an app from each template with the CLI of the commit, runs the checks a developer of that app would run and builds its image like 'nova app install': - nextjs: pnpm install (frozen), lint, tsc, knip, build - python: uv sync, ruff check, ruff format --check - golang: go build, go vet, gofmt - rust: cargo build --locked, clippy -D warnings, fmt (toolchain of the Dockerfile) It runs on PRs touching pkg/generator, on main and weekly (dependency ranges, no Python lockfile). Fixes the two findings in the python template: import grouping (ruff I001) and a line ruff format would split.
…go test, wider triggers Review of #101: - no buildx cache: ~1.5 GB of Actions cache per PR, slower to export than to rebuild, and it kept the weekly run from resolving dependencies anew - python: uv sync with the image's Python (was the runner's 3.14), import the app to catch NOVA SDK API changes ruff can't see - rust: cargo test (the README asks for it); clear error if the Dockerfile names no rust:<version> - triggers: also pkg/appenv and pkg/cmd/app.go on PRs, every push to main - concurrency like ci.yml, so queued main/scheduled runs aren't cancelled - the app's setup-go caches the app's modules
andiikaa
force-pushed
the
ci/template-checks
branch
from
November 24, 2026 14:46
d63a847 to
89acd9e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI never built the app templates apart from the default Python app in the e2e test, so the Next.js template's own
pnpm lintfailed unnoticed (#99).New workflow
Templates(.github/workflows/templates.yml)One matrix job per generator: generate an app with the CLI of this commit, run the checks a developer of that app would run, then
docker buildits image the waynova app installdoes.nextjs_apppnpm install --frozen-lockfile,lint,tsc,knip,build(pnpm 10.24.0 like the Dockerfile; pnpm fetches the Node version frompnpm-workspace.yaml)python_appuv sync,ruff check,ruff format --checkgolang_appgo build,go vet,gofmt(Go version from the generatedgo.mod)rust_appcargo build --locked,clippy -D warnings,cargo fmt --check(toolchain read from the template's Dockerfile)Runs on PRs that touch
pkg/generator/**or the workflow, onmain, weekly (Monday 04:17 UTC) and manually. The weekly run is there because the templates' dependencies move without a change here: version ranges, and the Python template has no lockfile.fail-fast: false, and the image builds use the GitHub Actions cache per template.Python template
Two findings of its own linter, fixed:
app/register_programs.py: import grouping (ruffI001).app/programs/start_here.py: the trailing comment made a line too long forruff format, so the comment moved above the line.Verified locally
rust:1.99-trixie).app.nextjs_appwill be red until fix(generator): make the Next.js template pass its own lint again #99 is merged, which is exactly what this job is for. I'll rebase afterwards.