!UUYziobKGGxpovWyAN:nixos.org

Robotnix

240 Members
Build Android (AOSP) using Nix | https://github.com/danielfullmer/robotnix74 Servers

Load older messages


SenderMessageTime
12 Feb 2025
@atemu12:matrix.orgatemu12It's probably hard-coded07:13:18
@atemu12:matrix.orgatemu12You could also try using the github mirror07:13:38
@waltmck:matrix.orgwaltmckit looks like the number of jobs defaults to the number of logical cores from reading the code07:13:57
@atemu12:matrix.orgatemu12I've never done it myself but it ought to be possible using ROBOTNIX_MIRRORS07:14:16
@waltmck:matrix.orgwaltmckI capped the number of jobs to 4 and it appears to be chugging along, I'll see if it works. Might be smart to adjust the code so it works on CPUs with many cores07:18:34
@waltmck:matrix.orgwaltmck* I capped the number of jobs to 4 and it appears to be chugging along, I'll see if it works. Might be smart to adjust the default so it works on CPUs with many cores07:18:50
@atemu12:matrix.orgatemu12Sounds like a good idea07:18:56
@waltmck:matrix.orgwaltmck it's line 251 of mk_repo_file.py, just change default=4 or some other small number 07:19:22
@waltmck:matrix.orgwaltmckI can file a PR later for it if that's easier07:19:31
@atemu12:matrix.orgatemu12You probably don't gain anything after a few cores because you become network-bound07:19:46
@atemu12:matrix.orgatemu12Just PR it07:20:00
@waltmck:matrix.orgwaltmckhuh it's still throttling with 4 jobs, just takes longer. I'll try 2.07:33:33
@atemu12:matrix.orgatemu12Well you've already been limited07:34:05
@waltmck:matrix.orgwaltmckah, how long does the cooldown last?07:56:09
@atemu12:matrix.orgatemu12Your guess is as good as mine07:56:42
@waltmck:matrix.orgwaltmckwow that's annoying07:57:52
@waltmck:matrix.orgwaltmcksomeone should let richard stallman know about this07:58:01
@waltmck:matrix.orgwaltmck okay, it is not failing even with only 1 thread. Could you tell me more about this? Searching the repo for ROBOTNIX_MIRRORS doesn't give anything 08:06:30
@waltmck:matrix.orgwaltmck * okay, it is now failing even with only 1 thread. Could you tell me more about this? Searching the repo for ROBOTNIX_MIRRORS doesn't give anything 08:06:38
@atemu12:matrix.orgatemu12There's a doc on local mirroring08:06:54
@atemu12:matrix.orgatemu12I don't remember the exact env var name08:07:08
@atemu12:matrix.orgatemu12You can just use a remote mirror instead08:07:32
@waltmck:matrix.orgwaltmckfound it08:07:32
@waltmck:matrix.orgwaltmck

okay, I followed the instructions to set a local git mirror at /cache/mirror and but got the following error:

subprocess.CalledProcessError: Command '['git', 'ls-remote', '/cache/mirror/platform/external/android-key-attestation']' returned non-zero exit status 128.

This also fails from the command line, sine it is the wrong location: the correct location is /cache/mirror/external/android-key-attestation. I tried moving /cache/mirror to /cache/mirror/platform so that it would find the correct location, but then it fails with

subprocess.CalledProcessError: Command '['git', 'ls-remote', '/cache/mirror/device/generic/goldfish-opengl']' returned non-zero exit status 128

It seems like it is looking in the wrong location for external/*, any idea what the reason for this could be?

21:09:36
@waltmck:matrix.orgwaltmck BTW this error happens even before I add my device to supported_devices, so I don't think it's particular to that 21:11:15
@waltmck:matrix.orgwaltmck *

okay, I followed the instructions to set a local git mirror at /cache/mirror and but got the following error:

subprocess.CalledProcessError: Command '['git', 'ls-remote', '/cache/mirror/platform/external/android-key-attestation']' returned non-zero exit status 128.

This also fails from the command line, since it is the wrong location: the correct location is /cache/mirror/external/android-key-attestation. I tried moving /cache/mirror to /cache/mirror/platform so that it would find the correct location, but then it fails with

subprocess.CalledProcessError: Command '['git', 'ls-remote', '/cache/mirror/device/generic/goldfish-opengl']' returned non-zero exit status 128

It seems like it is looking in the wrong location for external/*, any idea what the reason for this could be?

21:12:18
@atemu12:matrix.orgatemu12Wait, you actually set up a mirror?22:04:09
@atemu12:matrix.orgatemu12As in the full 1.4TiB?22:04:26
@atemu12:matrix.orgatemu12What I meant was to use the github mirror22:04:49
@atemu12:matrix.orgatemu12Though thinking about it again, it has a different structure because it can't do sub-paths, only owner/repo22:05:49

Show newer messages


Back to Room ListRoom Version: 6