High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
test(e2e-runner): the dockerfile cache census skips nested checkouts through srccensus.ExcludedDir instead of a name list
Luigi Agosti405c4459fecf
diff --git a/tests/tools/runner/internal/e2e/dockerfile_gocache_test.go b/tests/tools/runner/internal/e2e/dockerfile_gocache_test.goindex aba9ff6c..161c9631 100644--- a/tests/tools/runner/internal/e2e/dockerfile_gocache_test.go+++ b/tests/tools/runner/internal/e2e/dockerfile_gocache_test.go@@ -6,11 +6,13 @@ import ("path/filepath""strings""testing"++ "github.com/pinchtab/pinchtab/internal/srccensus")const goBuildCacheMount = "--mount=type=cache,target=/root/.cache/go-build"-var dockerfileWalkSkips = map[string]bool{".git": true, ".tools": true, "node_modules": true, "dist": true, "tmp": true}+var dockerfileWalkSkips = map[string]bool{".tools": true, "tmp": true}func isDockerfileName(name string) bool {return name == "Dockerfile" || strings.HasPrefix(name, "Dockerfile.") || strings.HasSuffix(name, ".Dockerfile")@@ -59,7 +61,7 @@ func TestEveryDockerfileGoBuildKeepsItsCompileCacheAcrossBuilds(t *testing.T) {return err}if d.IsDir() {- if dockerfileWalkSkips[d.Name()] {+ if path != root && (srccensus.ExcludedDir(path) || dockerfileWalkSkips[d.Name()]) {return fs.SkipDir}return nil