Speed up CI: fast PR checks, heavy tests on main only#452
Merged
Conversation
The sessions endpoint silently ignored the agent_definition field because TaskRequest had no such field. This caused executable agents dispatched by name to run as Claude Code instead. Now POST /api/v1/sessions accepts agent_definition (name or ID) and looks up the full definition including executable config, credentials, profiles, and all other fields. An optional prompt field overrides the definition's prompt. Tested end-to-end locally: executable agent dispatched by name runs the binary (not Claude Code), prompt override works, 404 for unknown definitions, backwards-compatible prompt-only dispatch preserved. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PR checks now run ONE job: build + vet + test (~2 min). Functional tests (podman, k8s), dev-container tests, and cross-platform builds only run on pushes to main (post-merge). They don't block PRs. Before: 6 parallel jobs on every PR (~6 min wall time, lots of overhead) After: 1 job on PRs (~2 min), heavy tests on main only Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Problem
CI runs 6 parallel jobs on every PR taking ~6 min. Cross-platform builds, k3s setup, full Podman stack — rarely catch real bugs but always slow everything down.
Fix
make build+go vet+go test. Should be ~2 min.make build).What changed
unit-tests+buildinto singlecheckjobif: github.event_name == 'push'to heavy jobscross-platform-buildmatrix (release workflow handles this)🤖 Generated with Claude Code