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

allow_failure is poorly named #7

Closed
nterbogt opened this issue Aug 11, 2020 · 4 comments
Closed

allow_failure is poorly named #7

nterbogt opened this issue Aug 11, 2020 · 4 comments

Comments

@nterbogt
Copy link

I would expect if allow_failure is false... it would not be allowed to fail finding the files. This is currently not the case... if allow_failure is false, the step will succeed if the files are not found.

Alternatively if I set allow_failure to true... it fails the step if the files don't exist. That's not allowing a failure.

@jgwinner
Copy link

Agreed, it's quite confusing. I had to run a few tries until I figured out what's happening.

I wouldn't change the name without a major version bump, but the correct explanation in the Readme would help.

In either check, the "file exists" step doesn't run if the files don't exist.

@jgwinner
Copy link

jgwinner commented Aug 21, 2021

Oh - I suddenly got it. "allow_failure" means of the overall ACTION not of the check for files ...

otherwise, any files that don't exist stop the action. That's sort of what you want, but usually steps fail anyway if there's a missing file.

Still, this desperately needs clarification

@spoyntersmith
Copy link

spoyntersmith commented Apr 8, 2022

Whilst it's not a game changer - this could be good to rename in the next version?

I think the description you've got is perfect but 🤯 took me a while

fail_on_missing ... fail

@andstor
Copy link
Owner

andstor commented Oct 24, 2022

Hi!

I have finally changed the allow_failure to simply fail in the new major v2.0.0 release.

Hopefully, this will avoid any future confusion (and frustration) 😅

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

No branches or pull requests

4 participants