Summary
The text discusses the +predeploy
meta-target in Continuous Integration, outlining steps such as waiting, running Django tests, checking migrations, and executing unit tests for SAMM and UI tests prior to deployment. It identifies a bug that causes the BUILD
process to trigger twice and suggests further investigation, potentially documenting the issue in a Github issue. The problem is linked to the target's setup, which permits parallel test execution without failing the earthly
run until all tests are completed. Removing the WAIT/BUILD/END
section can prevent duplication but results in immediate failure if any e2e-*
targets fail. An alternative solution is proposed, which involves eliminating the COPY
lines and using SAVE ARTIFACT ... AS LOCAL ...
for *.failure
files, allowing for parallel test execution without duplication while providing a workaround for the original issue. This workaround is also referenced in a Github issue. The text concludes with a mention of a proposed TEST
feature.