BuildCoverageWorker undefined method `to_f`
Created by @stanhu.
https://sentry.gitlap.com/gitlab/gitlabcom/issues/26836/
NoMethodError: undefined method `to_f' for #<File:0x007fae0bf7ffb0>
Did you mean? to_s
to_h
to_a
to_i
app/models/ci/build.rb:236:in `update_coverage'
update_attributes(coverage: coverage) if coverage.present?
lib/gitlab/metrics/instrumentation.rb:156:in `block in update_coverage'
trans.method_call_for(#{label.to_sym.inspect}).measure { super }
lib/gitlab/metrics/method_call.rb:23:in `measure'
retval = yield
lib/gitlab/metrics/instrumentation.rb:156:in `update_coverage'
trans.method_call_for(#{label.to_sym.inspect}).measure { super }
app/workers/build_coverage_worker.rb:7:in `perform'
.try(:update_coverage)
...
(71 additional frame(s) were not displayed)
undefined method `to_f' for #<File:0x007fae0bf7ffb0>
Did you mean? to_s
to_h
to_a
to_i