Cole Helbling
507095f7ea
Merge remote-tracking branch 'origin/main' into log-and-cat-after-workflow-finished
2024-05-14 10:43:37 -07:00
Cole Helbling
3d9bcd16a4
Make flakehub-flake-name truly optional
2024-05-09 14:29:14 -07:00
Cole Helbling
8b1b1c9302
fixup
2024-05-07 11:18:56 -07:00
Cole Helbling
a0a35d7ff8
Merge remote-tracking branch 'origin/main' into log-and-cat-after-workflow-finished
2024-05-07 11:17:11 -07:00
Cole Helbling
a9f32f83dd
more debug logging, truncate the log file when we init logging
2024-05-07 11:11:39 -07:00
Graham Christensen
389a63ce68
Ignore post-build-hook errors
2024-05-06 12:00:24 -04:00
Cole Helbling
3bc019d996
wip: no, but do flakehub after shutting down the web server
2024-04-24 15:17:35 -07:00
Cole Helbling
f06ed35360
wip: wait for flakehub pushes before shutting down?
2024-04-24 14:23:22 -07:00
Cole Helbling
1c83c37f4e
wip: more tracing, sleep at first
2024-04-24 07:51:51 -07:00
Cole Helbling
c481c9beb6
wip: more debugging
2024-04-24 07:30:32 -07:00
Cole Helbling
9947f4c5ed
wip: add more debug lines
2024-04-23 15:35:10 -07:00
Cole Helbling
e82dde9ac7
wip: debug logging to see why this still crosses devices
2024-04-23 14:11:02 -07:00
Cole Helbling
5552d61f5e
fixup: create temporary netrc file right next to real one
2024-04-23 12:48:30 -07:00
Cole Helbling
3a61953dc1
wip: move logging init back into main cli only
2024-04-23 08:59:51 -07:00
Cole Helbling
1f543d7e7a
Revert "wip: drop the file and keep the early-init logging"
...
This reverts commit 3b1a1e3c12
.
2024-04-23 08:59:42 -07:00
Cole Helbling
5cb3d69802
Revert "wip: intentionally bust post-build-hook"
...
This reverts commit 1e258373b5
.
2024-04-23 08:59:00 -07:00
Cole Helbling
1e258373b5
wip: intentionally bust post-build-hook
2024-04-23 08:41:58 -07:00
Cole Helbling
3b1a1e3c12
wip: drop the file and keep the early-init logging
2024-04-23 08:29:03 -07:00
Cole Helbling
589099e43a
wip: see if there's some logging we're missing
2024-04-23 07:55:32 -07:00
Cole Helbling
0434d467d3
Refresh GitHub Actions JWT in the background
...
GitHub Actions JWTs are only valid for 5 minutes after being issued.
FlakeHub uses these JWTs for authentication, which means that after
those 5 minutes have passed and the token is expired, FlakeHub (and
by extension FlakeHub Cache) will no longer allow requests using this
token.
However, GitHub gives us a way to repeatedly request new tokens, so we
utilize that and refresh the token every 2 minutes (less than half of
the lifetime of the token).
2024-04-19 08:32:45 -07:00
Eelco Dolstra
fd6db08ef0
Merge pull request #52 from DeterminateSystems/build-hook-in-store
...
Move the post-build hook script to the Nix store
2024-04-12 10:37:39 +02:00
Luc Perkins
415818d147
Merge pull request #48 from DeterminateSystems/fix-dev-shells
...
Fix dev shell upload to cache
2024-04-11 23:23:35 -03:00
Graham Christensen
b64bf3f4e5
Merge pull request #53 from DeterminateSystems/correlation
...
Use detsys_correlation if it is set
2024-04-11 22:11:18 -04:00
Graham Christensen
2d747212b0
Use detsys_correlation if it is set
2024-04-11 20:15:52 -04:00
Eelco Dolstra
4d66c1f308
Move the post-build hook script to the Nix store
...
In self-hosted GHA runners on NixOS, the runner has a different /tmp
than the Nix daemon, so the daemon would get "file not found" trying
to execute the post-build hook. As a workaround, move the script to
the Nix store so we can be sure that the daemon can access it.
2024-04-11 18:10:56 +02:00
Luc Perkins
974048fcd6
Fix Clippy issues
2024-03-29 17:19:44 -03:00
Eelco Dolstra
150468c70d
Fix post-build hook
...
"exec" needs to come after the environment variables.
2024-03-27 16:32:14 +01:00
Graham Christensen
fa32a1bad7
?
2024-03-11 12:07:15 -04:00
Graham Christensen
64de95e342
0.2.0
2024-03-09 10:51:56 -05:00
Graham Christensen
d0115f624f
Merge branch 'main' into flakehub-cache
2024-03-06 09:38:44 -05:00
Eelco Dolstra
fbf0bbed94
Merge pull request #35 from Kiskae/pass-through-429
...
Pass through HTTP 429 to the nix daemon
2024-03-04 18:04:20 +01:00
Cole Helbling
619a6346c0
Merge remote-tracking branch 'origin/eelcodolstra/fh-224-magic-nix-cache-use-post-build-hook-for-the-gha-cache-as' into merge-against-upstream
2024-03-01 08:40:20 -08:00
Eelco Dolstra
9bf26f0680
Invalidate negative narinfo cache entries
2024-03-01 11:55:59 +01:00
Eelco Dolstra
b53876db25
Typo
2024-02-29 22:48:51 +01:00
Eelco Dolstra
e99ef6ba61
Log upload
2024-02-29 22:31:07 +01:00
Eelco Dolstra
f16e3c292a
Make NAR upload streaming
2024-02-29 21:22:44 +01:00
Eelco Dolstra
334bcc7df9
Compress
2024-02-29 20:45:12 +01:00
Eelco Dolstra
625e95f484
Trigger GHA cache uploads from the post-build hook
...
Also, a worker task now does the uploads directly rather than having
magic-nix-cache invoke "nix copy" via HTTP to itself.
2024-02-29 16:31:29 +01:00
Eelco Dolstra
e5513406df
Update to latest attic
2024-02-29 16:26:48 +01:00
Cole Helbling
8ce3c6cafb
fixup: Cargo.toml
2024-02-27 09:57:20 -08:00
Cole Helbling
531387f66f
Allow configuring the FlakeHub flake name
2024-02-27 09:47:46 -08:00
Cole Helbling
bf8c52586b
Merge remote-tracking branch 'upstream/main' into merge-against-upstream
2024-02-27 08:51:49 -08:00
Cole Helbling
3b8363028d
just hack in an unsafe way to turn a string into a cache name without validation
2024-02-27 08:49:21 -08:00
Cole Helbling
34956e86bb
checkpoint
2024-02-27 08:30:35 -08:00
Eelco Dolstra
1f46e11aa7
Cleanup
2024-02-24 10:28:18 +01:00
Eelco Dolstra
b41211dc24
Apply suggestions from code review
...
Co-authored-by: Cole Helbling <cole.helbling@determinate.systems>
2024-02-24 10:12:54 +01:00
Eelco Dolstra
5f981d2f91
Get rid of unwraps/expects
...
The remaining ones should be genuine "impossible" conditions.
main() now renders the error value using anyhow.
2024-02-23 19:45:38 +01:00
Eelco Dolstra
0607f5efa4
Use reqwest::header::CONTENT_TYPE
2024-02-23 18:18:34 +01:00
Eelco Dolstra
f6c21a9184
Send startup notification via HTTP
2024-02-23 15:34:22 +01:00
Ana Hobden
0e4f6af07b
FlakeHub not Flakehub
2024-02-13 09:37:11 -08:00