Repository navigation
Conversation
mbevc1
marked this pull request as ready for review
December 4, 2026 20:53
Contributor
|
Claude encountered an error after 3m 5s —— View job Follow-up review on PR #1451
|
mbevc1
force-pushed
the
20261204_faster-test-job
branch
from
December 4, 2026 20:54
8e56e76 to
7f35ae0
Compare
mbevc1
marked this pull request as draft
December 4, 2026 20:54
mbevc1
force-pushed
the
20261204_faster-test-job
branch
2 times, most recently
from
December 4, 2026 21:00
570de2e to
42ec4f4
Compare
mbevc1
marked this pull request as ready for review
December 4, 2026 21:01
AlexKantor87
approved these changes
Dec 4, 2026
mbevc1
force-pushed
the
20261204_faster-test-job
branch
2 times, most recently
from
December 4, 2026 22:08
a5b0239 to
6df0534
Compare
mbevc1
enabled auto-merge (squash)
December 4, 2026 22:09
go install gotestsum@latest resolved a new version whenever one was published, so a test run could change without a commit, and no cached build of it could be relied on.
The Test job spent about 2 minutes on go mod tidy, gofmt and go vet before any test compiled, then started the server and only afterwards compiled the tests. It also restored setup-go's shared cache, which the first job to finish saves and which therefore held no test builds. - make test_integration_ci runs the full suite without deps and vet, and compiles the tests while the server starts. - The Lint job now vets Linux as well as macOS and Windows, so go vet still covers every platform, and checks go mod tidy -diff, which CI never checked before (the Test job tidied silently). - The Test job has a module cache keyed on go.sum and a build cache that falls back to the previous go.sum's, both saved from main only.
Nothing in the job runs Go: it merges digests, scans, attests and runs the smoke tests in the built image. The step cost about 12s per run.
…e help which gotestsum picked any copy on PATH ahead of the one ensure_gotestsum installs, so the version pin could be bypassed. The path now points at go install's own target directory. test_integration_ci was listed in make help, although it leaves ~/.kosli.yml in place and needs GNU make 4, which macOS does not ship.
A version variable in the Makefile pinned gotestsum, but Dependabot cannot read it, so the pin would have gone stale until someone bumped it by hand. tools/go.mod declares gotestsum as a Go tool, with its dependency hashes in tools/go.sum, and make runs it with go tool -modfile. Dependabot watches the new directory, the Lint job checks the module is tidy, and the Test job's cache keys include tools/go.sum. Being a separate module, it adds nothing to the CLI's own go.mod.
mbevc1
force-pushed
the
20261204_faster-test-job
branch
from
December 4, 2026 22:23
25bfdd2 to
ed35e82
Compare
This branch has not been deployed
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.

Follows #1450. Shortens the Test job, which now sets the length of the Main and Release pipelines, without removing a check.
On run 47420088402 the Test job took 515s: 116s of
go mod tidy,gofmtandgo vet, 58s starting the server, 51s compiling the tests, 240s running them.make test_integration_ci, which skipsdepsandvet. The Lint job now runsgo vetfor Linux as well as macOS and Windows, so vet still covers every platform.go mod tidy -diffin Lint. The Test job used to tidy silently, so drift was never reported.setup-gokeys one cache for every job ongo.sumalone, and the first job to finish saves it, without the test builds. The Test job now has a module cache keyed ongo.sumand a build cache that falls back to the previousgo.sum's, both saved frommainonly.make -j2).tools/go.modinstead of@latest, and runs throughgo tool. Dependabot watches/tools, and Lint checks the module is tidy.make test_integrationandmake test_integration_fullare unchanged for local use.Notes for review:
mainrun saves them, so the Test job compiles cold until this merges. The Lint job is also slower until its renamed vet cache is saved onmain.godirective intools/go.modmust follow the rootgo.modby hand; Dependabot does not bump it.Checklist
charts/k8s-reporter/) updated, if needed. Note: these changes live in a separate PR