Skip to content

refactor: update post-processor regex, backoff, and msg#708

Merged
tenthirtyam merged 1 commit into
mainfrom
fix/update-post-processor-regex-backoff-and-msg
May 15, 2026
Merged

refactor: update post-processor regex, backoff, and msg#708
tenthirtyam merged 1 commit into
mainfrom
fix/update-post-processor-regex-backoff-and-msg

Conversation

@tenthirtyam

Copy link
Copy Markdown
Collaborator

Summary

  • Adjust hostnameRegex to enforce full-string matching by adding grouping and anchors, fixing a validation bug.
  • Extract backoff configuration into a variable and use Exponential backoff (InitialBackoff=200ms, MaxBackoff=30s, Multiplier=2) for retries.
  • Improve error handling by wrapping the underlying error with %w and returning an explicit error when the remote command exits with a non-zero status.

These changes improve retry behavior and provide clearer diagnostics for uploads.

Type

  • fix: Bug Fix
  • feat: Feature or Enhancement
  • docs: Documentation
  • refactor: Refactoring
  • chore: Build, Dependencies, Workflows, etc.
  • other: Other (Please describe.)

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Tests

  • Tests have been added or updated.
  • Tests have been completed.

Output:

Documentation

  • Documentation has been added or updated.

Issue References

Release Note

Additional Information

- Adjust `hostnameRegex` to enforce full-string matching by adding grouping and anchors, fixing a validation bug.
- Extract backoff configuration into a variable and use Exponential backoff (InitialBackoff=200ms, MaxBackoff=30s, Multiplier=2) for retries.
- Improve error handling by wrapping the underlying error with %w and returning an explicit error when the remote command exits with a non-zero status.

These changes improve retry behavior and provide clearer diagnostics for uploads.

Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
@tenthirtyam tenthirtyam added this to the v2.2.0 milestone May 15, 2026
@tenthirtyam tenthirtyam self-assigned this May 15, 2026
@tenthirtyam tenthirtyam requested a review from a team as a code owner May 15, 2026 15:07
@tenthirtyam tenthirtyam added the refactor Refactor label May 15, 2026
@github-actions github-actions Bot added needs-review Needs Review size/xs Relative Sizing: Extra-Small labels May 15, 2026
@tenthirtyam tenthirtyam removed the needs-review Needs Review label May 15, 2026
@tenthirtyam tenthirtyam merged commit e8afa11 into main May 15, 2026
9 checks passed
@tenthirtyam tenthirtyam deleted the fix/update-post-processor-regex-backoff-and-msg branch May 15, 2026 15:14
@github-actions

Copy link
Copy Markdown

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

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

Labels

refactor Refactor size/xs Relative Sizing: Extra-Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant