Commit graph

86 commits

Author SHA1 Message Date
Zhaofeng Li 8d4951ca00
Merge pull request #19 from chris-02/main
fix typo in readme
2023-01-26 22:55:50 -07:00
chris-02 ccd9ffb4d6
Fix typo in readme 2023-01-23 18:16:37 +01:00
Zhaofeng Li 9c8e9fbc35
Merge pull request #17 from chris-02/main
use system certificate store for attic client
2023-01-22 13:24:34 -07:00
chris-02 8fa4eaffc5
client: Use system certificate store 2023-01-22 11:25:10 +01:00
Zhaofeng Li 0e61ddf927 attic/util: Mark Finally as must_use 2023-01-17 14:10:27 -07:00
Zhaofeng Li 8b52796dcb server/upload_path: Create chunkrefs during the upload 2023-01-17 14:10:27 -07:00
Zhaofeng Li 5b42839f58 Expose deduplication ratio to client 2023-01-17 14:10:27 -07:00
Zhaofeng Li 19111317f7 server/chunking: Add a couple of test cases on buffer size boundaries 2023-01-17 14:10:27 -07:00
Zhaofeng Li 49bd872153 flake.nix: Also run integration tests on stable nixpkgs 2023-01-16 14:14:14 -07:00
Zhaofeng Li 99202303be Fix build with nixpkgs 22.11
We temporarily patch sea-orm to build with a lower MSRV.
2023-01-16 14:14:14 -07:00
Zhaofeng Li abd6db3d04
Merge pull request #14 from DarkKirb/fix-compression-field-null-insert
fix null insertion in chunkref table
2023-01-16 10:46:08 -07:00
Charlotte 🦝 Delenk c2d1a98e3d
fix null insertion in chunkref table 2023-01-16 14:29:11 +01:00
Zhaofeng Li 70ae61b591
Merge pull request #13 from DarkKirb/env-config
Add support for reading database url from environment variable
2023-01-15 14:49:23 -07:00
Zhaofeng Li 1750c4be88 integration-tests/basic: Increase initial timeout even more
Somehow it's taking even longer on Garnix despite being sub-1s
on my desktop. I'm not positive that collapsing all migrations
into a single one for initial setup is a good idea as it makes
the upgrade path less tested.
2023-01-15 14:48:26 -07:00
Charlotte 🦝 Delenk fb77c7eb2b
config.rs: Add env variable for db url 2023-01-15 18:38:28 +01:00
Zhaofeng Li 5216e06a18 .github: Fix nix-installer action 2023-01-15 00:00:11 -07:00
Zhaofeng Li fb1101f54d server/upload-path: Set completeness hint when NAR is deduplicated 2023-01-14 23:55:11 -07:00
Zhaofeng Li f1c6dbde67 Update docs to include chunking 2023-01-14 23:55:11 -07:00
Zhaofeng Li 4f597e62e2 package.nix: Use cargoLock 2023-01-14 23:55:10 -07:00
Zhaofeng Li e8f9f3c04b Add support for chunking 2023-01-14 23:55:10 -07:00
Zhaofeng Li 93a38d1b1e Move read_chunk_async to attic 2023-01-14 23:55:10 -07:00
Zhaofeng Li 6d3b2bd381 nixos: Provide better error message when credentialsFile is unset 2023-01-14 23:55:10 -07:00
Zhaofeng Li 257a84ad74 nixos: Add atticd-atticadm wrapper
Now `atticd-atticadm` can be used to run `atticadm` as the `atticd`
user. `atticd` is no longer added to the system path.
2023-01-14 23:55:10 -07:00
Zhaofeng Li 740c09beb9 client/push: Change the default number of jobs to 5 2023-01-14 23:55:10 -07:00
Zhaofeng Li db1dbb7a48 client/api: Refactor 2023-01-14 23:55:10 -07:00
Zhaofeng Li 5a8df0b1e8 server/upload_path: Refactor 2023-01-14 23:55:10 -07:00
Zhaofeng Li 6d3d07cb14 server/adm: Make --config/-f a global option 2023-01-14 23:55:10 -07:00
Zhaofeng Li 064a747bb4 server/upload_path: Expose the final file size in the response 2023-01-14 23:55:10 -07:00
Zhaofeng Li 332ac5051c client/get_closure: Add --include-outputs 2023-01-14 23:55:10 -07:00
Zhaofeng Li 8fc6b3935d integration-tests/basic: Increase timeouts
Seems to be timing out on Garnix.
2023-01-08 23:00:53 -07:00
Zhaofeng Li 95378e13dc crane.nix: Add meta 2023-01-08 23:00:53 -07:00
Zhaofeng Li 3d1961c0ab server: Allow setting an alternative substituter endpoint 2023-01-08 23:00:53 -07:00
Zhaofeng Li 0b528b5417 client/use: The access token should set for the substiter endpoint
The substituter endpoint is not necessarily the same as the API
endpoint.
2023-01-08 23:00:53 -07:00
Zhaofeng Li c4f843d4ab server: rustfmt
poke ci
2023-01-08 02:44:45 -07:00
Zhaofeng Li d547c86f08 client/push: Correctly delegate API requests based on cache config 2023-01-08 00:57:22 -07:00
Zhaofeng Li 05a5e9cca8 server: Set a custom header if the cache is public
This can be used as a signal to improve caching. Only done for
the Nix Binary Cache APIs for now.
2023-01-08 00:57:22 -07:00
Zhaofeng Li 6c4d04da74 Migrate to jwt-simple 2023-01-08 00:57:22 -07:00
Zhaofeng Li 1c2173caac token: Update comments to reflect actual implementation 2023-01-08 00:57:22 -07:00
Zhaofeng Li 5657e88cc0 attic/nix_store: Only build methods requiring OsStrExt on Unix 2023-01-08 00:57:22 -07:00
Zhaofeng Li ae995f2203 attic: Only build testing module on Unix 2023-01-08 00:57:22 -07:00
Zhaofeng Li eb34b8ee99 attic: Allow disabling tokio
Not needed at all for parsing usecases.
2023-01-08 00:57:22 -07:00
Zhaofeng Li 6969af2d5e Cargo.toml: Minimize tokio feature flags 2023-01-08 00:57:22 -07:00
Zhaofeng Li 77070b9895 Refactor token into a separate crate 2023-01-08 00:57:22 -07:00
Zhaofeng Li c89f5f0f3f client: Deletions may not "immediately" happen
Aggressive caching may make the effect non-immediate.
2023-01-08 00:57:22 -07:00
Zhaofeng Li ffae7002b3 Explicitly specify the cranes to build 2023-01-08 00:57:22 -07:00
Zhaofeng Li 864b62652b .github: Allow specifying alternative cache in secrets 2023-01-08 00:57:22 -07:00
Zhaofeng Li 982ff75cb2 .github: Ignore failures from nix-installer 2023-01-08 00:57:22 -07:00
Zhaofeng Li 8af6ed71fa .github: Update checkout to v3.3.0 2023-01-08 00:57:22 -07:00
Zhaofeng Li e7f64d80b7 flake.nix: Add attic-static 2023-01-06 15:56:42 -07:00
Zhaofeng Li bb98d5f17c package.nix: Update cargoHash 2023-01-06 15:56:42 -07:00