| 13:05 | * | Kingdutch has joined |
| 13:07 | * | The_Kingdutch has quit (Ping timeout: 256 seconds) |
| 16:26 | mstenta[m] | symbioquine: we're updating to Composer 2, but it appears that `nathandentzau/composer-patches-dev` doesn't support it yet |
| 16:27 | mstenta[m] | iirc, the only reason we have that is to patch drupal core for paratest, and only in the dev environment |
| 16:27 | mstenta[m] | so i think i may just move it from `patches-dev` to `patches` and remove that dependency |
| 16:27 | mstenta[m] | what do you think? |
| 16:27 | symbioquine[m] | Hmmm, weren't there other patches... |
| 16:28 | mstenta[m] | We do already include `cweagans/composer-patches` |
| 16:28 | symbioquine[m] | github.com/farmOS/farmOS/blob/2cd058167f |
| 16:28 | symbioquine[m] | ah, so just the patches-dev part doesn't work? |
| 16:28 | mstenta[m] | We only added `nathandentzau/composer-patches-dev` for `patches-dev` |
| 16:28 | mstenta[m] | yea |
| 16:28 | symbioquine[m] | yeah, I see |
| 16:28 | symbioquine[m] | Cool, I think that makes sense then |
| 16:29 | mstenta[m] | I'll push a test to my fork and see how it goes |
| 16:32 | symbioquine[m] | It would be nice if they'd get back to me with a review on www.drupal.org/project/drupal/issues/319 sometime soon... |
| 16:33 | symbioquine[m] | I don't have a sense for how long changes like that normally take though. |
| 16:33 | mstenta[m] | maybe i'll set it to "Reviewed and Tested by the Community" ... see if that nudges them :-) |
| 16:34 | symbioquine[m] | Thanks! |
| 16:35 | mstenta[m] | but yea in general molasses moves faster than core issues |
| 16:42 | mstenta[m] | wow @longwave responded pretty quickly after that :-) |
| 16:43 | mstenta[m] | he's a long time drupal contributor |
| 16:46 | symbioquine[m] | Yeah, that's a good question he raises... I definitely haven't tested it under windows. |
| 16:51 | mstenta[m] | blarg - hitting some other issues with composer 2 now |
| 16:51 | mstenta[m] | (should have known this would be a rabbit hole) |
| 16:51 | symbioquine[m] | :) |
| 17:37 | mstenta[m] | symbioquine paul121 fyi i'm doing a bit of force-pushing on `composer-project` to try to figure out the composer 2 issue... (poor form i know.. sorry) |
| 17:38 | mstenta[m] | (maybe i'll try to right it up so i can test without doing that...) |
| 17:38 | mstenta[m] | * (maybe i'll try to rig it up so i can test without doing that...) |
| 17:39 | symbioquine[m] | Wouldn't that mean that folks building their own images at the same time might get unpredictable results? |
| 17:39 | mstenta[m] | yes. (poor form) |
| 17:39 | mstenta[m] | i'll undo and find a better way. |
| 17:41 | symbioquine[m] | Can't you just set `PROJECT_REPO` for the docker build? |
| 17:41 | mstenta[m] | yea doing that now (admittedly i was being lazy. and optimistic that it was going to work on the first try) |
| 17:42 | mstenta[m] | thank you for shaking sense into me |
| 17:43 | mstenta[m] | on a related note... i'd love to merge the `composer-project/composer.json` file into the farmOS repo at some point... and automate subtree-splitting it out to its own repo via github actions or something |
| 17:44 | symbioquine[m] | <mstenta[m] "on a related note... i'd love to"> Sounds interesting... is there an issue for that already? |
| 17:44 | mstenta[m] | i don't think so |
| 17:45 | paul121[m] | `composer repositories.farmos git $path_to_repo` |
| 17:45 | mstenta[m] | i did some digging a while back... Drupal core does this for it's own github.com/drupal/recommended-project |
| 17:46 | mstenta[m] | (i believe... or maybe that's just for github.com/drupal/core) |
| 17:46 | mstenta[m] | i think this is the related issue: www.drupal.org/project/infrastructure/is |
| 17:47 | paul121[m] | I did something similar for the tugboat config. But doesn't solve the problem of how to organize our farmos repo |
| 21:34 | mstenta[m] | Got Composer 2 working :-) |
| 21:41 | mstenta[m] | Now we just need to get onto PHP 8 ;-) |
| 21:42 | mstenta[m] | (www.drupal.org/project/farm/issues/31865) |
| 21:58 | mstenta[m] | symbioquine: do you know if it's possible to use `matrix.strategy` *in-between* sets of steps in github actions? |
| 21:59 | * | < matrix.org/_matrix/media/r0/download/mat > |
| 21:59 | mstenta[m] | (where only step 2 would run in parallel) |
| 21:59 | mstenta[m] | * (where only step 2 would run the tests in three databases in parallel) |
| 22:01 | mstenta[m] | the reason I ask: i'm thinking about moving to using github actions to build our Docker images and then push to Docker Hub, instead of having Docker Hub do that itself... for a couple of reasons |
| 22:01 | mstenta[m] | and it would be cool if we could set it up to only push to docker hub if the tests pass |
| 22:01 | mstenta[m] | but we wouldn't want to build/push three times |
| 22:02 | mstenta[m] | one of the reasons for building via GitHub Actions is we could build ARM images :-) |
| 22:02 | mstenta[m] | github.com/farmOS/farmOS/issues/339 |
| 22:02 | symbioquine[m] | Hmmm, I don't think it's easy without pushing the image somewhere between the steps... But I can take a look this evening once I'm back at my computer. |
| 22:03 | mstenta[m] | oh no worries - just curious - not something i'm planning on doing soon :-) |
| 22:03 | mstenta[m] | that github issue just got my gears turning - it would be cool to pull some of these things together into github actions |
| 22:04 | symbioquine[m] | Yeah! |
| 22:04 | mstenta[m] | it would improve the docker hub images too - by ensuring they are always passing tests before they get published |
| 22:06 | mstenta[m] | Alternatively, I wonder if it's possible for one GitHub Action workflow to trigger a different workflow? |
| 22:07 | mstenta[m] | and then split them up - eg: have one master that runs whenever something is pushed, which builds the images, runs the tests in a different workflow, and then continues if it passes |
| 22:08 | symbioquine[m] | I think that's possible, but it requires pushing the image somewhere in between them |
| 22:08 | mstenta[m] | mmm interesting - ok |
| 22:08 | mstenta[m] | github has a container registry |
| 22:09 | mstenta[m] | maybe we could use that as a temporary in-between, but delete the images automatically after they are pushed to docker hub |
| 22:09 | symbioquine[m] | Yeah something like that could work |
| 22:09 | mstenta[m] | ⚙️🤔 |
| 22:12 | mstenta[m] | i'll spin up an issue for future explorations... |
| 22:35 | mstenta[m] | www.drupal.org/project/farm/issues/32031 |
| 23:15 | * | justanormalguy has joined |