-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Possibly incorrect aggregation? #23
Comments
Looks like an input validation issue. The We'll need to error out if https://github.com/re-actors/alls-green/blob/223e4bb/src/normalize_needed_jobs_status.py#L45 returns a P.S. In your case, if you want to allow everything to be skipped, you'll have to pre-process the jobs dict before passing it as an action input, transforming it into an acceptable list format. |
Thanks @webknjaz , that makes sense, appreciate you looking. One question though — why does the report suggest that all the jobs are either allowed to fail or be skipped — i.e. the report seems to interpret the input correctly, even though it's incorrectly formatted? Or am I reading the report incorrectly? |
Fair enough. Upon closer inspection, I think that there might be an actual bug with |
I think this might be a case of it not working, after having made the suggested change: https://github.com/PRQL/prql/actions/runs/5967503062/job/16189922489?pr=3391
|
I reproduced this locally with your inputs and I think I have a patch. I'm going to push a commit for you to test, but will probably not make a release just yet. Instead, I'll attempt adding some more comprehensive testing before doing that. |
Before this patch, `allowed-failures` did not contribute to the overall computed outcome due to a bug in the checking logic. This change refactors the data strucutures used to simplify the check and reduce its complexity in general. Fixes #23
@max-sixty Try pinning the action to commit |
Great, I put that in, I'll keep an eye on it! |
Before this patch, `allowed-failures` did not contribute to the fix re-actors#23
Thanks for building this!
One issue today though — am I reading this wrong? It seems like the two failures are allowed, yet the job aggregates this as a failure?
https://github.com/PRQL/prql/actions/runs/5942757316
Upvote & Fund
The text was updated successfully, but these errors were encountered: