-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - test(systest): improve systest resilience #6171
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #6171 +/- ##
=========================================
- Coverage 81.9% 81.8% -0.1%
=========================================
Files 301 301
Lines 32606 32606
=========================================
- Hits 26711 26703 -8
- Misses 4167 4172 +5
- Partials 1728 1731 +3 ☔ View full report in Codecov by Sentry. |
bors try |
tryBuild succeeded: |
b5c9873
to
c8b1bd8
Compare
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
bors try |
tryBuild succeeded: |
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
Co-authored-by: Matthias Fasching <5011972+fasmat@users.noreply.github.com>
…pacemesh into systest-unavailable-err
bors try |
tryBuild succeeded: |
bors try |
tryBuild succeeded: |
bors try |
tryBuild failed: |
bors try |
tryBuild succeeded: |
bors try |
tryBuild failed: |
func (c *Context) CheckFail() error { | ||
select { | ||
case <-failed: | ||
return errors.New("test suite failed. aborting test execution") | ||
default: | ||
} | ||
return nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't atomic.Bool
be more straightforward to use?
failed atomic.Bool
...
t.Cleanup(func() {
if t.Failed() {
failed.Set(true)
}
})
func (c *Context) CheckFail() error { | |
select { | |
case <-failed: | |
return errors.New("test suite failed. aborting test execution") | |
default: | |
} | |
return nil | |
} | |
func (c *Context) CheckFail() error { | |
if failed.Load() { | |
return errors.New("test suite failed. aborting test execution") | |
} | |
return nil | |
} |
bors merge |
## Motivation Improve systest resilience by retrying some of the checks on the `Unavailable` error.
Pull request successfully merged into develop. Build succeeded: |
Motivation
Improve systest resilience by retrying some of the checks on the
Unavailable
error.Description
Test Plan
TODO