Background
Run #260 failed because commit 98e204c deleted head--system.html when it got split into head--system-css.html and head--system-js.html. The compile job crashed with FileNotFoundError: No such file or directory: 'head--system.html'.
Cause
compile.yml uses git diff-tree to get the list of files changed in a commit, and that list includes deleted files, not just added or edited ones. compile.py then tries to open every file in that list, including the one that no longer exists, and it errors out.
Solution
Add --diff-filter=d to the git diff-tree command in compile.yml so deleted files never make it into the list. Would also be good to add a check in compile.py that skips a file if it's missing, just so a future edge case like this doesn't take down the whole job again.
For now I got the artifacts I needed by manually running Deploy Components with the recompile input set to each new filename one at a time, which skips the diff-tree step entirely.
Background
Run #260 failed because commit
98e204cdeletedhead--system.htmlwhen it got split intohead--system-css.htmlandhead--system-js.html. The compile job crashed withFileNotFoundError: No such file or directory: 'head--system.html'.Cause
compile.ymluses git diff-tree to get the list of files changed in a commit, and that list includes deleted files, not just added or edited ones. compile.py then tries to open every file in that list, including the one that no longer exists, and it errors out.Solution
Add
--diff-filter=dto the git diff-tree command incompile.ymlso deleted files never make it into the list. Would also be good to add a check incompile.pythat skips a file if it's missing, just so a future edge case like this doesn't take down the whole job again.For now I got the artifacts I needed by manually running Deploy Components with the recompile input set to each new filename one at a time, which skips the diff-tree step entirely.