question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please support something like "allow-failure" for a given job

See original GitHub issue

Edit from @vanZeben:

As this is a GitHub Actions platform feature request, discussion for this feature has been moved to https://github.com/orgs/community/discussions/15452, please go and put your support behind that community discussion instead of this issue.


We use github actions in our “snapd” project and we love them.

One small feature we would love to see is a way to mark a test job as “allow-failure” (or a term along these lines) [0]. This would simply mean that the overall /pulls overview page would show the PR as with the little green tick-mark (and maybe in the tooltip 5/6 OK, 1 ignored). It would still show as a failure in the details view (maybe with a different icon?).

Our use-case is that we have some CI environments that fail frequently because of external factors like repository mirrors that are our of sync etc. We still want to run the CI on these systems but not get distracted too much by these out-of-our-control issues.

Hope this makes sense.

Thanks! Michael

[0] E.g.

jobs:
  spread:
    runs-on: ubuntu-latest
    allow-failure: true
    steps:
    - do-some-flaky-stuff

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1290
  • Comments:155 (4 by maintainers)

github_iconTop GitHub Comments

237reactions
fingolfincommented, Apr 17, 2020

I don’t think it is that specific. People have requested this before: https://github.community/t5/GitHub-Actions/continue-on-error-allow-failure-UI-indication/td-p/37033

I just came here via Google as I was surprised I couldn’t find anything like this in the documentation. It’s standard with e.g. Travis CI

162reactions
mvo5commented, Apr 1, 2020

Hey @thboop. Thanks for your quick reply!

Yeah, it’s really just about the little green tick at the pull-request overview page. AFAICT when one job (even if it’s not required) fails the overview PR list will show this PR as failed. Having a way to mark certain jobs as not rquired would still show the pulls as green (or yellow?) instead of red.

But I do understand this is a bit of a specific request, so feel free to close it if you think it’s a bit too odd. We had it with our old CI system and I liked it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Please support something like "allow-failure" for a given job
AFAICT when one job (even if it's not required) fails the overview PR list will show this PR as failed. Having a way...
Read more >
The feature request for a "allow-failure" option on GitHub ...
Posted 2,5 years ago, the feature request for a "allow-failure" option on ... Please support something like "allow-failure" for a given job.
Read more >
How to run a github-actions step, even if the previous ...
If you don't want the function to run when you manually cancel a job, you can instead put: if: success() || failure(). or...
Read more >
`allow_failure` action for pipeline rules (#30235) · Issues
This action defines the behavior of job after the rule is matched, allowing us to conditionally set allowed to fail in given conditions....
Read more >
Strategies for Learning from Failure
A sophisticated understanding of failure's causes and contexts will help to avoid the blame game and institute an effective strategy for learning from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found