Commit graph

13 commits

Author SHA1 Message Date
Antoine R. Dumont (@ardumont)
2ee103e2bc
nixguix: Improve further tarball detection
The current content type detection was a bit off mostly for content which includes
charset. This commit fixes it.

Related to T3781
2022-10-05 11:11:08 +02:00
Antoine R. Dumont (@ardumont)
ff80a91f0a
nixguix: Improve git origins detection
Without this, some git repositories are detected as file (due to upstream
misqualification too). This does some extra effort to detect those to avoid sending
noise to loaders.

This also refactors some common code to build vcs artifacts to avoid duplication.

Related to T3781
2022-10-05 10:09:52 +02:00
Antoine R. Dumont (@ardumont)
2fbd66778f
nixguix: Improve tarball detection
Without this, some tarballs hidden within query parameters are not detected. This does
some extra effort to detect those to avoid sending noise to loaders.

Related to T3781
2022-10-05 10:09:52 +02:00
Antoine R. Dumont (@ardumont)
944d4b5b60
nixguix: Add support for listing origins with "recursive" integrity
Without this distinction the current directory or content loader will fail the download
as they currently expect the checksums to be about the tarball. When a recursive
"integrity" is provided, it's actually about the uncompressed tarball as per the
nix-store computation.

It's detailed within the code.

Related to T3294
Related to T3781
2022-10-04 17:58:50 +02:00
Antoine R. Dumont (@ardumont)
5daead68ad
nixguix: Add support for pseudo url with missing schema
Related to T3294
Related to T3781
2022-10-04 16:21:38 +02:00
Antoine R. Dumont (@ardumont)
0f8f293f96
nixguix: Deal with connection error with server
When that arises, we skip the origins.

Related to T3781
2022-10-04 14:57:01 +02:00
Antoine R. Dumont (@ardumont)
d92474bbda
nixguix: Refactor by cleaning up unneeded code
Related to T3781
2022-10-04 14:45:57 +02:00
Antoine R. Dumont (@ardumont)
06b11dd5f6
nixguix: Deal with impossible communication with server
When that arises, we skip the origins.

Related to T3781
2022-10-04 14:07:42 +02:00
Antoine R. Dumont (@ardumont)
a94b75f366
nixguix: Deal with mistyped origins
Some origins are listed as urls while they are not. They are possibly vcs. So this
commit tries to detect and and deal with those if possible. If not possible, they are
skipped.

Related to T3781
Related to P1470
2022-10-04 13:58:39 +02:00
Antoine R. Dumont (@ardumont)
1b4fe51f62
nixguix: Randomize order of listed origins
The end goal is to ingest sparsely the origins, that would avoid hitting the various
servers around the same time for colocated origins in the upstream manifest (especially
file or tarball).

Related to T3781
2022-10-04 11:54:12 +02:00
Antoine R. Dumont (@ardumont)
94b6dbea0a
nixguix: Document lister
Related to T3781
2022-10-03 18:26:36 +02:00
Antoine R. Dumont (@ardumont)
6d2e7aa178
nixguix: Register task
Related to T3781
2022-10-03 18:26:36 +02:00
Antoine R. Dumont (@ardumont)
fbfdf88ea4
nixguix: Add lister
Related to T3781
2022-10-03 18:26:36 +02:00