Commit graph

50 commits

Author SHA1 Message Date
Graham Christensen
ae50b12a7d Set saved state later 2024-05-08 11:28:36 -04:00
Graham Christensen
5a8a0e7f2c Don't mark the daemon started until after we successfully import the closure 2024-05-07 22:19:04 -04:00
Graham Christensen
c4a0b3111a Move noop check to main 2024-05-07 10:06:07 -04:00
Graham Christensen
f6084a76d3 Dedupe text 2024-05-07 09:58:34 -04:00
Graham Christensen
9f35ea0aec Don't be weird if the daemon is already running 2024-05-07 09:58:34 -04:00
Graham Christensen
7a12393ae8 Save the daemon dir into its own state var, not an env var 2024-05-07 09:58:34 -04:00
Graham Christensen
cddf736ff4 Move the started state to a statevar not an env var 2024-05-07 09:58:34 -04:00
Graham Christensen
3426c8fc62 Don't use the daemonDir as a started hint 2024-05-06 13:13:38 -04:00
Graham Christensen
3b0ad43946 Staple the magic-nix-cache daemon log in error conditions 2024-05-06 11:35:14 -04:00
Graham Christensen
4ae13c51d8 Extract out the daemonDir into a class member 2024-05-06 11:33:36 -04:00
Luc Perkins
a943771501
Revamp logic into central class 2024-04-26 11:37:43 -03:00
Luc Perkins
79316a7a03
Add prettier config 2024-04-21 14:17:24 -03:00
Graham Christensen
2a126830d5 require nix: warn, don't fail 2024-04-18 14:14:44 -04:00
Graham Christensen
04fbd5502b test: fail if nix isn't installed 2024-04-18 14:09:07 -04:00
Graham Christensen
40128c21ab Preflight nix, or don't fail 2024-04-18 13:08:15 -04:00
Graham Christensen
604b4f9ad2 Update fetch location 2024-04-11 19:25:26 -04:00
Graham Christensen
a87d983438 Rebase on detsys-ts and get rid of bun 2024-04-11 19:21:15 -04:00
Luc Perkins
7ec43f883b
Better Boolean handling and debug statement 2024-03-25 17:42:40 -03:00
Graham Christensen
455b918565 Use -closure ids 2024-03-06 11:33:18 -05:00
Graham Christensen
1b7becab50 Merge remote-tracking branch 'origin/main' into flakehub-cache 2024-03-06 11:32:22 -05:00
Graham Christensen
79f590d9a2 /latest/ -> /stable/ 2024-03-06 11:00:09 -05:00
Cole Helbling
ead5afc337 fixups 2024-02-27 09:42:14 -08:00
Cole Helbling
e4bda5a74b Merge remote-tracking branch 'upstream/main' into merge-against-upstream 2024-02-27 09:32:36 -08:00
Cole Helbling
22cdf3ac39 add flakehub-flake-name input 2024-02-27 09:25:46 -08:00
Eelco Dolstra
b59b2f450f Comment 2024-02-23 19:51:28 +01:00
Eelco Dolstra
32e1a339b5 Receive startup notification from magic-nix-cache via HTTP 2024-02-23 16:31:35 +01:00
Ana Hobden
04d5b7e811 Don't care about extra-conf 2024-02-13 11:45:21 -08:00
Ana Hobden
232a98572b Improve logging 2024-02-13 11:40:27 -08:00
Ana Hobden
b1e40f81bd Try logging into FlakeHub if nix-installer didn't do that for us 2024-02-12 14:13:43 -08:00
Graham Christensen
24f6adfb73 le sigh 2024-01-18 12:23:19 -05:00
Graham Christensen
0157564bb2 Drop the binary prefix 2024-01-18 11:58:07 -05:00
Graham Christensen
5d44dc35d8 go back to ids 2024-01-18 11:36:58 -05:00
Cole Helbling
095d24c180 fixup: uploaded binary name 2024-01-18 07:53:14 -08:00
Eelco Dolstra
8ee9ed5891 Cleanup 2024-01-15 14:15:24 +01:00
Eelco Dolstra
124dc2196d Show daemon log output in setup 2024-01-11 17:51:06 +01:00
Eelco Dolstra
e86987a1e9 Remove debug line 2024-01-09 19:02:02 +01:00
Eelco Dolstra
5e8c8cee1b Comment 2024-01-09 18:53:51 +01:00
Eelco Dolstra
3931213b43 Fetch the magic-nix-cache closure from S3 2024-01-09 15:01:39 +01:00
Eelco Dolstra
9d7fb1fb0e Use a constant for the notification file descriptor 2023-12-15 17:17:10 +01:00
Eelco Dolstra
4a3e8b7ce3 magic-nix-cache no longer forks into the background 2023-12-15 17:08:26 +01:00
Eelco Dolstra
efc9e3b1dd Download magic-nix-cache binary from S3 2023-12-11 16:06:20 +01:00
Eelco Dolstra
7a39db2ab3 attic-server -> flakehub-cache-server 2023-12-11 13:46:39 +01:00
Graham Christensen
879f4f5a34 Dump the entire log in debug 2023-12-04 20:30:25 -05:00
Graham Christensen
e4109712fa Trim retries to 1, 5 takes too long 2023-12-04 20:12:12 -05:00
Graham Christensen
c5e19708da Fixup log aggregation 2023-12-04 20:11:40 -05:00
Eelco Dolstra
e27fd4f93e Support uploading to FlakeHub 2023-12-05 00:40:31 +01:00
Graham Christensen
54ca4788d1
Retry a few times on startup, but don't fail the run if we can't 2023-06-27 13:05:50 -04:00
Graham Christensen
d088ac6784
Enable fallback=true by default
Handles a 429 / ratelimit error more gracefully.
2023-06-26 13:30:39 -04:00
Luc Perkins
7b56139774
Update RUST_LOG env var value 2023-06-26 09:28:12 -07:00
Graham Christensen
21c3863b07
Init the action
Co-authored-by: Zhaofeng Li <hello@zhaofeng.li>
2023-06-26 11:57:25 -04:00