Repository navigation
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This was referenced Oct 15, 2026
Merged
Contributor
Author
|
Heads-up from #974 (fixes #932): it migrates all 16 |
This was referenced Oct 15, 2026
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.
Fixes #923.
The bug
make checkstep 3 wasstaticcheck ./... || echo "staticcheck not installed, skipping...".||fires on any non-zero exit, and staticcheck exits 1 when it reports findings. So the step said "not installed" about an installed tool and passed. CI ran no linter at all. 67 findings had built up on main.The gate
make check-staticcheck(called bymake check):if command -v staticcheck …; then staticcheck ./...; else echo "…skipping…"; fi. Findings now fail the step. Only a missing binary skips, and it says so.ci.yml, after Vet): installs staticcheck 2026.2.2 (v0.8.2) the same way gitleaks is installed (Security workflow downloads the gitleaks binary with no checksum #885). The version and the SHA-256 are both pinned in the workflow, and the hash is not read from the release's.sha256file. I checked the pinned hash against the publishedstaticcheck_linux_amd64.tar.gz.sha256. The binary goes into$RUNNER_TEMPand onto$GITHUB_PATH, with no sudo. CI then runsstaticcheck ./...directly, not the make target, so a missing binary fails in CI instead of skipping.The 67 findings
parser.ParseDir(api_surface_test.go)os.ReadDir+parser.ParseFilewith the same filter. The committed snapshot is unchanged andTestPublicAPISurfacepasses.ecdsa.PublicKey.X/.Y(sporedinstall/windows.go)PublicKey.Bytes()(SEC 104‖X‖Y, already 32 bytes per coordinate). NewTestP256CoordinatesRoundTripFixedWidthround-trips the coordinates throughecdsa.ParseUncompressedPublicKeyand makes sure a leading-zero coordinate occurs. Watched it fail against an unpadded revert that compiles.rsa.DecryptPKCS1v15/EncryptPKCS1v15(aws/windows_password*.go, 3 sites)GetPasswordDatauses PKCS #1 v1.5 by AWS's definition, so it is not ours to change.feature/s3/manager(agent/queue_runner, aws/imagebuilder, pipeline/data_handoff, staging; 16 sites)inUseErrrenamed toerrInUse. ST1005 gets a lint:ignore because the text is EC2's verbatim error, and the classifier must match what EC2 sends.context.Background(). These tests do not exercise nil-context handling.f(x) != f(x)(aws/iam_test.go)errEmptyProcStat,isRecentActivity(agent/agent.go)sys_linux.go, their only caller. These were GOOS-dependent: dead on darwin/windows, live on linux.resume*/collect*vars. Comparing the two trees turned up #935 (filed):spawn sweep resumelacks--max-concurrent-auto.stubBinDNSFailswas orphaned when #718 reversed the mount order.//go:build e2e_tier1 || e2e_tier2 || e2e_tier3, the same constraint asreaper.go.go vet -tags e2e_tier{0,1,2,3} ./test/e2e/is clean for each tier.The lint:ignores are all line-scoped and all cite #923 or #932. None is file-wide. staticcheck reports an ignore that no longer matches anything, so none of them can outlive its reason.
Evidence
staticcheck ./...→ exit 0. Also clean withGOOS=linuxand withGOTOOLCHAIN=go1.26.9 GOOS=linux, which is CI's toolchain. Local is go1.27.2.pkg/ecrref/zz_gate_probe.gowith an unused func, which compiles, mademake check-staticcheckreportfunc deliberatelyUnused923 is unused (U1000)and exit 2. With the probe removed, exit 0.staticcheck not installed, skipping (CI runs the version pinned in .github/workflows/ci.yml)and exits 0.make check: everything passes except the knownTestGenerateWrapper_ChownFixesCrossUIDStickyUnlink_Docker, which needs a running Docker daemon.make check-nested: all 9 nested modules clean.Caveats
make checkstep and aci.ymlstep at the same spots (check:recipe, and after Vet around line 206). Resolve by keeping all of them.terminateByTag,fileExists,spawnEnv.seedBucket), whichstaticcheck -tags …reports. Nested modules are not linted. Neither is in scope here.GOOS=windows staticcheck ./...still fails to compile two test files. That is Two test files don't compile for GOOS=windows (syscall.Stat_t, SysProcAttr.Setpgid); no gate vets non-default GOOS #925, fixed separately.