Commit graph

116 commits

Author SHA1 Message Date
Zhaofeng Li 97285de54f Upgrade base64 2023-03-05 11:05:11 -07:00
Zhaofeng Li 7f62e92d71 server: Upgrade fastcdc 2023-03-05 11:05:11 -07:00
Zhaofeng Li b6002b413c server: Upgrade aws-sdk-rust 2023-03-05 11:05:11 -07:00
Zhaofeng Li 18ca2cf29a Update deps 2023-03-05 11:05:11 -07:00
Zhaofeng Li dbcf98b4e4 flake.nix: Bump dependencies 2023-03-05 11:05:11 -07:00
Zhaofeng Li 0bb3d00136 nixos: Don't fail if PWD cannot be changed into
Fixes #26.
2023-02-16 14:01:27 -07:00
Zhaofeng Li 5a23cda073 client: Document CacheRef syntax in help
Ref: #25
2023-02-16 14:01:27 -07:00
Zhaofeng Li 863f8dcca3 Revert "server: Allow configuring max database connections"
Causes issues with SQLite. To be investigated further.

This reverts commit 9fdec3397d.
2023-02-11 01:42:14 -07:00
Zhaofeng Li 1710a33eca .github/install-attic-ci.sh: Update
Built against a0a29b01cf.
2023-02-11 01:16:55 -07:00
Zhaofeng Li a0a29b01cf flake.nix: Revert nixpkgs pin to December 2022
nixos-unstable has been so bumpy this year and it's getting
frustrating :(
2023-02-11 01:16:55 -07:00
Zhaofeng Li 9fdec3397d server: Allow configuring max database connections
We set it to 20 by default. The SQLx default is 10.
2023-02-11 01:16:55 -07:00
Zhaofeng Li fce89f4c95 attic/nix_store: Only initialize Nix once 2023-02-06 19:39:10 -07:00
Zhaofeng Li 365d739bca flake.nix: Add bindgenHook workaround to devShell 2023-02-06 19:39:10 -07:00
Zhaofeng Li db443f1932 crane.nix: Also apply workaround to tests as well 2023-02-06 14:31:47 -07:00
Zhaofeng Li 9869ab4a85 Temporary workaround to fix bindgen on Darwin
https://github.com/NixOS/nixpkgs/pull/207352#issuecomment-1418363441
2023-02-06 13:54:21 -07:00
Zhaofeng Li 1ffa429a9b flake.nix: Pin to nixpkgs-unstable for Darwin 2023-02-04 14:06:18 -07:00
Zhaofeng Li 4ad6ce9309 attic/nix_store: Call initNix before connecting to store
Fixes #22.
2023-02-04 13:28:47 -07:00
Zhaofeng Li 97187894c2 flake.lock: Update 2023-02-04 13:28:47 -07:00
Zhaofeng Li c77b5fb64e book/admin-guide: Add some docs on the NixOS module 2023-01-29 17:23:59 -07:00
Zhaofeng Li a42953bd9a book: Add vendored highlight.js with Nix syntax 2023-01-29 17:23:59 -07:00
Zhaofeng Li 3e76e46535 book/colorized-help: Document attic watch-store 2023-01-29 17:23:59 -07:00
Zhaofeng Li d540cc6888 client: Implement watch-store 2023-01-29 12:01:54 -07:00
Zhaofeng Li a2bc969594 rustfmt 2023-01-29 12:01:54 -07:00
Zhaofeng Li 8f1916b5cc client: Refactor pushing to use a job queue 2023-01-29 12:01:54 -07:00
Zhaofeng Li a113845095 server/upload_path: Remove already fixed FIXME 2023-01-29 12:01:54 -07:00
Zhaofeng Li 3c8bebf6b5 upload-path: Support including the upload info as part of the PUT body
Often times there are tight limits on how large headers can be.
2023-01-29 12:01:54 -07:00
Zhaofeng Li 00c3024c41 server: Use the same read_chunk_async implementation 2023-01-29 12:01:54 -07:00
Zhaofeng Li 33d8dfabbd Use common constant for X-Attic-Nar-Info header 2023-01-29 12:01:54 -07:00
Zhaofeng Li 54d93ff61f book/faqs: .narinfo with missing chunks longer returns 503 2023-01-26 23:17:45 -07:00
Zhaofeng Li 44e179362b server/binary_cache: No need to fetch all chunks for narinfo 2023-01-26 23:17:45 -07:00
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