fix: better error for failed run section#752
Conversation
b5ff43c to
41da9c8
Compare
raharper
left a comment
There was a problem hiding this comment.
Looks like a nice improvement. Thanks for looking at this.
+1 on this after "workflow" is happy and squashed commits.
|
Weird, I don't seem to have an option to re-run the tests. |
run section output can be long and it can be a pain to find which image failed to build in multiple-image situations. This just adds the obvious information to the error you see at the end. Signed-off-by: Michael McCracken <mikmccra@cisco.com>
ref https://docs.docker.com/reference/dockerfile/#workdir "If the WORKDIR doesn't exist, it will be created even if it's not used in any subsequent Dockerfile instruction." Signed-off-by: Michael McCracken <mikmccra@cisco.com>
ac6b265 to
0fa7d1d
Compare
|
rebased to get the convert.bats fix from #753 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #752 +/- ##
===========================================
- Coverage 63.58% 52.95% -10.64%
===========================================
Files 57 59 +2
Lines 5083 6538 +1455
===========================================
+ Hits 3232 3462 +230
- Misses 1184 2431 +1247
+ Partials 667 645 -22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Sorry, can you explain why the second commit is part of this pr? |
I can, yes - in a previous attempt I made to fix the failing convert test (which had been blocking this PR, until Tanmay fixed it correctly in a later PR) - I bumped the elasticsearch version too high and hit a version of their dockerfile that wrote to WORKDIR without creating it. See, in v8.17.10, they do a but in later versions they do just the So although Tanmay's fix means we don't need this for passing CI, I left it in because it improves docker build compat. |
run section output can be long and it can be a pain to find which image failed to build in multiple-image situations.
This just adds the obvious information to the error you see at the end.
now it looks like this:
✅ By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.