Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sywhang
Copy link
Contributor

@sywhang sywhang commented Nov 20, 2021

When fx is run with a very short timeout, it's possible for the
timeout error message to be in a bad format "OnStart hook added by failed"
where the name of the OnStart hook's caller hasn't been recorded
before the context times out.

This fixes the error message generation to not rely on the OnStart hook's
caller always being known to fix this race.

Fixes #815

@codecov
Copy link

codecov bot commented Nov 20, 2021

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.05%. Comparing base (88cdb34) to head (1a810d4).
⚠️ Report is 266 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #816      +/-   ##
==========================================
- Coverage   99.26%   99.05%   -0.21%     
==========================================
  Files          25       25              
  Lines         950      954       +4     
==========================================
+ Hits          943      945       +2     
- Misses          6        7       +1     
- Partials        1        2       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

When fx is run with a very short timeout, it's possible for the
timeout error message to be in a bad format "OnStart hook added by  failed"
where the name of the OnStart hook's caller hasn't been recorded
before the context times out.

This fixes the error message generation to not rely on the OnStart hook's
caller always being known to fix this race.

Fixes uber-go#815
@sywhang sywhang force-pushed the fix-timeout-err-race branch from 16da6a1 to 1a810d4 Compare November 20, 2021 06:13
@sywhang sywhang marked this pull request as draft November 22, 2021 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Race in timeout failure report generation

1 participant