Change to Dockerfiles that prevents them from masking failed builds - #670
Conversation
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
|
The dockerfiles have been written in a way, since 2017, that commands that fail in the main build command sequence are masked, and the This is because the structure of the commands was: The operators && and || are left-associative with equal precedence, so the above is equivalent to: If any of a, b, c, d fail, the remaining commands up to e are skipped, but f is still executed, and f's exit status becomes the exit status of the entire sequence of commands. Command The fix is to put |
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
|
Just a note that as of commit 10 of this PR, it passes all tests, and keeps all configuration options to PI enabled, by means of a few small changes to the C++ code. It does not yet at that point have any changes recommended by Fabian Ruffy to move the installation of Python packages from the test step of test.yml into the build step (within Dockerfile.bmv2). It also does not yet use |
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
|
As of commit 15, all CI tests are green, but I think that is because some failures during the "Run tests" step in test.yml are being masked by the @fruffy If you are willing to wait for fixes to the failing tests after this PR, I'm happy to create an issue to track fixing them, or at least determining their root cause and disabling them, in a follow-up PR later. I consider this PR to replace my earlier one #669 that fruffy gave several useful comments on. I believe this one addresses all of the comments he made on that one. |
Also install Python packages in Dockerfile, as well as Dockerfile.bmv2 Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
No description provided.