< 062022-01-07⋎08 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
00:10symbioquine[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:11symbioquine[m]e.g. something like `CODE_SNIFFER_SUCCESS=$?`
00:11mstenta[m]i suppose we could also just run codesniffer after the tests?
00:12mstenta[m]i actually intentionally moved it before the tests at some point
00:12symbioquine[m]Depends whether it's important for a single run to yield both pieces of information...
00:12mstenta[m]because i wanted to fail early... (i had passing tests and then got annoyed that codesniffer was the only thing wrong)
00:12symbioquine[m]hahaha :) yeah
00:12mstenta[m]i mean... that does still feel like it's better, now that i think about it
00:13symbioquine[m]Does Code Sniffer really even need the full dev image?
00:13mstenta[m]i want to know fast if i that's going to fail
00:13mstenta[m]probably not
00:13mstenta[m]it's just convenient... but yea we could do something simpler
00:15symbioquine[m]Maybe something like hub.docker.com/r/cytopia/phpcs
00:15mstenta[m]ah interesting
00:15mstenta[m]yea i was even just thinking install php in the action environment itself - no docker
00:16mstenta[m]but maybe that
00:16symbioquine[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:16mstenta[m]'s more involved
00:17mstenta[m]well...
00:18mstenta[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:19mstenta[m]but i dunno... maybe that shouldn't be in the same workflow as this
00:19mstenta[m]i was hoping it could be... so that images wouldn't get pushed to docker hub if the tests failed
00:20mstenta[m]hmm
00:22mstenta[m]currently... docker hub is building the images automatically, regardless of tests/sniffs
00:23mstenta[m]so building images in a separate job without running tests would be status quo
00:25mstenta[m]assuming we did that (hypothetically), then the remaining issue is codesniffer preventing tests from running
00:26mstenta[m]but maybe that's not a bad thing? 🤷
00:26mstenta[m]it would be nice if they could run in parallel... but if that requires the performance hit, is it really worth it?
00:27mstenta[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:42mstenta[m]<mstenta[m]> "(pushed a commit to test anyway)" <- paul121: yea looks like gzipping didn't make any difference
00:46mstenta[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:47mstenta[m](originally both `farmos/farmos:2.x` and `farmos/farmos:2.x-dev` were included)
00:47mstenta[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)

< 062022-01-07⋏08 >