Investigate anchore scan job not providing output
Background
We're seeing anchore scan jobs that will hang for an hour with no output and fail due to a runner timeout. We need to investigate this issue and come up with a plan to resolve it.
To start, we have three main ideas for what the issue could be related to:
- The proc we're creating with Popen for the
wait
is printing something to stderr that we never see and the process just hangs- It might also be an issue with how we're reading each line from stdout instead of using
communicate
- It might also be an issue with how we're reading each line from stdout instead of using
- Anchore is going into an errored state and never reporting back
- Something with
anchorecli
's functionality is breaking with a recent update of anchore
Acceptance Criteria
-
Anchore scan provides output if errored -
Anchore scan doesn't hang if error occurs
Definition of Done
-
All Acceptance Criteria have been completed -
Solution is captured as code and/or documentation and merge requests have been submitted
Edited by Harmanjit Bhullar