Skip to content

fix(workflows/syncer/v2): addresses nil checks and startup - #19519

Merged
MStreet3 merged 4 commits into
developfrom
cre-965/audit-cl6-01
Sep 24, 2025
Merged

MStreet3 merged 4 commits into
developfrom
cre-965/audit-cl6-01

Conversation

@MStreet3

Copy link
Copy Markdown
Contributor

PR :

  • removes possible nil contractReader when starting sync after a successful close of initDoneCh yet error waiting for DON
  • removes unused eventCh in V2
  • implements HealthReport

Requires

Supports

@github-actions

Copy link
Copy Markdown
Contributor

👋 MStreet3, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

}

w.contractReader = reader
close(initDoneCh)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only close initDoneCh if the reader is initialized, otherwise the context is canceled and the waiting routines will stop.

}
w.lggr.Debugw("read from don received channel while waiting to start reconciliation sync")
don, _ := w.workflowDonNotifier.WaitForDon(ctx)
don, err := w.workflowDonNotifier.WaitForDon(ctx)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should never happen, but handling error now by passing it to client provided hook with default noop implementation

@cl-sonarqube-production

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants