aboutsummaryrefslogtreecommitdiffstats
path: root/syz-ci/jobs.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-07-15 16:43:33 +0200
committerTaras Madan <tarasmadan@google.com>2025-07-17 08:31:25 +0000
commitabd11cfd08430ec5f9d2c6dbd0e0f798816922d1 (patch)
tree522a8cc072d07d85c8a1d37b5b3ab89483599b48 /syz-ci/jobs.go
parenta81f309b57265e5760b926274e1f1681e7550e41 (diff)
all: apply linter auto fixes
./tools/syz-env bin/golangci-lint run ./... --fix
Diffstat (limited to 'syz-ci/jobs.go')
-rw-r--r--syz-ci/jobs.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/syz-ci/jobs.go b/syz-ci/jobs.go
index a9bb23abc..ee2e861b3 100644
--- a/syz-ci/jobs.go
+++ b/syz-ci/jobs.go
@@ -461,7 +461,7 @@ func (jp *JobProcessor) bisect(job *Job, mgrcfg *mgrconfig.Config) error {
cfg := &bisect.Config{
Trace: &debugtracer.GenericTracer{
TraceWriter: io.MultiWriter(trace, log.VerboseWriter(3)),
- OutDir: osutil.Abs(filepath.Join("jobs", "debug", strings.Replace(req.ID, "|", "_", -1))),
+ OutDir: osutil.Abs(filepath.Join("jobs", "debug", strings.ReplaceAll(req.ID, "|", "_"))),
},
// Out of 1049 cause bisections that we have now:
// - 891 finished under 6h (84.9%)
@@ -641,9 +641,9 @@ func (jp *JobProcessor) testPatch(job *Job, mgrcfg *mgrconfig.Config) error {
// Testing of patches for these bugs fail now because of the config, so we disable it as a work-around.
// Ideally we have a new pahole and then we can remove this hack. That's issue #2096.
// pkg/vcs/linux.go also disables it for the bisection process.
- req.KernelConfig = bytes.Replace(req.KernelConfig,
+ req.KernelConfig = bytes.ReplaceAll(req.KernelConfig,
[]byte("CONFIG_DEBUG_INFO_BTF=y"),
- []byte("# CONFIG_DEBUG_INFO_BTF is not set"), -1)
+ []byte("# CONFIG_DEBUG_INFO_BTF is not set"))
log.Logf(0, "job: building kernel...")
kernelConfig, details, err := env.BuildKernel(buildCfg)