Matthias De Smet
11/19/2024, 10:06 AMNicolas Vannieuwkerke
11/19/2024, 10:12 AMMatthias De Smet
11/19/2024, 10:14 AMNicolas Vannieuwkerke
11/19/2024, 10:14 AMNicolas Vannieuwkerke
11/19/2024, 10:15 AMMatthias De Smet
11/19/2024, 10:15 AMNicolas Vannieuwkerke
11/19/2024, 10:16 AMMatthias De Smet
11/19/2024, 10:17 AMNicolas Vannieuwkerke
11/19/2024, 10:21 AMEdmund
11/19/2024, 2:15 PMMatthias De Smet
11/19/2024, 2:15 PMMatthias De Smet
11/19/2024, 2:17 PMMatthias De Smet
11/19/2024, 2:17 PMNicolas Vannieuwkerke
11/19/2024, 2:17 PMEdmund
11/19/2024, 2:20 PMMatthias De Smet
11/19/2024, 2:21 PMMatthias De Smet
11/19/2024, 2:22 PMEdmund
11/19/2024, 2:23 PMMatthias De Smet
11/19/2024, 2:24 PMMatthias De Smet
11/19/2024, 2:24 PMEdmund
11/19/2024, 2:36 PMMaxime Garcia
11/19/2024, 3:01 PMsarek
11/19/2024, 3:01 PMsarek
11/19/2024, 3:02 PMJames Fellows Yates
11/19/2024, 3:17 PMJames Fellows Yates
11/19/2024, 3:17 PMsarek
11/19/2024, 3:25 PMEdmund
11/19/2024, 3:43 PMHuh does spinning up loads more short VMs (presumably) kill less polar bears than one long one?Idk if it really spins up a VM behind the scenes. @Adam Talbot had a lot of insight into it, I think the TLDR of it is each action yaml file get's it's own VM. Hence why everything was in one file. So technically we might spin up a pytest-workflow VM every-time, but we're probably never scaling it, and we can make the trade off and focus on being more efficient with our nf-test tests. There's also the GPU tests now, which have completely separate runners that have to spin up. In summary, there's a couple of things the get "spun" up. 1. The runners (An EC2 instance) 2. The jobs(which how the get passed to different runners is the confusing bit) The number of jobs doesn't really matter, it's about the number of runners idling IMO. See the chart for an example, the CPUs are sipping a third of the power idling(which it's not like they're turning them on and off at AWS anyways 😆) So we can optimize for: 1. Developer time(failed CI because who knows, waiting for tests to pass, rerunning tests) 2. % of Runner usage 3. Being most "efficient" in the 1-to-1 match with jobs and tests The third IMO just makes us feel good, but isn't actually the best, because we end up just using CI time testing the "modules that changed" when a PR branch get's out of date, or re-running for conda errors. There's bigger fish to fry is what I'm trying to get across. All that considering these are 2 CPU jobs that we're spinning up, and if you're talking about nf-core's overall global carbon footprint we could probably do a lot more bang for our buck focusing on https://github.com/nf-core/modules/issues/6629 not optimizing our module testing. So I'd be interested in opinions on where to focus given our limited resource is time. Should we focus on figuring out how to actually track our GitHub action CO2 emissions, focus on making progress on developer experience and hope it evens out in the case we're actually being less efficient?
Edmund
11/19/2024, 3:48 PMWas there a big 'ping whole channel' announcement of this testing that I missed?No there was not. There's been a lot of discussion in the PR and various slack threads https://github.com/nf-core/modules/pull/6286 if anyone wants to catch up on the discussion, but I didn't hear anyone holding back on update anymore, and got tired of the PR getting out of date, and wasting more time merging in CI changes.
Simon Pearce
11/19/2024, 3:49 PMEdmund
11/19/2024, 3:50 PMEdmund
11/19/2024, 3:53 PMAdam Talbot
11/19/2024, 4:12 PM> Huh does spinning up loads more short VMs (presumably) kill less polar bears than one long one?
Idk if it really spins up a VM behind the scenes. @Adam Talbot had a lot of insight into it, I think the TLDR of it is each action yaml file get's it's own VM. Hence why everything was in one file.Each job item gets it's own VM, with each item in the matrix being considered 1 job. Therefore you get 1 * number of jobs VMs. Previously this meant 1 vm to check for changes, 1 vm to check for completion at the end, plus whatever tasks were ran. In terms of which is better for polar bears, it's hard to quantify. All these machines are sat idle on Azure (GHA) or AWS (nf-core self hosted) anyway, they're virtual slices of larger machines that already exist so we can't control that. We pay an overhead for every machine we spin up (install Nextflow, nf-core, nf-test etc) but we get it back when there are few tasks. If a single nf-test is triggered, we will install Nextflow 3 times (conda, singularity, docker) and with the new method we will install it 15 times. On the other hand, when there are more than 13 jobs, we will spend less time performing the overheads. Complexity and turnaround time will decrease, which is a good thing, but visibility goes down. I would focus on developer experience first because the worst thing for killing polar bears is having to do something 3 million times because it's not obvious what the problem is.
James Fellows Yates
11/19/2024, 6:06 PMAdam Talbot
11/19/2024, 6:21 PMMaxime Garcia
11/19/2024, 6:21 PMMatthias De Smet
11/19/2024, 6:22 PMSimon Pearce
11/19/2024, 6:24 PMMatthias De Smet
11/19/2024, 6:25 PMMatthias De Smet
11/20/2024, 7:42 AMFile was unable to be removed Error: EACCES: permission denied, rmdir '/opt/actions-runner/_work/modules/modules/~/tests/b40b8b32f66f0fcbee77a801ab0b4b8b/work/53/776cd4b431c0beea7deabcafe031e9'Adam Talbot
11/20/2024, 10:15 AMAdam Talbot
11/20/2024, 10:15 AMMatthias De Smet
11/20/2024, 10:16 AMMatthias De Smet
11/20/2024, 10:16 AMAdam Talbot
11/20/2024, 10:16 AMAdam Talbot
11/20/2024, 10:16 AMAdam Talbot
11/20/2024, 10:17 AM/usr/bin/git clean -ffdx
warning: failed to remove ~/tests/ce86f02e6ade16371c1d4c7ce8553def/work/67/7603c0ec921804d4dfaa5eecb30443/test.md5: Permission denied
warning: failed to remove ~/tests/ce86f02e6ade16371c1d4c7ce8553def/work/67/7603c0ec921804d4dfaa5eecb30443/test_1.fastq.gz: Permission denied
// repeated a bunch more times
warning: failed to remove ~/tests/ce86f02e6ade16371c1d4c7ce8553def/work/67/7603c0ec921804d4dfaa5eecb30443/.command.sh: Permission denied
Removing .nf-test-1e247c80cacf91ffbfd4d4214a3b2ab4.nf
// repeated a bunch more times
Removing .nf-test-f6bd83ade916ce1b4896170b6a33c77b.nf
Removing .nf-test.log
Removing .nf-test/
Removing ~/tests/ce86f02e6ade16371c1d4c7ce8553def/work/stage-a527d840-276c-4640-9138-d3b4ffd63970
Removing ~/tests/ce86f02e6ade16371c1d4c7ce8553def/meta
Removing ~/tests/ce86f02e6ade16371c1d4c7ce8553def/output
Removing ~/tests/ce86f02e6ade16371c1d4c7ce8553def/.nextflow
Removing ~/tests/cd8e4969e48fe8280406fc7b5dd4d3fe
// repeated a bunch more times
Removing ~/tests/e7d38eadbb75d173e6ef5ec73260da03Adam Talbot
11/20/2024, 10:19 AMAdam Talbot
11/20/2024, 10:19 AMAdam Talbot
11/20/2024, 10:22 AMMatthias De Smet
11/20/2024, 10:22 AMMaxime Garcia
11/20/2024, 10:24 AM"interesting" like a contagious disease is interestingthat's the kind of interesting I like
Adam Talbot
11/20/2024, 10:26 AMMatthias De Smet
11/20/2024, 10:26 AMAdam Talbot
11/20/2024, 10:27 AMAdam Talbot
11/20/2024, 10:28 AMmashehu
11/20/2024, 10:31 AMmashehu
11/20/2024, 10:32 AMAdam Talbot
11/20/2024, 11:04 AMFamke Bäuerle
11/20/2024, 11:51 AMAdam Talbot
11/20/2024, 11:54 AMAdam Talbot
11/20/2024, 12:21 PMFamke Bäuerle
11/20/2024, 12:26 PMFamke Bäuerle
11/20/2024, 12:26 PMAdam Talbot
11/20/2024, 12:31 PMAdam Talbot
11/20/2024, 12:32 PMAdam Talbot
11/20/2024, 12:34 PMgit fetch
git cherry-pick a9f36eac0178b8b18f08e943b9080555a42843ceMatthias De Smet
11/20/2024, 12:53 PMAdam Talbot
11/20/2024, 12:53 PMMatthias De Smet
11/20/2024, 12:54 PMAdam Talbot
11/20/2024, 12:54 PMMatthias De Smet
11/20/2024, 12:54 PMAdam Talbot
11/20/2024, 12:54 PMMatthias De Smet
11/20/2024, 12:55 PMMatthias De Smet
11/20/2024, 12:56 PMEdmund
11/20/2024, 1:52 PMAdam Talbot
11/20/2024, 2:14 PMAdam Talbot
11/20/2024, 2:14 PMEdmund
11/20/2024, 2:18 PMAdam Talbot
11/20/2024, 2:35 PMOkay so first one is inNot yet - still blocked by rules and passing tests and stuff
Edmund
11/20/2024, 3:33 PMAdam Talbot
11/20/2024, 3:37 PMAdam Talbot
11/20/2024, 3:37 PMEdmund
11/20/2024, 3:40 PMEdmund
11/20/2024, 4:58 PMAdam Talbot
11/20/2024, 5:36 PMAdam Talbot
11/20/2024, 5:37 PMtoomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading:Oh
Edmund
11/20/2024, 5:37 PMAdam Talbot
11/20/2024, 5:37 PMEdmund
11/20/2024, 5:38 PMEdmund
11/20/2024, 5:38 PMAdam Talbot
11/20/2024, 5:39 PMAdam Talbot
11/20/2024, 5:41 PMrm -rf , what could possibly go wrong?Edmund
11/20/2024, 6:11 PMCan't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/opt/actions-runner/_work/modules/modules/.github/actions/self-hosted-cleanup'. Did you forget to run actions/checkout before running your local action?
shakefistEdmund
11/20/2024, 6:16 PMAdam Talbot
11/20/2024, 6:18 PMEdmund
11/20/2024, 6:20 PMhttps://tenor.com/brr1e.gif▾
Edmund
11/20/2024, 6:22 PMAdam Talbot
11/20/2024, 6:25 PM- name: 'Cleanup build folder'
run: |
ls -la ./
rm -rf ./* || true
rm -rf ./.??* || true
ls -la ./mashehu
11/20/2024, 6:26 PMmashehu
11/20/2024, 6:26 PMEdmund
11/20/2024, 6:26 PMmashehu
11/20/2024, 6:28 PMEdmund
11/20/2024, 6:28 PMEdmund
11/20/2024, 6:28 PMEdmund
11/20/2024, 6:29 PMmashehu
11/20/2024, 6:30 PMAdam Talbot
11/20/2024, 6:31 PMAdam Talbot
11/20/2024, 6:31 PMEdmund
11/20/2024, 6:31 PMmashehu
11/20/2024, 6:32 PMEdmund
11/20/2024, 6:33 PMEdmund
11/20/2024, 6:36 PMAdam Talbot
11/20/2024, 6:38 PMAdam Talbot
11/20/2024, 6:38 PMFamke Bäuerle
11/21/2024, 3:29 PMFamke Bäuerle
11/21/2024, 3:30 PMEdmund
11/21/2024, 3:40 PMFamke Bäuerle
11/21/2024, 3:44 PMFamke Bäuerle
11/21/2024, 3:53 PMEdmund
11/21/2024, 4:51 PMmashehu
11/21/2024, 4:53 PMmashehu
11/21/2024, 4:56 PMEdmund
11/21/2024, 4:57 PMmashehu
11/21/2024, 4:59 PMmashehu
11/21/2024, 4:59 PMmashehu
11/21/2024, 5:02 PMEdmund
11/21/2024, 5:05 PMmashehu
11/21/2024, 5:24 PMFamke Bäuerle
11/22/2024, 8:06 AMFamke Bäuerle
11/22/2024, 9:37 AMmashehu
11/22/2024, 9:38 AM