Ignore failures from unbottled formulae#691
Conversation
Which ones? I'd rather those steps were also skipped rather than us ignoring failures. |
|
The ones we Here's an example: https://github.com/Homebrew/homebrew-core/runs/4115979271?check_suite_focus=true#step:7:177 |
Yeh, I don't think it should. I think it should still show up as "FAILED". If the issue is the exit code: can we handle that instead? |
|
Hmmm, we could. Let me have a look. |
This completes Homebrew#687. It's not enough to call `skipped` because some steps will still have a `:failed` status, and that will cause `test-bot` to exit with an error.
|
I haven't been able to work out how to handle the exit code without tweaking the Lines 96 to 97 in b1e2236 and Lines 61 to 63 in b1e2236 The next time |
da7f75f to
530bc80
Compare
|
I believe the exit code is determined here: homebrew-test-bot/lib/test_bot.rb Line 126 in b1e2236 which comes from homebrew-test-bot/lib/test_runner.rb Line 76 in b1e2236 so I don't currently see a sensible way of changing the exit code without changing some steps to not become |
If we encounter a build/linkage/test error for an unbottled dependent, it seems more useful for CI to not fail. Let's print an error instead.
|
I've updated this to handle build/linkage/test failures for unbottled dependents too. The idea is to downgrade all these errors into warnings that will still display failure messages but won't cause |
I believe Jenkins used to do this and it made the issue overview so much easier. |
|
I was wondering why @BrewTestBot stopped doing that. We could maybe roll our own, but there's the issue of access to secrets on PR branches. |
Would GitHub Actions annotations help? Like the CI coverage annotations we have in Homebrew/brew. |
|
They would help, yes. Easier to miss than comments, but better than hidden away behind a green CI log. |
|
Yeh, I think something like that would be ideal for adding warnings 👍🏻 |
- use `#blank?` instead of `#empty?` - prefer `if` to `unless` Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This got misplaced while refactoring in Homebrew#691.
This completes #687. It's not enough to call
skippedbecause somesteps will still have a
:failedstatus, and that will causetest-botto exit with an error.