< 142021-12-15⋎16 >

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:49paul121[m]Okay, after seeing this bug I'm motivated to add some tests that simply request all of our routes and asserts a 200 response: github.com/farmOS/farmOS/pull/465
00:50paul121[m]Ideally we could also use this to request the different page views of assets, logs, etc
00:51paul121[m]I imagine we could create a re-usable FunctionalTest base class for this... but then every test class that implements this will do a complete install, adding lots of test time
00:52paul121[m]If we could have a single functional test that performs all of these requests after one install that would be much better
00:53paul121[m]ideas? maybe it could just be a "profile" test that we manually update to include all the necessary modules + routes we want to test?
00:53paul121[m]s/ideas? maybe it could just be a "profile" test that we manually update to include all the necessary modules + routes we want to test?/ideas? maybe it could just be a "profile" test that we manually update to depend on all the necessary modules + and include routes we want to test?/
05:18paul121[m]s/ideas? maybe it could just be a "profile" test that we manually update to include all the necessary modules + routes we want to test?/ideas? maybe it could just be a "profile" test that we manually update to depend on all the necessary modules + include routes we want to test?/
09:00*Anonymous[m]12 has quit (Quit: You have been kicked for being idle)
09:40*farmBOT has joined
12:01mstenta[m]paul121: I like the idea of a single high-level test for this. Perhaps in github.com/farmOS/farmOS/tree/2.x/module
12:03mstenta[m]Whereas all other tests are generally unit tests (for specific pieces of code) or functional tests (for isolated functions), this could be focused on a very high-level general testing - with the main goal of catching errors that bubble up from stuff we might be missing with lower level tests. It can serve as a last-resort catch-all, so to speak, which would help to inform improvements that may be needed in the lower level tests.
12:03mstenta[m]s/functions/functionality/
12:04mstenta[m]The challenge might be in creating a representative set of content to test against. Perhaps this is also where the `farm_demo` module would be useful? We've talked about that as a "contrib" module, but perhaps it should be included in core for this very reason.
12:05mstenta[m]I know jgaehring was very interested in setting that up for Field Kit testing too. Maybe it would be worth all of us teaming up and sketching something up real quick together?
12:06mstenta[m]Then, this high-level test could essentially just be an array of URLs to iterate over and test for 200 responses, with a dependency on `farm_demo`
13:16mstenta[m]Should we try to get farmOS onto PHP 8 and make that the minimum version requirement before beta?
13:16mstenta[m]www.drupal.org/project/farm/issues/31865
13:18mstenta[m]GEOS support might be the only blocker: git.osgeo.org/gitea/geos/php-geos/issues
13:18mstenta[m]www.drupal.org/project/farm/issues/31864
13:47jgaehring[m]<mstenta[m]> "I know jgaehring was very..." <- oh yea, I was thinking I'd probably punt on this til after the holidays, since I don't strictly need it for FK beta, I don't think
13:48mstenta[m]oh definitely
13:48mstenta[m]we can add these high level tests after beta
13:49jgaehring[m]for ref:
13:49jgaehring[m]farmos.discourse.group/t/farmos-demo-dat
13:50jgaehring[m](also, have we still not hit topic 1000 yet???)
16:12paul121[m]<mstenta[m]> "Should we try to get farmOS onto..." <- I know there is at least 1 outstanding issue for simple_oauth and PHP 8 (updated our issue to reference that)
16:12mstenta[m]oh ok - good to know
16:13paul121[m]Once concern I have with requiring PHP 8 is that it might limit what contrib modules are available to us...
16:13paul121[m]I've heard that Drupal 10 might have a PHP 8 requirement, and a release is scheduled 6 months from now (June 2022)? So maybe better to wait until then?
16:13mstenta[m]Mm that's a good point
16:13paul121[m]When it is "official" ?
16:14mstenta[m]Yea perhaps... I wonder if we would need to bump our major version to 3.x if we change our PHP minimum requirements after beta?
16:14mstenta[m]What do you think?
16:14mstenta[m]PHP 7.4 is already EOL - with security releases until next Nov
16:14paul121[m]yeah good question, not sure
16:14mstenta[m]well what about this:
16:15mstenta[m]what if we just update our installation docs to say something like "PHP 7.4+ but PHP 8 will be required soon" or something to that effect
16:15mstenta[m]basically: can we set expectations ahead of time, so that we can do it in a minor version?
16:16mstenta[m]is there a patch for simple_oauth available?
16:16mstenta[m]if we can "officially" move to PHP 8 now, it wouldn't necessarily prevent others from using contrib
16:16mstenta[m]the question of what version is packaged in Docker could be separate perhaps
16:17paul121[m]mstenta[m]: it looks like there is a MR on that issue from the maintainer. But tests aren't running. Simple oauth is in the middle of a fairly big cleanup of dependencies and some other bugs. It's all somewhat tied together
16:17mstenta[m]eg:
16:17mstenta[m]1) patch simple_oauth and test everything to make sure php 8 *works*
16:17mstenta[m]2) change our docs to say "Requires PHP 8" (but still keep PHP 7.5 in docker for now)
16:17mstenta[m]3) at some point in the future, update Docker to PHP 8
16:18paul121[m]right, I was just thinking that, once we require PHP 8 it doesn't necessarily mean 7.5 won't work?
16:19mstenta[m]right
16:19paul121[m]as long as we (and contrib) don't use the latest features in v8?
16:19mstenta[m]7.4 you mean (there is no 7.5)
16:19mstenta[m]yea
16:20paul121[m]yes - you mentioned 7.5 above, I wasn't sure :-)
16:20mstenta[m]and then once we move to D10 we can start using some of the nice PHP 8 stuff :-)
16:20mstenta[m]oh oops
16:20paul121[m]so what we're really saying is farmOS requires all of its dependencies to support PHP 8
16:20paul121[m]so that later on we don't have to worry about that
16:21mstenta[m]yea
16:21mstenta[m]unofficially we still support 7.4+
16:21mstenta[m]yea it's largely an expectation thing i think
16:27paul121[m]sounds good to me!

< 142021-12-15⋏16 >