Skip to content
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): add fail-fast for systests #6163

Closed
wants to merge 2 commits into from

Conversation

acud
Copy link
Contributor

@acud acud commented Jul 19, 2024

Motivation

systests appear to continue execution of all tests regardless if one of them failed.

Description

This change might be debatable, because we might want to keep the configuration as is and avoid the fail-fast. One might argue that it doesn't matter if one test failed or all of them and it is better to just know earlier that the flow failed rather than having to wait for a full hour to get the signal.

If the systests weren't flaky I'd say it might be better to know which of the tests failed (maybe multiple, maybe just one out of all). But I'm not sure that right now this is actually of any use and maybe having a faster workflow is better for everyone.

Example can be seen here: https://github.com/spacemeshos/go-spacemesh/actions/runs/10014040215/job/27682907862 (look for fail: in the logs).

Opening to discussion and happy to close this if there's resistance.

Test Plan

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed
  • Update changelog as needed

@acud acud self-assigned this Jul 19, 2024
@ivan4th
Copy link
Contributor

ivan4th commented Jul 19, 2024

I'd make it an option which we may set to true in CI but still leave a possibility to run systests in non-failfast mode via make without editing the Makefile

Copy link

codecov bot commented Jul 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.9%. Comparing base (c9726e3) to head (f0ac325).
Report is 4 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #6163   +/-   ##
=======================================
  Coverage     81.8%   81.9%           
=======================================
  Files          302     301    -1     
  Lines        32630   32630           
=======================================
+ Hits         26722   26731    +9     
+ Misses        4174    4168    -6     
+ Partials      1734    1731    -3     

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

@fasmat
Copy link
Member

fasmat commented Jul 21, 2024

We do use failfast on unit tests as well, so I don't see why we shouldn't do it also for systests.

@acud
Copy link
Contributor Author

acud commented Jul 22, 2024

bors try

spacemesh-bors bot added a commit that referenced this pull request Jul 22, 2024
@spacemesh-bors
Copy link

try

Build succeeded:

@acud
Copy link
Contributor Author

acud commented Jul 22, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Jul 22, 2024
## Motivation

systests appear to continue execution of all tests regardless if one of them failed.
@spacemesh-bors
Copy link

Build failed (retrying...):

  • systest-status

spacemesh-bors bot pushed a commit that referenced this pull request Jul 22, 2024
## Motivation

systests appear to continue execution of all tests regardless if one of them failed.
@spacemesh-bors
Copy link

Build failed:

@acud
Copy link
Contributor Author

acud commented Jul 22, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Jul 22, 2024
## Motivation

systests appear to continue execution of all tests regardless if one of them failed.
@spacemesh-bors
Copy link

Build failed:

@fasmat
Copy link
Member

fasmat commented Jul 22, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Jul 22, 2024
## Motivation

systests appear to continue execution of all tests regardless if one of them failed.
@spacemesh-bors
Copy link

Build failed:

@acud
Copy link
Contributor Author

acud commented Jul 23, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Jul 23, 2024
## Motivation

systests appear to continue execution of all tests regardless if one of them failed.
@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title test(systest): add fail-fast for systests [Merged by Bors] - test(systest): add fail-fast for systests Jul 23, 2024
@spacemesh-bors spacemesh-bors bot closed this Jul 23, 2024
@spacemesh-bors spacemesh-bors bot deleted the ff-systest branch July 23, 2024 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants