Conversation
Tests live alongside production code at the package root after the 2026-04-28 module rename — `./tests/...` matched no packages, so the job exited 1 with "no packages to test". Switch to `./...` and drop the post-rewrite sed. Also: - Trigger on dev pushes and PRs so failures show up before main merge, not after. main-only push trigger meant CI couldn't gate the dev->main promotion. - Add `go vet` step before tests. - Run the SPOR / AX-7 / test-imports drift guards we already enforce locally — keeps drift from landing on main. Co-Authored-By: Virgil <virgil@lethean.io>
📝 WalkthroughWalkthroughThe CI workflow configuration is enhanced to trigger on both push and pull request events for main and dev branches. The test job now includes go vet checks, expands coverage analysis to all packages, and replaces sed post-processing with three drift guard checks (imports, naming, test_imports). Changes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/ci.yml (1)
25-29: Consider moving drift guards beforego testfor fail-fast CI.These checks are deterministic policy guards; running them first usually saves runner time when they fail.
Minimal reorder example
- - name: Run tests with coverage - run: go test -coverprofile=coverage.out ./... - - name: Drift guards (SPOR / AX-7 / test-imports) run: | bash tests/cli/imports/check.sh python3 tests/cli/naming/check.py python3 tests/cli/test_imports/check.py + + - name: Run tests with coverage + run: go test -coverprofile=coverage.out ./...🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/ci.yml around lines 25 - 29, Move the deterministic "Drift guards (SPOR / AX-7 / test-imports)" step so it runs before the "go test" step to fail fast and save CI time; locate the job step named "Drift guards (SPOR / AX-7 / test-imports)" and reposition it above the step that runs "go test" (the step invoking `go test`) in the same job so the bash/python checks execute prior to running the Go tests.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/ci.yml:
- Around line 25-29: Move the deterministic "Drift guards (SPOR / AX-7 /
test-imports)" step so it runs before the "go test" step to fail fast and save
CI time; locate the job step named "Drift guards (SPOR / AX-7 / test-imports)"
and reposition it above the step that runs "go test" (the step invoking `go
test`) in the same job so the bash/python checks execute prior to running the Go
tests.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c8b14f68-b418-479c-ac3b-1029fa1a32a3
📒 Files selected for processing (1)
.github/workflows/ci.yml



Summary by CodeRabbit
Release Notes