Skip to content

fix(rhc): fix bug in healthcheck dockerfile#2352

Merged
smartcontracts merged 4 commits intodevelopfrom
sc/fix-rhc-docker
Mar 23, 2022
Merged

fix(rhc): fix bug in healthcheck dockerfile#2352
smartcontracts merged 4 commits intodevelopfrom
sc/fix-rhc-docker

Conversation

@smartcontracts
Copy link
Contributor

@smartcontracts smartcontracts commented Mar 22, 2022

Description
Fixes a bug in the replica-healthcheck dockerfile. Also includes
replica-healthcheck as part of the ops setup by default to make this
stuff easier to catch and debug in the future. We will likely still want
to add integration tests that query the metrics defined in the
replica-healthcheck to confirm that everything is working as expected.

Fixes #2351

@changeset-bot
Copy link

changeset-bot bot commented Mar 22, 2022

🦋 Changeset detected

Latest commit: c50cafa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@eth-optimism/replica-healthcheck Patch
@eth-optimism/common-ts Patch
@eth-optimism/integration-tests Patch
@eth-optimism/data-transport-layer Patch
@eth-optimism/message-relayer Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov-commenter
Copy link

codecov-commenter commented Mar 22, 2022

Codecov Report

Merging #2352 (db8e426) into develop (d4de0cf) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #2352   +/-   ##
========================================
  Coverage    80.14%   80.14%           
========================================
  Files           77       77           
  Lines         2458     2458           
  Branches       450      450           
========================================
  Hits          1970     1970           
  Misses         488      488           
Flag Coverage Δ
contracts 99.29% <ø> (ø)
core-utils 86.77% <ø> (ø)
data-transport-layer 49.72% <ø> (ø)
sdk 55.90% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d4de0cf...db8e426. Read the comment docs.

@smartcontracts smartcontracts marked this pull request as draft March 22, 2022 18:23
@smartcontracts smartcontracts marked this pull request as ready for review March 22, 2022 18:36
}, {}) as TMetrics

// Create the metrics server.
this.metricsRegistry = prometheus.register
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops. I forgot to expose the metrics at all.

@github-actions github-actions bot added M-ci Meta: ci related work A-integration Area: integration tests labels Mar 22, 2022
Copy link
Contributor

@optimisticben optimisticben left a comment

Choose a reason for hiding this comment

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

LGTM

Fixes a bug in the replica-healthcheck dockerfile. Also includes
replica-healthcheck as part of the ops setup by default to make this
stuff easier to catch and debug in the future. We will likely still want
to add integration tests that query the metrics defined in the
replica-healthcheck to confirm that everything is working as expected.
Updates the replica-healthcheck service to cleanly catch connection
failures in the target and reference nodes. When a failure is detected,
a metric will be incremented and the failure will be logged.
Adds a single simple test to confirm that the healthcheck metrics server
is running. If the server is not running then the healthcheck server
likely did not start correctly and there might be an issue in the docker
container.
@smartcontracts smartcontracts merged commit 48e3956 into develop Mar 23, 2022
@smartcontracts smartcontracts deleted the sc/fix-rhc-docker branch March 23, 2022 17:54
theochap pushed a commit that referenced this pull request Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-integration Area: integration tests A-ops Area: ops M-ci Meta: ci related work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: replica-healthcheck docker image 1.0.1 fails

4 participants