Skip to content

fix: HealthChecker.Register immediately populates cache when already running#21979

Closed
Fletch153 wants to merge 8 commits intodevelopfrom
fix-healthchecker-stale-cache
Closed

fix: HealthChecker.Register immediately populates cache when already running#21979
Fletch153 wants to merge 8 commits intodevelopfrom
fix-healthchecker-stale-cache

Conversation

@Fletch153
Copy link
Copy Markdown
Collaborator

@Fletch153 Fletch153 commented Apr 10, 2026

Summary

Bumps chainlink-common to include the fix from smartcontractkit/chainlink-common#1976 (now merged), which resolves a stale cache issue in HealthChecker.Register() (CORE-2386).

When a service was registered with an already-running HealthChecker, its health state was absent from IsHealthy() / IsReady() for up to 15 seconds. The fix ensures newly registered services are immediately visible in health reports.

Changes

  • go.mod / go.sum — bump chainlink-common to v0.11.2-0.20260413215716-a931c3f2f162 (merge commit of chainlink-common#1976)
  • chainlink-protos/cre/go also bumped as a transitive dependency requirement from the new chainlink-common

Test plan

  • go build ./... passes
  • chainlink-common#1976 merged with passing tests

@Fletch153 Fletch153 requested review from a team as code owners April 10, 2026 21:23
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 10, 2026

✅ No conflicts with other open PRs targeting develop

@Fletch153 Fletch153 force-pushed the fix-healthchecker-stale-cache branch from fddfedc to 79ad808 Compare April 10, 2026 21:44
@trunk-io
Copy link
Copy Markdown

trunk-io Bot commented Apr 10, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@Fletch153 Fletch153 force-pushed the fix-healthchecker-stale-cache branch 2 times, most recently from 2de53c9 to fc680d0 Compare April 10, 2026 22:27
@Fletch153 Fletch153 requested a review from a team as a code owner April 10, 2026 22:38
@github-actions
Copy link
Copy Markdown
Contributor

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@Fletch153 Fletch153 force-pushed the fix-healthchecker-stale-cache branch 2 times, most recently from 7baf276 to 541f601 Compare April 13, 2026 23:48
jmank88
jmank88 previously approved these changes Apr 14, 2026
Bump chainlink-common to v0.11.2-0.20260413215716-a931c3f2f162
(merge commit of smartcontractkit/chainlink-common#1976) to resolve
stale cache in HealthChecker.Register() (CORE-2386).
…stale-cache

# Conflicts:
#	core/scripts/go.sum
#	deployment/go.sum
#	go.mod
#	go.sum
#	integration-tests/go.sum
#	integration-tests/load/go.sum
#	system-tests/lib/go.sum
#	system-tests/tests/go.sum
…stale-cache

# Conflicts:
#	core/scripts/go.mod
#	core/scripts/go.sum
#	deployment/go.mod
#	deployment/go.sum
#	go.mod
#	go.sum
#	integration-tests/go.mod
#	integration-tests/go.sum
#	integration-tests/load/go.mod
#	integration-tests/load/go.sum
#	system-tests/lib/go.mod
#	system-tests/lib/go.sum
#	system-tests/tests/go.mod
#	system-tests/tests/go.sum
…stale-cache

# Conflicts:
#	core/scripts/go.mod
#	deployment/go.mod
@Fletch153 Fletch153 requested a review from jmank88 April 16, 2026 08:26
Resolve conflict in integration-tests/load/go.mod: keep PR's
chainlink-common version (a931c3f2f162) and take develop's
chainlink-deployments-framework v0.95.0.
mchain0
mchain0 previously approved these changes Apr 16, 2026
jmank88
jmank88 previously approved these changes Apr 16, 2026
@mchain0 mchain0 enabled auto-merge April 16, 2026 11:36
skudasov
skudasov previously approved these changes Apr 16, 2026
…stale-cache

# Conflicts:
#	core/scripts/go.mod
#	deployment/go.mod
#	integration-tests/go.mod
#	integration-tests/load/go.mod
#	system-tests/lib/go.mod
@Fletch153 Fletch153 dismissed stale reviews from skudasov and mchain0 via 1349141 April 16, 2026 18:11
@cl-sonarqube-production
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@Fletch153
Copy link
Copy Markdown
Collaborator Author

Closing in favor of #22056 (same changes, fresh PR due to CI weirdness on this branch).

@Fletch153 Fletch153 closed this Apr 16, 2026
auto-merge was automatically disabled April 16, 2026 21:48

Pull request was closed

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