| 00:10 | symbioquine[m] | I think we can just run the Code Sniffer first and save the exit status in a variable, then check that variable at the end to fail the build if they failed. |
| 00:11 | symbioquine[m] | e.g. something like `CODE_SNIFFER_SUCCESS=$?` |
| 00:11 | mstenta[m] | i suppose we could also just run codesniffer after the tests? |
| 00:12 | mstenta[m] | i actually intentionally moved it before the tests at some point |
| 00:12 | symbioquine[m] | Depends whether it's important for a single run to yield both pieces of information... |
| 00:12 | mstenta[m] | because i wanted to fail early... (i had passing tests and then got annoyed that codesniffer was the only thing wrong) |
| 00:12 | symbioquine[m] | hahaha :) yeah |
| 00:12 | mstenta[m] | i mean... that does still feel like it's better, now that i think about it |
| 00:13 | symbioquine[m] | Does Code Sniffer really even need the full dev image? |
| 00:13 | mstenta[m] | i want to know fast if i that's going to fail |
| 00:13 | mstenta[m] | probably not |
| 00:13 | mstenta[m] | it's just convenient... but yea we could do something simpler |
| 00:15 | symbioquine[m] | Maybe something like hub.docker.com/r/cytopia/phpcs |
| 00:15 | mstenta[m] | ah interesting |
| 00:15 | mstenta[m] | yea i was even just thinking install php in the action environment itself - no docker |
| 00:16 | mstenta[m] | but maybe that |
| 00:16 | symbioquine[m] | It could be both in a separate job as a sort of canary, but move the phpcs at the end of the unit tests on the dev image as the source of truth. |
| 00:16 | mstenta[m] | 's more involved |
| 00:17 | mstenta[m] | well... |
| 00:18 | mstenta[m] | the main reason i started splitting things out to separate jobs was so that we could eventually use this action to push images to docker hub |
| 00:19 | mstenta[m] | but i dunno... maybe that shouldn't be in the same workflow as this |
| 00:19 | mstenta[m] | i was hoping it could be... so that images wouldn't get pushed to docker hub if the tests failed |
| 00:20 | mstenta[m] | hmm |
| 00:22 | mstenta[m] | currently... docker hub is building the images automatically, regardless of tests/sniffs |
| 00:23 | mstenta[m] | so building images in a separate job without running tests would be status quo |
| 00:25 | mstenta[m] | assuming we did that (hypothetically), then the remaining issue is codesniffer preventing tests from running |
| 00:26 | mstenta[m] | but maybe that's not a bad thing? 🤷 |
| 00:26 | mstenta[m] | it would be nice if they could run in parallel... but if that requires the performance hit, is it really worth it? |
| 00:27 | mstenta[m] | and if we don't run them in parallel, i feel like it's better to run the codesniffer step before the tests... so it fails sooner and you can fix that before waiting the ~10 minutes for tests to run before you find out you had an extra newline somewhere haha |
| 00:42 | mstenta[m] | <mstenta[m]> "(pushed a commit to test anyway)" <- paul121: yea looks like gzipping didn't make any difference |
| 00:46 | mstenta[m] | i'm testing one more commit, which only uploads/downloads the `farmos/farmos:2.x-dev` image via artifacts, since that's the only one we use... might shave off a bit of time |
| 00:47 | mstenta[m] | (originally both `farmos/farmos:2.x` and `farmos/farmos:2.x-dev` were included) |
| 00:47 | mstenta[m] | although... now that i think of it, the reason i did that was so that both could be pushed to docker hub ultimately... :-/ |
| 15:13 | * | farmBOT has joined |
| 16:23 | * | natewrench123456 has joined |
| 17:41 | * | natewrench123456 has quit (Quit: Leaving) |
| 18:26 | * | natewrench123456 has joined |
| 19:11 | * | natewrench123456 has quit (Quit: Leaving) |