Commit graph

477 commits

Author SHA1 Message Date
Graham Christensen 4e2b37be36 Set a metric field for when GHA 429's 2025-01-16 08:46:41 -08:00
Cole Helbling 322a99d45e fixup: update upload-artifact, download-artifact action versions 2025-01-16 08:46:41 -08:00
Cole Helbling 003f106338
Update GHA 429 notice wording
Co-authored-by: Graham Christensen <graham@grahamc.com>
2025-01-16 07:32:20 -08:00
Cole Helbling b9f89bd546 Suggest FlakeHub Cache when hit by 429 2025-01-14 13:56:17 -08:00
Cole Helbling 215dc0d8e9
Merge pull request #114 from DeterminateSystems/cole/fh-485
Fixup auth when using determinate-nixd with long-running builds
2024-12-04 13:24:01 -08:00
Cole Helbling 2bac50c0ca Move "workaround" notes closer to the workaround 2024-12-04 13:11:19 -08:00
Cole Helbling 5e7acea3d1 Fixup auth when using determinate-nixd with long-running builds 2024-12-04 13:11:19 -08:00
Cole Helbling 11b78639f1 Cargo.lock: update attic dependencies 2024-12-04 12:44:32 -08:00
Cole Helbling 296e9dc1af
Merge pull request #111 from DeterminateSystems/grahamc-patch-2
Use magic-nix-cache-action@main, oops
2024-11-08 09:48:20 -08:00
Graham Christensen f27f314206
Use magic-nix-cache-action@main, oops 2024-11-08 12:29:41 -05:00
Graham Christensen 448d84e32f
Merge pull request #110 from DeterminateSystems/graham/fh-433-magic-nix-cache-should-disable-github-actions-cache-if
Graham/fh 433 magic nix cache should disable GitHub actions cache when flakehub cache is enabled
2024-11-06 12:05:23 -05:00
Graham Christensen d1983bbdff Don't try to use the netrc if itdoesn't exist 2024-11-06 09:47:44 -05:00
Graham Christensen a68e1c4d54 Test the patched action 2024-11-05 22:27:17 -05:00
Graham Christensen bf844027bc Turn off the GitHub actions cache if the user expresses no preference, and flakehub cache is in use 2024-11-05 21:22:38 -05:00
Graham Christensen 65060bc705 Switch the GHA Caceh preference to a trinary, but treat it as a straight bool for the moment 2024-11-05 21:19:18 -05:00
Graham Christensen 3fd6eeb208 Make the FlakeHubArg a generic Trinary so we can use it for GHA Cache too 2024-11-05 21:11:26 -05:00
Graham Christensen cf183317a5
Merge pull request #109 from DeterminateSystems/colemickens/shutdown
shutdown: wait for flakehub_cache first
2024-11-05 19:45:48 -05:00
Graham Christensen 647b207575
Update magic-nix-cache/src/api.rs 2024-11-05 19:33:11 -05:00
Cole Mickens 625d7717b6 flakehub logging review comments 2024-11-05 15:08:00 -08:00
Graham Christensen 925be77ec2
Merge pull request #108 from mightyiam/bump-checkout-action
Bump GitHub action actions/checkout from v3 to v4
2024-11-05 18:02:55 -05:00
Cole Mickens 7841b8bbe2 flakehub cache init failure is an error 2024-11-05 15:00:56 -08:00
Cole Mickens a54a97ff9b shutdown: info! print paths after FHC upload 2024-11-05 15:00:56 -08:00
Cole Mickens 9f7a4abc4d shutdown: info! if we don't have flakehub_state at workflow_finish 2024-11-05 14:24:56 -08:00
Cole Mickens 799a0c42e6 shutdown: wait for flakehub_cache first 2024-11-05 13:55:36 -08:00
Shahar "Dawn" Or 65899a5ad5 Bump GitHub action actions/checkout from v3 to v4
The breaking change seems to be something about the default Node.js
runtime: https://github.com/actions/checkout/blob/main/CHANGELOG.md#v400

Also in example in documentation, for the sake of the copy-pasting user
(me).
2024-11-05 21:48:35 +07:00
Graham Christensen 6a5abbf3bb
Merge pull request #105 from cfsnyder/main
Fix compatibility issues with alternative GHA cache implementation
2024-09-25 15:17:09 -04:00
Graham Christensen 24af143b67
Don't fail if flakehub cache wasn't requested and its requirements weren't present (#107)
* Treat the use_flakehub flag as an enum to avoid boolean blindness

* Make the match statement around flakehub cache considerate of users who did not opt in to it

