Skip to content

Dev#19

Merged
Snider merged 2 commits intomainfrom
dev
Apr 28, 2026
Merged

Dev#19
Snider merged 2 commits intomainfrom
dev

Conversation

@Snider
Copy link
Copy Markdown
Contributor

@Snider Snider commented Apr 28, 2026

Summary by CodeRabbit

Release Notes

  • Chores
    • Enhanced CI/CD pipeline with expanded test coverage across all packages and added automated code quality checks for imports, naming conventions, and test imports to ensure more thorough validation on all commits and pull requests.

Snider and others added 2 commits April 28, 2026 15:40
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>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 28, 2026

📝 Walkthrough

Walkthrough

The 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

Cohort / File(s) Summary
CI Workflow Enhancement
.github/workflows/ci.yml
Expanded trigger events to include both push and pull_request on main and dev branches. Added go vet ./... step for static analysis. Extended coverage testing from ./tests/... to all packages via go test -coverprofile=coverage.out ./.... Replaced sed post-processing with three drift guard checks (imports, naming, test_imports) executed via shell/Python scripts. Codecov upload configuration retained.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Dev' is vague and generic, providing no meaningful information about the actual changes made to the CI workflow. Replace with a descriptive title that reflects the main changes, such as 'Enhance CI workflow with coverage expansion and drift guard checks' or 'Add go vet and drift guard checks to CI pipeline'.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
.github/workflows/ci.yml (1)

25-29: Consider moving drift guards before go test for 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

📥 Commits

Reviewing files that changed from the base of the PR and between a88c6b1 and d661b70.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

@Snider Snider merged commit c632d19 into main Apr 28, 2026
4 of 5 checks passed
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.

1 participant