Skip to content

[Code Quality] Fix non-wrapping fmt.Errorf calls in compiler_custom_jobs.go (8+ instances) #46612

Description

@github-actions

Description

pkg/workflow/compiler_custom_jobs.go contains 8+ calls to fmt.Errorf without the %w verb (lines 280, 444, 594, 669+). These break error chain inspection and are inconsistent with compiler_jobs.go which wraps all errors correctly.

Suggested Changes

Audit all fmt.Errorf calls in compiler_custom_jobs.go and replace non-wrapping forms with fmt.Errorf("...: %w", err) where there is an underlying error to wrap.

Files Affected

  • pkg/workflow/compiler_custom_jobs.go (lines ~280, 444, 594, 669+)

Success Criteria

  • All fmt.Errorf calls that have a cause error use %w for wrapping
  • make golint-custom passes for changed files
  • All existing tests continue to pass
  • Zero non-wrapping fmt.Errorf with a cause argument in compiler_custom_jobs.go

Source

Extracted from Daily Compiler Code Quality Report - 2026-07-19

Priority

Medium — improves error chain transparency for debugging; consistent with the codebase standard established in compiler_jobs.go

🔍 Task mining by Discussion Task Miner - Code Quality Improvement Agent · 48.6 AIC · ⌖ 5.07 AIC · ⊞ 7K ·

  • expires on Jul 20, 2026, 5:13 AM UTC-08:00

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions