| 20:40 | mstenta[m] | symbioquine: just saw your sans-xdebug test |
| 20:40 | mstenta[m] | that's a big improvement! |
| 20:40 | symbioquine[m] | Yeah |
| 20:40 | symbioquine[m] | I'll try to test the strategy you were describing with swapping the containers this evening :) |
| 20:41 | mstenta[m] | Cool! I hope that is as simple as it seems in my head haha |
| 20:41 | symbioquine[m] | Also posted to www.drupal.org/project/farm/issues/31836 |
| 20:41 | mstenta[m] | I'm also curious if a similar approach can be used locally |
| 20:41 | mstenta[m] | Oh yes saw that too - just reading it |
| 20:42 | mstenta[m] | Awesome! |
| 20:42 | symbioquine[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:42 | mstenta[m] | Yea I think so |
| 20:42 | symbioquine[m] | Obviously, we have to prove it works reliably first :) |
| 20:42 | mstenta[m] | Yea |
| 20:43 | mstenta[m] | Trying to think through what the local workflow would be... |
| 20:43 | mstenta[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:44 | symbioquine[m] | yep, I think so |
| 20:44 | mstenta[m] | or do you have to stop the running dev container, and then run your tests |
| 20:44 | symbioquine[m] | I wouldn't think that would be necessary |
| 20:44 | mstenta[m] | cool - then it would just be a matter of crafting the right `docker run` command i think? |
| 20:44 | mstenta[m] | on that note, i've been using some bash aliases to make things easier |
| 20:45 | mstenta[m] | eg: `fdrush` == `sudo docker exec -it -u www-data farmos_www_1 vendor/bin/drush` |
| 20:45 | symbioquine[m] | It's pretty common to have shared mounts for cases like one image refreshing certificates used by another |
| 20:45 | mstenta[m] | `fcode` == `sudo docker exec -it -u www-data farmos_www_1 vendor/bin/phpcs /opt/drupal/web/profiles/farm` |
| 20:45 | mstenta[m] | `ftest` == `sudo docker exec -it -u www-data farmos_www_1 vendor/bin/phpunit --verbose --debug --group farm` |
| 20:46 | mstenta[m] | ah yea that makes sense - i actually do that already for let's encrypt certs come to think of it :-) |
| 20:46 | symbioquine[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:47 | mstenta[m] | yea |
| 20:47 | mstenta[m] | one thing to think about: docker compose creates a network so the www and db containers can connect |
| 20:47 | mstenta[m] | if we then also `docker run` another container, it will need access to that network |
| 20:47 | mstenta[m] | i haven't done that before, but i imagine it's not too hard |
| 20:50 | symbioquine[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:51 | mstenta[m] | ah yea that's another idea!~ |
| 20:51 | mstenta[m] | the `docker-compose.development.yml` template could just include that |
| 20:52 | mstenta[m] | would it be running all the time, though? |
| 20:52 | mstenta[m] | i wonder if it could be turned off by default, and only started on demand |
| 20:52 | symbioquine[m] | Yeah, depends how expensive it is to keep that container running all the time :) |
| 20:53 | mstenta[m] | the `docker run` might be simpler |
| 20:53 | mstenta[m] | so... another thing to think about: it's possible to run tests on sqlite3 |
| 20:53 | mstenta[m] | without needing a db container |
| 20:54 | mstenta[m] | i think i got that to work early on, but haven't tried since |
| 20:54 | mstenta[m] | and i suppose there's an argument for keeping consistent and running tests on postrgresql |
| 20:54 | symbioquine[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:54 | mstenta[m] | yup yup yup |
| 20:55 | symbioquine[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:55 | mstenta[m] | docs.docker.com/engine/reference/command |
| 20:55 | mstenta[m] | whoa now you're taking it to the next level! ;-) |
| 20:55 | mstenta[m] | maybe we do that in github... not locally haha |
| 20:55 | symbioquine[m] | exactly |
| 20:56 | symbioquine[m] | Prove that all three work at checkin time, but devs can mostly work against whichever is fastest |
| 20:56 | mstenta[m] | microsoft is giving us those free cpu cycles ;-) |
| 20:56 | mstenta[m] | yea speed is most important locally |
| 20:56 | mstenta[m] | i generally only run individual tests locally |
| 20:56 | symbioquine[m] | with some "advanced instructions" for doing the full test when something breaks only on some of the DBs |
| 20:56 | mstenta[m] | and then push to github for the full test |
| 20:57 | symbioquine[m] | :) |
| 20:57 | mstenta[m] | i'm curious about drupal.org testing infrastructure too... but i say we stick to github for now |
| 20:57 | mstenta[m] | d.o infrastructure team has enough on their plate :-P |
| 20:58 | mstenta[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:58 | symbioquine[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:58 | mstenta[m] | (and just testing patches too) |
| 20:58 | mstenta[m] | oh yea i've done both |
| 20:58 | mstenta[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:59 | mstenta[m] | but lately i've been lazy and have just been using `2.x` directly to my fork :-) |
| 20:59 | symbioquine[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:02 | symbioquine[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:07 | mstenta[m] | oh yea that could be nice |
| 21:11 | mstenta[m] | maybe just simply: `2x-**`? |
| 21:11 | symbioquine[m] | yeah |
| 21:34 | mstenta[m] | great postgis discussion in the forum :-) |
| 21:36 | mstenta[m] | speaking of geodata... i need to debug the KML geocoding :-( |
| 22:10 | mstenta[m] | ah ha! easy fix! |
| 22:10 | mstenta[m] | www.drupal.org/project/geocoder/issues/3 |