< 242020-11-25⋎26 >

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
02:59symbioquine[m]It looks like there's a race condition in how the Drupal test scaffolding deal with directory creation; github.com/farmOS/farmOS/pull/378#issuec
02:59symbioquine[m] * It looks like there's a race condition in how the Drupal test scaffolding deals with directory creation; github.com/farmOS/farmOS/pull/378#issuec
03:02symbioquine[m]With a rudimentary patch in place, the phpunit test run takes about 1 min 35 seconds on the Github build servers.
03:03*uploaded an image: image.png (80KiB) < matrix.org/_matrix/media/r0/download/mat >
03:07symbioquine[m]In related news, the paratest changes + [this guidance](shusson.info/post/non-durable-postgres-f) tuning postgres yields ~20s test run times on my local (admittedly beefy) system.
03:08*uploaded an image: image.png (15KiB) < matrix.org/_matrix/media/r0/download/mat >
03:13*sent a long message: < matrix.org/_matrix/media/r0/download/mat >
03:15symbioquine[m]Important Note: The above change should only be used for testing - not production - since it makes Postgres writes potentially non-durable! :)
11:03mstenta[m]WHOA
11:04mstenta[m]Man thanks for digging into these optimizations symbioquine ! It will make rapid testing much easier!
11:45mstenta[m]Just looking at `docker-compose.testing.yml` again - maybe we should add a few brief comments to explain that change, as well as the `test-runner` `command` line
11:45mstenta[m]Could figure it out by digging into `git blame` and finding the original issue, but a comment would be quicker :-)
11:46mstenta[m]Thinking specifically about the need for `sleep`
11:57mstenta[m]Commented on all the thread... :-)
11:57mstenta[m] * Commented on all the threads... :-)
13:07mstenta[m]symbioquine: hmm we're seeing some new test failures... not sure what's causing them...
13:07mstenta[m]github.com/mstenta/farmOS/runs/145351388
13:07mstenta[m]in 2.x
13:09mstenta[m]Or rather... not failures... deprecation notices (but causes the action to show as failed)
13:10mstenta[m]I don't think it's a result of any of our changes - I pushed `2.x` last night and it worked - seems to have started this morning
13:10mstenta[m]So maybe an upstream change?
13:11mstenta[m](We've seen upstream changes cause failures like this already. eg: new default codesniffer rules enabled upstream that cause our code sniffer step to fail)
15:53paul121[m]mstenta: those failures may be due upstream changes in the `simple_oauth` library. Specifically this commit: git.drupalcode.org/project/simple_oauth/
15:53symbioquine[m]Ah! That explains it... I was seeing those too, but couldn't figure out how I had caused them...
15:54symbioquine[m]github.com/symbioquine/farmOS/runs/14515
15:55mstenta[m]Hmm but why would it just start happening today?
15:55paul121[m]I know... not sure
15:56mstenta[m]symbioquine: yea I didn't think it was your changes either, because I pushed a commit last night that did not fail
15:56symbioquine[m]<mstenta[m] "Hmm but why would it just start "> I was thinking about this problem recently...
15:56symbioquine[m]I think it's because the composer.lock file isn't being checked in.
15:56mstenta[m]Yea
15:57mstenta[m]I think that's definitely part of it
15:57symbioquine[m]Each time builds run you get a whole new roll-of-the-dice set of dependency versions :)
15:57mstenta[m]> (We've seen upstream changes cause failures like this already. eg: new default codesniffer rules enabled upstream that cause our code sniffer step to fail)
15:57mstenta[m]Yup
15:57mstenta[m]paul121 and I have talked about that
15:57mstenta[m]We should commit `composer.lock` eventually
15:57mstenta[m]But we figured it wouldn't hurt to be "bleeding edge" right now :-)
15:57mstenta[m]Just means we need to fix these kinds of things more often
15:58symbioquine[m]Yeah, it has its advantages too
15:58mstenta[m]As we get closer to 2.0.0 we'll definitely want to commit `composer.lock` though - agreed
15:59mstenta[m]paul121 had the idea to set up a "nightly" test that works without `composer.lock` as well... so we can be aware of these things, without necessarily being blocked by them
15:59mstenta[m]Worth noting: the tests are not FAILING
15:59mstenta[m]they're just returning an exit code 1 - because of the deprecation notices I think
16:00mstenta[m]And looks like all the notices are in `farm_api` - so we can probably just fix them ourselves
16:00paul121[m]if `simple_oauth` is at fault, why didn't we see this earlier? That commit was released in 5.0.1 almost two months ago? And we are pinned at `^5.0` ?
16:01mstenta[m]I don't think it's `simple_oauth`
16:01mstenta[m]I think probably some things were just deprecated in the testing infrastrucutre upstream
16:01mstenta[m]Which weren't deprecated before
16:01mstenta[m]So now we're seeing warnings
16:01paul121[m]ahh okay
16:02mstenta[m]Looks like simple fixes in the `farm_api` module will fix it
16:02paul121[m]ahh well... some of those tests inherit from `simple_oauth`
16:02mstenta[m]oooh :-(
16:02mstenta[m]doh
16:02mstenta[m]time to open a d.o issue i guess :-/
16:03mstenta[m](in drupal.org/project/simple_oauth)
16:03paul121[m]yea. this is what caught us last time: www.drupal.org/project/simple_oauth/issu
16:04paul121[m]I started investigating converting these to Kernel tests, which would NOT inherit from `simple_oauth`
16:04mstenta[m]hmm - well... should we maybe temporarily move `farm_api` tests to a `farm_api` group - and stop running them in GHActions until it's fixed?
16:04paul121[m]it was mostly convenience to inherit from their test base
16:04mstenta[m]oh ok
16:04mstenta[m]well if that looks like a good way forward...
16:05paul121[m]but yea, I'm not sure if its an easy way forward... haha
16:05mstenta[m]ok
16:06mstenta[m]would it be easier to patch `simple_oauth`?
16:07paul121[m]yea I think so
16:07paul121[m]we consider refactoring our Functional tests to NOT inherit from `simple_oauth`
16:08paul121[m]but then I think we'd need to re-create 90% of the `setUp()` that their base class does anyways
16:08mstenta[m]right
16:08mstenta[m]seems like contributing a patch is all around easiest and best for upstream too
16:08mstenta[m]e0ipso would need to fix it eventually anyway :-)
16:10paul121[m]yep!
16:10mstenta[m]symbioquine: ok if we close this PR? github.com/farmOS/farmOS/pull/285
16:10mstenta[m]maybe worth looking into re-implementing on 2.x!
16:11mstenta[m]and on that note... maybe we want to consider adding this: www.drupal.org/project/key_value_field
16:12symbioquine[m]<mstenta[m] "symbioquine: ok if we close this"> Sounds good
16:12mstenta[m]On another topic...
16:12mstenta[m]I merged the `CONTRIBUTING.md` change, but it's not appearing at the top of hte issue queue :-(
16:13mstenta[m]I wonder if something else is required
16:13mstenta[m]Oh also... I found a neat feature!
16:14mstenta[m]Check out the `contact_links` here: github.com/GenericMappingTools/gmt/blob/
16:14mstenta[m]Results in: github.com/GenericMappingTools/gmt/issue
16:14mstenta[m]We can link to our forum that way!
16:15paul121[m]really cool!
16:15*uploaded an image: image.png (62KiB) < matrix.org/_matrix/media/r0/download/mat >
16:15mstenta[m]I'll give it a go...
16:16mstenta[m]Oh yes... the `ISSUE_TEMPLATE` works... but I was hoping to see something like this with the addition of `CONTRIBUTING.md`:
16:16*uploaded an image: image.png (127KiB) < matrix.org/_matrix/media/r0/download/mat >
16:16*uploaded an image: Screenshot from 2020-11-25 11-16-38.png (78KiB) < matrix.org/_matrix/media/r0/download/mat from 2020-11-25 11-16-38.png >
16:19*uploaded an image: Screenshot from 2020-11-25 11-19-32.png (30KiB) < matrix.org/_matrix/media/r0/download/mat from 2020-11-25 11-19-32.png >
16:19mstenta[m]Neat!
16:23mstenta[m]Should I add a link to this chat there as well?
16:23paul121[m]Doesn't hurt
16:39mstenta[m]I feel like we could probably close github.com/farmOS/farmOS/issues/374 once I figure out the `CONTRIBUTING.md` link - what do you think symbioquine paul121
16:39mstenta[m]I like where we've landed on it - and we WILL keep it, so I think the question has been answered
16:40symbioquine[m]Makes sense to me
16:40mstenta[m]The issue templates alone will go a long way to directing newcomers to the forum and chat, and focus the GitHub issues on bug reports
16:41mstenta[m]We can leave current issues as-is, but slowly wind them down moving forward
16:48mstenta[m]A nice "spring cleaning" activity :-)
17:10paul121[m]so one of those deprecation notices seems to have been pretty popular got noticed pretty quickly: github.com/tymondesigns/jwt-auth/issues/
17:10paul121[m] * so one of those deprecation notices seems to have been pretty popular & got noticed pretty quickly: github.com/tymondesigns/jwt-auth/issues/
17:10mstenta[m]ah
17:10mstenta[m]upupstream
17:11paul121[m]yes haha
17:14symbioquine[m]<mstenta[m] "hmm - well... should we maybe te"> It seems like it would be nice to be able to ignore specific instances of warnings. i.e. ignore E_WARNINGs generated on this line(s) of these file(s). That way the test can still be kept to protect against other regressions while acknowledging that some warnings are expected until they get fixed upstream...
17:15mstenta[m]hmm yea... thought about that too... although we would want to see deprecation notices for our own code i think
17:15mstenta[m]so might be hard to separate
17:15symbioquine[m]It might be possible to do something like that with a decorated error handler function.
17:16symbioquine[m]For simplicity, the "configuration" of which to ignore could just be hard-coded into the function until it gets too unweildy.
17:16symbioquine[m] * For simplicity, the "configuration" of which to ignore could just be hard-coded into the function until it gets too unwieldy.
17:18paul121[m]maybe we ignore E_WARNINGs on all tests except for the nightly
17:19mstenta[m]yea that could work
17:19mstenta[m]would that require two nearly identical `run-test.yml` files though?
17:20mstenta[m]or maybe the logic to turn that off could be in the same one
17:20mstenta[m]i don't know what the mechanism is for turning those warnings off, so i can't really say how
17:21paul121[m]I think ALL of these deprecation notices were caused by the up-upstream `/lcobucci/jwt`: github.com/lcobucci/jwt/issues/550#issue
17:22mstenta[m]ah ok - so they need to be fixed there?
17:23mstenta[m]are they working on that? maybe this will go away as easily as it appeared? :-)
17:23paul121[m]no, its the approach they used to trigger deprecation notices in a new release (3.3.4)
17:24paul121[m]LOTS of tests are failing this morning with the same thing we are seeing :-)
17:24mstenta[m]oh ok haha
17:24paul121[m]so... pinning that to 3.3.3 should fix. I have a test running rn...
17:25mstenta[m]cool! is that in `simple_oauth`?
17:26paul121[m]no... simple_oauth uses thephpleague/oauth2-server and thephpleague/oauth2-server uses lcobucci/jwt
17:26mstenta[m]oh ok
17:27mstenta[m]are they working on a fix already in `thephpleague/oauth2-server`?
17:28mstenta[m]oh found it
17:28mstenta[m]github.com/thephpleague/oauth2-server/is
17:28paul121[m]yes I think so:
17:28paul121[m]> We worked together with both Passport and Oauth2-server maintainers to make sure everything is properly tested and gets released (they were just waiting for me to release things).
17:28mstenta[m]github.com/thephpleague/oauth2-server/pu
17:34paul121[m]Tests should pass for this... github.com/paul121/farmOS/commit/3d056d9
17:35symbioquine[m]<mstenta[m] "i don't know what the mechanism "> I was proposing something like this;
17:36symbioquine[m]Of course, Paul's solution is better for this case.
17:36mstenta[m]Ah gotcha!
17:36symbioquine[m]But in the future if there isn't an easy dependency fix...
17:41paul121[m]oh! theres actually a `$this->expectDeprecationMessage()` assertion for phpunit
17:41paul121[m]symfony.com/doc/current/components/phpun
17:43paul121[m]that would allow individual tests to handle this, rather than a catch-all like you're suggesting. I imagine there are use cases for both!
17:45symbioquine[m]Yeah that's a better strategy :)
17:45paul121[m]> Tests should pass for this... github.com/paul121/farmOS/commit/3d056d9
17:45paul121[m]mstenta tests passed. just need to keep an eye on `thephpleague/oauth2_server` and make sure `simple_oauth` bumps the dependency sooner rather than later
17:59mstenta[m]Awesome can you add a comment to composer.json to make note of that?
18:00mstenta[m]symbioquine I saw you used some method of commenting that I hadn't seen before...
18:00paul121[m]yea, my editor got mad when I tried to add a comment to JSON... maybe there is a way?
18:00mstenta[m]Yea one sec on my phone
18:01mstenta[m]symbioquine s paratest PR
18:01mstenta[m]Oh but maybe the composer-project one
18:01mstenta[m]symbioquine does that print to the screen by any chance? That would be nice :-)
18:02mstenta[m]github.com/farmOS/composer-project/pull/
18:11symbioquine[m]<mstenta[m] "symbioquine does that print to t"> I don't recall it doing so...
18:13symbioquine[m]Yeah, I don't think it prints anything related to that comment section during the composer install step.
18:14mstenta[m]Ah I guess we wouldn't typically see it anyway
18:15symbioquine[m]In case folks are curious, the most relevant discussion of how to comment in composer.json is at github.com/composer/composer/issues/5364
19:20*farmBOT has joined

< 242020-11-25⋏26 >