Skip to content

ci(go): run go vet and the contract checks beside Go lint - #3931

Merged
Quick104 merged 1 commit into
mainfrom
ci/go-vet-job
Nov 10, 2026
Merged

Quick104 merged 1 commit into
mainfrom
ci/go-vet-job

Conversation

@Quick104

@Quick104 Quick104 commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Go lint is the job that holds up CI most often: it finished last in a third of passing pull request runs, at a median of 8.3 minutes and a p90 of 19 minutes from the start of the run. It ran whole-tree go vet, golangci-lint on the changed lines, the router-recovery rule over the whole tree, and the contract checks one after another. This change moves go vet, the contract checks and govulncheck into a new job that runs beside it.

Approach

The new Go vet and contracts job runs whole-tree go vet, the contract checks and, on main and the schedule, govulncheck. Go lint keeps gofmt and the two golangci-lint runs. The vet job has its own build cache, which the cache pruning on main now keeps one of, and it is in the job list the CI result check requires.

Go lint's step took a median of 377 s, about 150 s of it in go vet. A pull request that changes go.mod or go.sum will still spend about 14 minutes in Go lint, because both golangci-lint runs re-analyse the whole tree when the dependency set changes.

This adds one job per run; #3930 removes three.

CI runs trusted-linux-ci.yml and the CI tools from main, so this pull request's own checks still run the old layout. The change takes effect after merge. #3199 and #3200 also edit go-checks.mk; expect a small conflict for whichever lands second.

Validation

  • actionlint 1.7.12: no findings.
  • CI tools unit tests: pass.
  • Not exercised by this pull request's own CI (see above).
Measurements behind this change (Nov 3–10, 479 passing pull request runs)
Job that finished last Runs
Go lint 167
Go test 107
Go DB pins 95
Web test / Web 94

Finish time from run start, p50 / p90: Go lint 497 s / 1145 s, Go test 456 s / 903 s, Go DB pins 424 s / 920 s.

The 16 runs where Go lint's step took over 15 minutes all changed go.mod/go.sum: go vet about 3.5 min, lint-changed on the full tree about 5 min, router recovery about 9 min.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-3931/

Risks

  • Until the first passing push to main saves a vet cache, pull request runs of the new job start cold.
  • Check names: Go vet and contracts is new; Go lint no longer runs vet or the contracts. Merges are gated on CI result.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code; Claude Code CLI as a read-only advisor
  • Model(s): claude-opus-5-5; claude-fable-5-2
  • Involvement: Fully AI-generated; human review pending
  • Adversarial review: claude-fable-5-2 (medium effort, read-only) reviewed the full diff. It found the new job complete (build dependencies, embed stub, history depth, cache name, prune pattern, required-job list) and asked for evidence that Go lint is the critical path, which the measurements above give. A stale comment it found is fixed. No other review.

🤖 Generated with Claude Code

Go lint ran whole-tree go vet, golangci-lint on the changed lines, the
router-recovery rule over the whole tree, and the contract checks one after
another, and it was the last job to finish in about a third of pull request
runs. A pull request that changed go.mod took over 15 minutes in that step.

A new Go vet and contracts job runs whole-tree go vet, the contract checks,
and govulncheck on main and the schedule; Go lint keeps gofmt and the two
golangci-lint runs. The vet job has its own build cache, which the cache
pruning on main now keeps one of.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e2b037e2-8358-4b76-a6e3-1e89c08b745b
Commits

Reviewing files that changed from the base of the PR and between 30a6abd and e2974d4.

Files selected for processing: 4

  • .github/actions/ci-tools/go-checks.mk
  • .github/actions/ci-tools/select-jobs.py
  • .github/workflows/trusted-linux-ci.yml
  • CONTRIBUTING.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T04:43:09.423699Z e2974d4 PR opened
🔒 Security Review ✅ Completed 2026-11-10T04:45:23.710988Z e2974d4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Nov 10, 2026
@silo-kody

silo-kody Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

@Quick104
Quick104 merged commit 6c1f4c9 into main Nov 10, 2026
21 checks passed
@Quick104
Quick104 deleted the ci/go-vet-job branch November 10, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M 50–199 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant