Closed lisac closed 3 days ago
116 tests ±0 116 :white_check_mark: ±0 35s :stopwatch: ±0s 34 suites ±0 0 :zzz: ±0 34 files ±0 0 :x: ±0
Results for commit b1f9443e. ± Comparison against base commit 176b540b.
:recycle: This comment has been updated with latest results.
Overall Project | 67.56% | :x: |
---|
There is no coverage information present for the Files changed
What was the problem?
Readiness probe is failing for deployed versions of
svc-bgs-api
(have only deployed to pre-prod environments; seeing this error consistently).Readiness probe failed: /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `require': cannot load such file -- metric_logger (LoadError) from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require' from /app/lib/bgs_client.rb:6:in `<top (required)>' from /app/healthcheck/readiness_script.rb:6:in `require_relative' from /app/healthcheck/readiness_script.rb:6:in `<main>'
The
metric_logger
in question is not an external gem, and was recently introduced - this is the first time we're trying to deploy it. It might be that we should be usingrequire_relative
to load it, instead ofrequire
. Going off of this reasoning:The solution
Use
require_relative
instead ofrequire
for loadingmetric_logger
.How I tested this
require_relative 'metric_loggerz'
) and verified unit tests broke; and verified unit tests succeeded without the typodev
andqa
do not trigger the readiness probe failurenote on deploying this to production
Likely 7/3. I'm not prepared to troubleshoot if the deployment fails today.