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.

Debug logs for the if condition of skipped jobs

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Reactions:10
  • Comments:5

github_iconTop GitHub Comments

1reaction
roryabrahamcommented, Jul 14, 2022

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

1reaction
fhammerlcommented, Jul 14, 2022

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. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to debug Azure pipeline stage/job condition returning ...
I was setting up a condition to skip tests run for pipeline development purposes by setting variable skipTestsOnFeatureBranchName to current ...
Read more >
How does Salesforce determine where to apply the ...
1 Answer. Salesforce basically takes the first 2MB of your debug log text and prints it. Anything past that 2MB cutoff is not...
Read more >
Debug Log "Skips xxx bytes of detailed log"
The debug log is skipping a large portion of the execution and therefore I can't debug successfully. I have all filters but APEX...
Read more >
Duplicate jobs are skipped intermittently.
When the duplicate job is skipped, the following errors appear in ... If "Debug detail level" is set as "Normal" and "Job Logs"...
Read more >
Salesforce Debug Logs: A Comprehensive Guide
In this blog, you will learn about Salesforce debug logs, how to create it and how to use it to track issues.
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