* Update magic-nix-cache/src/main.rs
2024-09-25 19:16:43 +00:00
Cory Snyder 4f25f7b3e6 Fix compatibility issues with alternative GHA cache implementation
Fixes two compatibility issues with the alternative GHA cache server
implementation:

https://github.com/falcondev-oss/github-actions-cache-server

1. This implementation does not support redundant forward slashes
   in URL paths. The change allows magic-nix-cache to work properly
   regardless of whether ACTIONS_CACHE_URL ends in a forward slash or
   not.
2. The cache IDs returned by this implementation can be too big for
   an i32, so the representation of the CacheID type has been updated
   to an i64.

Signed-off-by: Cory Snyder <csnyder@1111systems.com>
2024-09-20 05:12:26 -04:00
Graham Christensen 955ed68d34
Merge pull request #104 from DeterminateSystems/use-14-large
Update our intel macs to 14-large
2024-09-17 17:46:15 -04:00
Graham Christensen 7c6bd9387c
Merge pull request #103 from DeterminateSystems/fh-cache-under-determinate
Drop the assertion around the netrc under dnixd
2024-09-17 17:45:25 -04:00
Graham Christensen 6acb043852 Update our intel macs to 14-large 2024-09-17 17:28:15 -04:00
Graham Christensen 04af54090e Notify the user with an info if we're ignoring their netrc 2024-09-17 17:23:44 -04:00
Graham Christensen bc76dfa4df Clean up the netrc handling when dnixd is around 2024-09-17 17:17:11 -04:00
Cole Mickens 5b126b691b
Merge pull request #102 from DeterminateSystems/colemickens/fallback
nix.conf: move write for 'fallback', always set it
2024-09-16 12:22:57 -05:00
Cole Mickens 2bcd86656f nix.conf: move write for 'fallback', always set it 2024-09-16 10:08:16 -07:00
Cole Helbling f13fa9e9f3
Merge pull request #98 from DeterminateSystems/dependabot/cargo/quinn-proto-0.11.8
Bump quinn-proto from 0.11.6 to 0.11.8
2024-09-04 08:25:06 -07:00
dependabot[bot] 7894df9177
Bump quinn-proto from 0.11.6 to 0.11.8
Bumps [quinn-proto](https://github.com/quinn-rs/quinn) from 0.11.6 to 0.11.8.
- [Release notes](https://github.com/quinn-rs/quinn/releases)
- [Commits](https://github.com/quinn-rs/quinn/compare/quinn-proto-0.11.6...quinn-proto-0.11.8)

---
updated-dependencies:
- dependency-name: quinn-proto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-03 20:51:01 +00:00
Graham Christensen 949fc954a5
Merge pull request #95 from DeterminateSystems/colemickens/defaults
cli: add defaults for flakehub endpoints, nix.conf path
2024-08-30 14:12:31 -04:00
Graham Christensen b499ff2a0f
Merge pull request #96 from DeterminateSystems/grahamc/defaults
What if we used clap's defaults support?
2024-08-30 14:02:39 -04:00
Graham Christensen 3ca2a4bf5b Reimplement using defaults 2024-08-30 13:32:11 -04:00
Cole Mickens 979ad69132 cli: add defaults for flakehub endpoints, nix.conf path 2024-08-30 09:16:53 -07:00
Graham Christensen b5a094c7a2
Merge pull request #89 from DeterminateSystems/colemickens/mnc-netrc-uds
netrc: fixup handling when using dnixd/uds
2024-08-29 23:32:22 -04:00
Graham Christensen 91eef4416e
Merge pull request #91 from DeterminateSystems/why-io-error
Why io error
2024-08-29 23:31:13 -04:00
Graham Christensen c1924ba94a
Merge pull request #92 from DeterminateSystems/colemickens/startup-noti-file
startup notification: create_dir_all parent dir, add context for io ops
2024-08-29 22:52:46 -04:00
Graham Christensen b1ec181a0a
Merge pull request #93 from DeterminateSystems/colemickens/unwraps-to-expect
convert unwraps to expects
2024-08-29 22:42:14 -04:00
Cole Mickens fa02e9ad6f convert unwraps to expects 2024-08-29 14:52:02 -07:00
Cole Mickens 21a9552b0b startup notification: create_dir_all parent dir, add context for io ops 2024-08-29 14:35:21 -07:00
Graham Christensen f0b1e69100 A couple more contexts in the post-build-hook 2024-08-29 16:46:20 -04:00
Graham Christensen e52d545126 Convert the other Io error type to have a string of context 2024-08-29 16:40:21 -04:00
Graham Christensen edb35e8b94 Convert the Io error type to have a string of context 2024-08-29 16:37:49 -04:00