TypeError triage/triage/pipeline_failure/failure_trace.rb in - nil can't be coerced into Float
TypeError: nil can't be coerced into Float
from triage/triage/pipeline_failure/failure_trace.rb:124:in `-'
from triage/triage/pipeline_failure/failure_trace.rb:124:in `diff_percentage'
from triage/triage/pipeline_failure/failure_trace.rb:51:in `block in rspec_run_time_summary_markdown'
from triage/triage/pipeline_failure/failure_trace.rb:48:in `map'
from triage/triage/pipeline_failure/failure_trace.rb:48:in `rspec_run_time_summary_markdown'
from triage/triage/pipeline_failure/triage_incident.rb:162:in `block in triaged_jobs'
from triage/triage/pipeline_failure/triage_incident.rb:146:in `map'
from triage/triage/pipeline_failure/triage_incident.rb:146:in `triaged_jobs'
from triage/triage/pipeline_failure/triage_incident.rb:97:in `attribution_comment'
from triage/triage/pipeline_failure/incident_creator.rb:166:in `attribution_body'
from triage/triage/pipeline_failure/incident_creator.rb:76:in `template_variables'
from triage/triage/pipeline_failure/incident_creator.rb:19:in `execute'
from triage/processor/engineering_productivity/pipeline_failure_management.rb:77:in `create_incident'
from triage/processor/engineering_productivity/pipeline_failure_management.rb:101:in `upsert_incident'
from triage/processor/engineering_productivity/pipeline_failure_management.rb:50:in `process'
from triage/triage/processor.rb:49:in `triage'
from triage/triage/processor.rb:38:in `triage'
from triage/triage/handler.rb:226:in `block in process'
from triage/triage/handler.rb:224:in `each'
from triage/triage/handler.rb:224:in `process'
from triage/job/processor_job.rb:22:in `execute'
from triage/triage/job.rb:37:in `perform'
from sucker_punch/job.rb:63:in `__run_perform'
from sucker_punch/job.rb:38:in `block in perform_async'
from concurrent/executor/ruby_thread_pool_executor.rb:352:in `run_task'
from concurrent/executor/ruby_thread_pool_executor.rb:343:in `block (3 levels) in create_worker'
from concurrent/executor/ruby_thread_pool_executor.rb:334:in `loop'
from concurrent/executor/ruby_thread_pool_executor.rb:334:in `block (2 levels) in create_worker'
from concurrent/executor/ruby_thread_pool_executor.rb:333:in `catch'
from concurrent/executor/ruby_thread_pool_executor.rb:333:in `block in create_worker'
Explanation from !2569 (comment 1703245336):
@rymai This error is resulting from the
diff_percentage
calculation onee/spec/features/groups/member_roles_spec.rb
. This test looks new and may not have been added to the master knapsack report at the time of failure so it's missing from the expected report, and that causes theexpected_duration
to be nil. Sorry I will fix this and add a test case to cover the scenario