Graham Christensen
7c6300cfdc
Update magic-nix-cache/src/main.rs
2024-08-13 23:39:13 -04:00
Cole Mickens
c41207df35
built-paths: feedback around error handling for store path collection
2024-08-13 12:20:11 -07:00
Cole Mickens
a6daff9a65
built-paths: switch to using /events from /built-paths
2024-08-12 18:44:15 -07:00
Cole Mickens
685fe75327
built-store-paths: mnc can reconnect in dnixd restarts
2024-08-12 12:35:48 -07:00
Cole Mickens
3a001d12e5
built-store-paths: finish pbh code rearrangement
2024-08-12 12:02:42 -07:00
Cole Mickens
0f476bd775
factor 'legacy' pbh out into separate file
2024-08-09 14:07:48 -07:00
Cole Mickens
594748fe30
built-paths subscription: better heuristic for sipping event frames
2024-08-09 11:57:27 -07:00
Cole Mickens
c0b8f7b57b
hack: stip data frame prefix
2024-08-09 11:55:52 -07:00
Cole Mickens
f82811cc9c
hack: skip default keep-alive
2024-08-09 11:55:52 -07:00
Cole Mickens
57eb3e75c0
uds subscription: enqueue_paths
2024-08-09 11:55:52 -07:00
Cole Mickens
e5d5118022
uds subscription wip
2024-08-09 11:55:52 -07:00
Cole Mickens
cc01b81323
tree: upgrade axum: respond to cole-h feedback
2024-08-09 11:25:12 -07:00
Cole Mickens
4c0a2510c1
tree: upgrade axum, hyper, etc
2024-08-08 15:18:18 -07:00
Luc Perkins
da04019f81
Provide more useful disabled message
2024-07-15 17:42:44 -07:00
Graham Christensen
805d2cfc15
fixup
2024-06-12 15:50:22 -04:00
Graham Christensen
9c7b8e3fc9
Trip a circuit breaker when we get a 429 so we don't keep doing useless work
2024-06-12 15:44:26 -04:00
Cole Helbling
0a64d2c632
Make source of IO errors more obvious
2024-06-06 08:02:47 -07:00
Cole Helbling
6a58908c6b
Make store diffing optional
2024-05-22 09:27:04 -07:00
Cole Helbling
67647c9997
Don't skip -source when diffing store
2024-05-22 09:14:47 -07:00
Cole Helbling
5cc7e808dc
Bring back store diffing
2024-05-22 09:14:47 -07:00
Cole Helbling
6f3c6309e4
Record and print tracing logs in debug mode
2024-05-21 12:43:01 -07:00
Luc Perkins
1bb6c86f5d
Remove unused import
2024-05-17 15:49:20 -03:00
Luc Perkins
d1c5d5203b
Don't run server in tokio::spawn
2024-05-17 15:41:45 -03:00
Luc Perkins
5da333f97b
Add missing pkg-config dependency to dev shell
2024-05-17 14:32:40 -03:00
Luc Perkins
736bd0c019
Delete notification file if server fails to start up
2024-05-17 14:22:01 -03:00
Luc Perkins
d67f330397
Spawn daemon in separate process
2024-05-17 14:07:12 -03:00
Luc Perkins
c0b7181ddc
Allow for both startup options to be None
2024-05-17 13:32:43 -03:00
Luc Perkins
cfe5cb78c5
Add file-based notification mechanism
2024-05-17 13:22:58 -03:00
Luc Perkins
ab6bb9c47a
Restore info statement in GHA
2024-05-16 15:05:45 -03:00
Luc Perkins
1eb6003444
Derive Copy for Environment
2024-05-16 15:05:11 -03:00
Luc Perkins
c1c6574b30
Check only for GITLAB_CI variable
2024-05-16 15:04:40 -03:00
Luc Perkins
1ee5b1eec8
Provide more ergonomic env var checking
...
Co-authored-by: Cole Helbling <cole.helbling@determinate.systems>
2024-05-16 15:04:04 -03:00
Luc Perkins
06fb14658c
Reformat use statement
...
Co-authored-by: Cole Helbling <cole.helbling@determinate.systems>
2024-05-16 15:02:28 -03:00
Luc Perkins
a6e08a2a14
Remove info statement when not in GHA
2024-05-16 14:54:44 -03:00
Luc Perkins
8ad3089e93
Remove unnecessary determine func
2024-05-16 14:50:28 -03:00
Luc Perkins
41327e96b5
Address Clippy issues
2024-05-16 14:46:17 -03:00
Luc Perkins
136a3d43d6
Periodically fetch JWT only in GHA
2024-05-16 14:29:20 -03:00
Luc Perkins
90180e31ef
Add logic for determining environment
2024-05-16 13:53:46 -03:00
Cole Helbling
3d9bcd16a4
Make flakehub-flake-name truly optional
2024-05-09 14:29:14 -07:00
Graham Christensen
389a63ce68
Ignore post-build-hook errors
2024-05-06 12:00:24 -04: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