Debug logs for the if condition of skipped jobs
See original GitHub issueDescribe the enhancement
When a job is skipped because it’s if
condition is not met, it’s very difficult to debug why that happened. It would be valuable to be able to see debug logs for the evaluation of the job-level if
condition.
Additional information
It’s sometimes possible to work around this by creating another job without a conditional and then creating steps with the same if
condition that is used at the job-level for another job. However, it’s inconvenient and not safe to assume that the evaluation of a condition is going to be the same at the job and step level. Here’s an example where the same if
condition is used for a job and a step, and the step runs but the job does not:
https://github.com/Expensify/App/runs/7312387282?check_suite_focus=true
NOTE: if the feature request has been agreed upon then the assignee will create an ADR. See docs/adrs/README.md
Issue Analytics
- State:
- Created a year ago
- Reactions:10
- Comments:5
Top GitHub Comments
Thanks for responding @fhammerl! I posted a forum topic here. Even if nothing comes of it, hopefully it might help others who find themselves with the situation I had in https://github.com/actions/runner/issues/1996
Hi @roryabraham, thanks for reporting this, especially demonstrating the workaround by adding an extra job to log the job conditions using individual steps, hopefully this increases the visibility for users running into the same issue.
This feature request cannot be implemented in the runner. The decision whether to run a job is made server-side and only jobs to be executed are sent to the runner.
I’d recommend starting a discussion on the community forum linked below about this and perhaps increasing the clarity of the UI to prevent confusing situations like https://github.com/actions/runner/issues/1996.
I’m closing the issue due to 👇
This issue does not seem to be a problem with the runner application, it concerns the GitHub actions platform more generally. Could you please post your feedback on the GitHub Community Support Forum which is actively monitored. Using the forum ensures that we route your problem to the correct team. 😃