Skip to content

fix: enforce error handling, polling, and deletion policy patterns - #215

Merged
mchmarny merged 1 commit into
mainfrom
fix/code-pattern-violations
Feb 25, 2026
Merged

fix: enforce error handling, polling, and deletion policy patterns#215
mchmarny merged 1 commit into
mainfrom
fix/code-pattern-violations

Conversation

@mchmarny

Copy link
Copy Markdown
Member

Summary

  • Replace fmt.Errorf with pkg/errors structured errors in bundler validations
  • Wrap bare error returns in pkg/k8s/agent, pkg/validator/agent, and deployment checks
  • Replace raw time.NewTicker polling with wait.PollUntilContextCancel in WaitForPodReady
  • Standardize Job deletion to foreground propagation across both agent packages
  • Fix pre-existing gofmt lint failure in conformance test helpers

Test plan

  • make test passes (all packages, race detector enabled)
  • make lint passes (0 issues)
  • make qualify passes (test + lint + e2e + scan)
  • No behavioral changes — all fixes are error wrapping, pattern alignment, and consistency

Replace fmt.Errorf with pkg/errors structured errors in bundler
validations. Wrap bare error returns in k8s/agent, validator/agent,
and deployment checks. Replace raw time.NewTicker polling with
wait.PollUntilContextCancel in WaitForPodReady. Standardize Job
deletion to foreground propagation across both agent packages.
@mchmarny
mchmarny disabled auto-merge February 25, 2026 12:53
@mchmarny
mchmarny merged commit 35d1743 into main Feb 25, 2026
15 checks passed
@mchmarny
mchmarny deleted the fix/code-pattern-violations branch February 25, 2026 12:53
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since it has been closed for 90 days with no further activity. Please open a new pull request for related changes.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants