< 202020-11-21⋎22 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
20:40mstenta[m]symbioquine: just saw your sans-xdebug test
20:40mstenta[m]that's a big improvement!
20:40symbioquine[m]Yeah
20:40symbioquine[m]I'll try to test the strategy you were describing with swapping the containers this evening :)
20:41mstenta[m]Cool! I hope that is as simple as it seems in my head haha
20:41symbioquine[m]Also posted to www.drupal.org/project/farm/issues/31836
20:41mstenta[m]I'm also curious if a similar approach can be used locally
20:41mstenta[m]Oh yes saw that too - just reading it
20:42mstenta[m]Awesome!
20:42symbioquine[m]<mstenta[m] "I'm also curious if a similar ap"> I'd imagine that would just imply a documentation update. Should be very fast since one image is build on the other, the prod image layers should already have been downloaded...
20:42mstenta[m]Yea I think so
20:42symbioquine[m]Obviously, we have to prove it works reliably first :)
20:42mstenta[m]Yea
20:43mstenta[m]Trying to think through what the local workflow would be...
20:43mstenta[m](start with dev image, that's what you use normally, but when you want to test... can a standalone container image be run at the same time while the other two are, and just mount in the same directory?
20:44symbioquine[m]yep, I think so
20:44mstenta[m]or do you have to stop the running dev container, and then run your tests
20:44symbioquine[m]I wouldn't think that would be necessary
20:44mstenta[m]cool - then it would just be a matter of crafting the right `docker run` command i think?
20:44mstenta[m]on that note, i've been using some bash aliases to make things easier
20:45mstenta[m]eg: `fdrush` == `sudo docker exec -it -u www-data farmos_www_1 vendor/bin/drush`
20:45symbioquine[m]It's pretty common to have shared mounts for cases like one image refreshing certificates used by another
20:45mstenta[m]`fcode` == `sudo docker exec -it -u www-data farmos_www_1 vendor/bin/phpcs /opt/drupal/web/profiles/farm`
20:45mstenta[m]`ftest` == `sudo docker exec -it -u www-data farmos_www_1 vendor/bin/phpunit --verbose --debug --group farm`
20:46mstenta[m]ah yea that makes sense - i actually do that already for let's encrypt certs come to think of it :-)
20:46symbioquine[m]I think the main thing would just be making sure they can both access the DB and aren't trying to expose the same ports on the host machine.
20:47mstenta[m]yea
20:47mstenta[m]one thing to think about: docker compose creates a network so the www and db containers can connect
20:47mstenta[m]if we then also `docker run` another container, it will need access to that network
20:47mstenta[m]i haven't done that before, but i imagine it's not too hard
20:50symbioquine[m]Maybe it would be cleaner to have the instructions describe adding another "test runner" container to the docker-compose.yml file and using `docker-compose exec` for starting the tests?
20:51mstenta[m]ah yea that's another idea!~
20:51mstenta[m]the `docker-compose.development.yml` template could just include that
20:52mstenta[m]would it be running all the time, though?
20:52mstenta[m]i wonder if it could be turned off by default, and only started on demand
20:52symbioquine[m]Yeah, depends how expensive it is to keep that container running all the time :)
20:53mstenta[m]the `docker run` might be simpler
20:53mstenta[m]so... another thing to think about: it's possible to run tests on sqlite3
20:53mstenta[m]without needing a db container
20:54mstenta[m]i think i got that to work early on, but haven't tried since
20:54mstenta[m]and i suppose there's an argument for keeping consistent and running tests on postrgresql
20:54symbioquine[m]<mstenta[m] "the `docker run` might be simple"> Depends how much shell magic / $() expressions it takes to get it onto the right network and have the right bind mount.
20:54mstenta[m]yup yup yup
20:55symbioquine[m]<mstenta[m] "and i suppose there's an argumen"> Might make sense to parameterize the test runner and test against all three (sqlite/mysql/postgresql) :)
20:55mstenta[m]docs.docker.com/engine/reference/command
20:55mstenta[m]whoa now you're taking it to the next level! ;-)
20:55mstenta[m]maybe we do that in github... not locally haha
20:55symbioquine[m]exactly
20:56symbioquine[m]Prove that all three work at checkin time, but devs can mostly work against whichever is fastest
20:56mstenta[m]microsoft is giving us those free cpu cycles ;-)
20:56mstenta[m]yea speed is most important locally
20:56mstenta[m]i generally only run individual tests locally
20:56symbioquine[m]with some "advanced instructions" for doing the full test when something breaks only on some of the DBs
20:56mstenta[m]and then push to github for the full test
20:57symbioquine[m]:)
20:57mstenta[m]i'm curious about drupal.org testing infrastructure too... but i say we stick to github for now
20:57mstenta[m]d.o infrastructure team has enough on their plate :-P
20:58mstenta[m]could be really useful with the new issue branches feature though (gitlab integration so you can create a branch that corresponds to a d.o issue)_
20:58symbioquine[m]<mstenta[m] "and then push to github for the "> Do you just keep pushing to the same "2.x" branch on your personal fork or do you modify the workflow file to trigger from other branches? (I could look too I guess...)
20:58mstenta[m](and just testing patches too)
20:58mstenta[m]oh yea i've done both
20:58mstenta[m]i had a `test2x` branch that was JUST a change to the workflow to trigger on `test2x` branch pushes, and i would rebase that on top of whatever i wanted to test
20:59mstenta[m]but lately i've been lazy and have just been using `2.x` directly to my fork :-)
20:59symbioquine[m]Maybe it would be good to actually check in a wild-card trigger (I think there's a way to do that) to be used for that case and document it?
21:02symbioquine[m]stackoverflow.com/a/57903434
21:03*sent a long message: < matrix.org/_matrix/media/r0/download/mat >
21:04*sent a long message: < matrix.org/_matrix/media/r0/download/mat >
21:07mstenta[m]oh yea that could be nice
21:11mstenta[m]maybe just simply: `2x-**`?
21:11symbioquine[m]yeah
21:34mstenta[m]great postgis discussion in the forum :-)
21:36mstenta[m]speaking of geodata... i need to debug the KML geocoding :-(
22:10mstenta[m]ah ha! easy fix!
22:10mstenta[m]www.drupal.org/project/geocoder/issues/3

< 202020-11-21⋏22 >