< 052022-01-06⋎07 >

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
09:00*hra38192639[m] has quit (Quit: You have been kicked for being idle)
09:00*AllanMacGregor[m has quit (Quit: You have been kicked for being idle)
09:00*steinfarm[m] has quit (Quit: You have been kicked for being idle)
09:00*kunigunde[m] has quit (Quit: You have been kicked for being idle)
09:00*harry[m]12 has quit (Quit: You have been kicked for being idle)
09:00*gunter[m] has quit (Quit: You have been kicked for being idle)
09:00*JanSonntag[m] has quit (Quit: You have been kicked for being idle)
10:05skipper_is[m]Nothing seems like it needs elevated privilege
10:05skipper_is[m]On farmOS 1.x, is there a way of checking what permissions affect a page? I've got a quick form that is only showing up for user 0, and cannot figure out why...
11:46mstenta[m]skipper_is: in Drupal 7 the access rules are defined in hook_menu
11:48mstenta[m]Oh but just remembering, for quick forms the permission was defined in hook_farm_quick_forms()
11:49mstenta[m]Eg: github.com/farmOS/farmOS/blob/c257226504
11:50mstenta[m]Oh is it possible you don't have any permissions declared in that hook?
15:59symbioquine[m]Is there interest in the [Dev call](farmos.discourse.group/t/interest-in-an-) today? I don't have specific topics, but I'm thinking of calling in and seeing if other folks do...
15:59mstenta[m]i'll be there :-)
15:59paul121[m]I have a few things on my mind if no one else brings anything :D
16:00*SpencerOnazi[m] has quit (Quit: You have been kicked for being idle)
16:00*davd[m] has quit (Quit: You have been kicked for being idle)
16:00*and712[m] has quit (Quit: You have been kicked for being idle)
16:00*gretel[m] has quit (Quit: You have been kicked for being idle)
16:00*mindcls[m] has quit (Quit: You have been kicked for being idle)
16:00mstenta[m]paul121: maybe i'll see if @SirSundays wants to join :-)
16:01mstenta[m](debugging some l10n stuff right now in github.com/farmOS/farmOS/issues/472)
16:01paul121[m]yes! they joined the dev call once before! haha ping Jan Sonntag
16:39mstenta[m]<mstenta[m]> "symbioquine paul121 : I wonder..." <- symbioquine paul121 I opened a PR for this: github.com/farmOS/farmOS/pull/473
16:39mstenta[m]Although, I just found this option for `matrix` strategy workflows: docs.github.com/en/actions/learn-github-
16:39mstenta[m]maybe we should just keep them in the same workflow and temporarily set that to `false` instead?
16:40mstenta[m]it sounds like that would allow the postgres and mariadb tests to continue even if sqlite3 fails
16:40mstenta[m]which is really the pressing issue...
16:41paul121[m]interesting. but also important to know if postgres passes but mysql fails!
16:42mstenta[m]yea, that would still be visible
16:42mstenta[m]the issue i'm constantly frustrated by is that sqlite3 fails pretty early (when this happens), and i have to keep rerunning the job to see if the other two work
16:44paul121[m]ah yeah
16:46symbioquine[m]What about `jobs.<job_id>.continue-on-error`?
16:47mstenta[m]saw that too...
16:47mstenta[m]but i think we still do want to see red when sqlite fails
16:47mstenta[m]otherwise we'll miss actual sqlite test failures
16:50symbioquine[m]It seems like that would depend how well those "failed, but continued" jobs are represented in the UI...
16:51symbioquine[m]If they're just shown as "passed" then I agree.
16:51mstenta[m]mm yea
16:51mstenta[m]that's my assumption
16:52mstenta[m]i'm opening another PR with the `fail-fast` approach...
16:57mstenta[m]github.com/farmOS/farmOS/pull/474
16:57mstenta[m]it is cleaner than the first PR, which I like
16:57mstenta[m]and keeps everything in the same file
17:03skipper_is[m]<mstenta[m]> "Eg: github.com/farmOS/..." <- I do indeed have it declared `'permission' => 'create farm_maintenance log entities',`
18:07skipper_is[m]Also, does anyone use Github Copilot? I just had a go and wow, it is very impressive!
18:55paul121[m]I have not! how do you try it out?
18:55paul121[m]also symbioquine I was thinking of the Cloud optimized geotiffs - just remembered: www.cogeo.org/
18:55paul121[m]s/symbioquine/skipper_is/
18:56paul121[m]sorry your internet wasn't working at symbioquine !
18:56skipper_is[m]copilot.github.com/
18:56symbioquine[m]Yeah, it's still dropping in and out :(
18:56symbioquine[m]I'm connected through my phone right now.
18:56skipper_is[m]Essentially, you start typing, and it makes suggestions - like any other IDE so far, but the suggestions are like entire functions in some cases...
18:57*uploaded an image: (24KiB) < libera.ems.host/_matrix/media/r0/downloa >
18:58skipper_is[m]So because my previous form element was a battery checkbox, it has suggested that my next option should be a textfield to record the battery level
18:58mstenta[m]oh yea i heard about this!
18:58skipper_is[m]Like... the entire element has been suggested!
18:59mstenta[m]man... what is programming going to look like when my kids are grown up 🤯
18:59skipper_is[m]Just write a brief description of what you want and it'll do the code...
18:59paul121[m]omg......
18:59skipper_is[m]"Program that records information from the farm" and it'll write the whole of FarmOS 10.x
19:00paul121[m]but really, "create a {blank} asset type" would really be useful!
19:01skipper_is[m]The next suggestion after the battery level option was prestart brake test, followed by oil and fuel levels...
19:01skipper_is[m]How does it know what a prestart check is!
19:04skipper_is[m]It's also just suggested all the related prestart $form_state[xx] for the submit function as well...
19:04skipper_is[m]It is terrifying, and will make me a lazy programmmer.
19:04paul121[m]crazy
20:19*natewrench123456 has joined
20:19*natewrench123456 has quit (Max SendQ exceeded)
21:04paul121[m]mstenta: what would you think about moving the codesniffer test out to another workflow? for the same reason to same time, unit testing can continue despite codesniffer errors
22:09mstenta[m]Hmm I don't think it will make much difference - codesniffer takes less than 10 seconds to run, compared to ~8 mins for tests (using this one as an example: github.com/mstenta/farmOS/runs/473141796)
22:10paul121[m]s/same/save/
22:10mstenta[m]but perhaps we could split it out to a separate job within the same workflow?
22:10mstenta[m]kinda like we did with the sqlite stuff?
22:11paul121[m]ah but I mean when the codesniffer fails. it prevents the unit tests from running
22:11mstenta[m]or i mean: set it up so that it won't stop other stuff
22:11mstenta[m]ah yea
22:11mstenta[m]remember the commit i showed on the dev call today? that split the docker build and test matrix into two separate "jobs"?
22:12mstenta[m]maybe we could move the codesniffer to it's own job too, which runs in parallel with the tests, but tests don't depend on it
22:13paul121[m]right, because that needs the dev image
22:13mstenta[m]ah yea
22:13mstenta[m]i can try that out in my `2.x-docker` branch
22:13mstenta[m]probably pretty simple
22:23mstenta[m]github.com/mstenta/farmOS/commit/a1770c4
22:23mstenta[m]testing now (the `docker run` command might need some adjustment, we'll see...) github.com/mstenta/farmOS/actions
22:25mstenta[m]* see...) github.com/mstenta/farmOS/actions/runs/1
22:25mstenta[m]s/a1770c44edb8c9cba7470a415b7c96b605a29925/137d967f92a441a1df7ec3315e78ecb472d5843c/
22:26mstenta[m]pretty neat how GitHub visualizes it:
22:26*uploaded an image: (19KiB) < libera.ems.host/_matrix/media/r0/downloa >
22:34mstenta[m]Hmm one drawback to this approach: I'm finding that the uploading/downloading of the artifacts between jobs is a non-trivial step... it took 2 min 5 s to upload(!!) and ~1.5 min to download and load it in the next job
22:36mstenta[m]i wonder if that will be like that consistently
22:41mstenta[m]seems like the upload took a long time just to get started (kept showing 0% for a long time)
22:42paul121[m]oh interesting
22:42mstenta[m]oof yea it's pretty painful how slow this is
22:45mstenta[m]it works though! github.com/mstenta/farmOS/runs/473298277
22:46mstenta[m]oof but it adds almost 4 minutes to the run! 😳
22:46mstenta[m]that's crazy
22:49mstenta[m]that might be a dealbreaker for this strategy
22:51mstenta[m]well... ok... so i just realized that we aren't compressing the docker image tarballs... 🤦
22:51mstenta[m]i'll give that a try and see if it makes a difference... might help, but probably not that much
22:52paul121[m]yeah, reading into it a little bit too, and it seems like they compress everything already
22:52mstenta[m]oh
22:53mstenta[m](pushed a commit to test anyway)
23:30paul121[m]that's a bummer tho :-(
23:30paul121[m]looked great

< 052022-01-06⋏07 >