Zhaofeng Li
7401b14e71
flake.nix: Add WebAssembly tools
2024-08-19 14:49:56 -04:00
Zhaofeng Li
7050d8f292
rustfmt, clippy
2024-08-19 14:49:56 -04:00
Zhaofeng Li
49c565f792
Use tokio::test instead of tokio-test
2024-08-19 14:49:56 -04:00
Zhaofeng Li
a41e2d1724
attic: Add simple chunking benchmarks
2024-08-19 14:49:56 -04:00
Zhaofeng Li
deff31a850
Move chunking to attic crate
2024-08-19 14:49:56 -04:00
Zhaofeng Li
956d6915a5
attic: Split out stream feature
...
Right now it just depends on tokio, but the goal is to support
alternative async runtimes.
2024-08-19 14:49:56 -04:00
Zhaofeng Li
acf3c351f8
Merge pull request #159 from Mic92/nix-2.24
...
attic-client: fix build against Nix 2.24
2024-08-19 10:53:34 -06:00
Zhaofeng Li
38c42ae9ad
Run tests against different Nix versions
2024-08-19 12:21:30 -04:00
Zhaofeng Li
40c0bb406e
Fix build for Nix 2.20+
...
Perform version detection to keep supporting older versions
(and in the future, alternative implementations).
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2024-08-19 12:16:33 -04:00
Jörg Thalheim
aecca91fad
Build with Nix 2.24 in devShell
2024-08-19 12:16:33 -04:00
Zhaofeng Li
26b9417bde
Merge pull request #158 from zhaofengli/upsert-object-on-conflict
...
server: Upsert object row on conflict
2024-08-13 10:21:27 -04:00
Zhaofeng Li
443ceac40f
server: Upsert object row on conflict
...
Upsert instead of doing delete+insert or ignoring the specific error.
Fixes #132 .
2024-08-13 07:39:38 -06:00
Zhaofeng Li
e127acbf9a
Merge pull request #154 from cole-h/fixup-stream-error-logging
...
fixup: stream error logging
2024-07-31 20:41:06 -04:00
Cole Helbling
903fb4e39e
fixup: stream error logging
...
The call to `into_inner()` discards the wrapper type constructed by
`map_err()`. So instead, `map_err()` the actual stream, and call
`Body::from_stream` on the wrapped stream.
2024-07-26 10:21:52 -07:00
Cole Helbling
119598d064
fixup: regenerate test token
2024-07-26 07:45:05 -07:00
Cole Helbling
858e5bec13
Merge remote-tracking branch 'upstream/main' into rs256-support
2024-07-26 07:25:11 -07:00
Zhaofeng Li
6139576a3c
Merge pull request #146 from zhaofengli/install-ci-hotfix
...
ci-installer: Remove drvPath from fake derivation
2024-07-09 12:27:54 -04:00
Zhaofeng Li
4168282329
.github: Use latest macOS runners
2024-07-09 12:26:18 -04:00
Zhaofeng Li
ee8f374737
Merge pull request #139 from NLincoln/sqlite-speedup
...
sqlite-specific performance tuning
2024-07-09 08:12:19 -04:00
Zhaofeng Li
71396b9518
ci-installer: Remove drvPath from fake derivation
...
Also hotfixes the current install-attic-ci.sh.
Fixes #145 .
Ref: f923ed6b6a
2024-07-09 07:56:03 -04:00
A cursed quail
759dbc9f7e
sqlite-specific performance tuning
2024-06-08 22:05:37 -05:00
Zhaofeng Li
717cc95983
Merge pull request #138 from zhaofengli/axum-0.7
...
Various bumps
2024-06-01 16:04:00 -06:00
Zhaofeng Li
14cb5f9e46
Trivial semver-incompatible upgrades
2024-06-01 13:47:27 -06:00
Zhaofeng Li
9a6b2cbf1d
server: Upgrade aws-sdk-rust
2024-06-01 13:47:27 -06:00
Zhaofeng Li
bc22e00a3b
server: Upgrade to Axum 0.7
2024-06-01 13:47:27 -06:00
Zhaofeng Li
cb1b80e989
attic/Cargo.toml: Activate tokio/rt with nix-store
...
Makes `cargo check` inside the crate work.
2024-06-01 13:47:27 -06:00
Zhaofeng Li
2a6b9c592b
.editorconfig: Fix indentation
2024-06-01 13:47:27 -06:00
Zhaofeng Li
4ffeb50f50
Cargo.lock: Update
2024-06-01 13:47:27 -06:00
Zhaofeng Li
a1a521c32f
flake.lock: Update crane
2024-06-01 13:47:27 -06:00
Zhaofeng Li
ff3ce2c0b8
attic/build.rs: Fix filename in workaround comment
2024-06-01 13:47:27 -06:00
Zhaofeng Li
6603ee14ed
Merge pull request #134 from srhb/trim-token-file
...
trim token-file contents
2024-06-01 08:51:22 -06:00
Zhaofeng Li
ec0469cad0
Merge pull request #135 from cole-h/token-use-indexmap
...
token: switch to using IndexMap for consistent ordering of entries
2024-06-01 08:24:31 -06:00
Zhaofeng Li
0558269391
Merge pull request #137 from cole-h/log-stream-errors
...
Log stream errors
2024-06-01 08:17:54 -06:00
Zhaofeng Li
3907b31157
Merge pull request #116 from ixmatus/parnell/fix-gc-bug
...
gc.rs: `LIMIT` number of `orphan_chunks`, fixes #115
2024-06-01 08:13:20 -06:00
Cole Helbling
a4f2cae9dd
Log stream errors
2024-05-28 11:32:43 -07:00
Cole Helbling
18dedcc30b
token: switch to using IndexMap for consistent ordering of entries
...
Because of the random ordering of HashMap, if you have
overlapping token permissions, it is possible to randomly pick
one that leads to some operation working intermittently (see
https://github.com/zhaofengli/attic/issues/133 for an example of this).
By using an IndexMap instead, we make "iteration order of the key-value
pairs [...] independent of the hash values of the keys" (from the
indexmap crate docs [1]), which leads to more predictable behavior.
[1]: https://docs.rs/indexmap/latest/indexmap/
2024-05-25 11:26:40 -07:00
Cole Helbling
f18f581188
token: test that permissions iteration order is consistent
2024-05-25 11:26:40 -07:00
Sarah Brofeldt
a2a2011b5f
trim token-file contents
...
Any ordinary file will contain at least a trailing newline which cannot
be included in the bearer header. Trim all leading/trailing whitespace.
2024-05-15 08:17:59 +02:00
Zhaofeng Li
4dbdbee457
Merge pull request #123 from winterqt/fix-build-on-newer-nix
...
Fix build on Nix 2.19+
2024-03-29 14:01:00 -06:00
Winter
657db64e51
Fix build on Nix 2.19+
...
Nix 2.19 introduced a change [0] that broke how we compile our libnixstore
bindings, which requires adding an additional include directory when
we compile them.
[0]: b461cac21a
2024-03-29 11:59:20 -06:00
Winter
8e64f8ba45
Revert "Fix build on Darwin"
...
This reverts commit bdafd64910
, as this
workaround is no longer required on newer Nixpkgs.
2024-03-27 17:20:19 -04:00
Winter
60db437df0
Update nixpkgs
2024-03-27 17:20:19 -04:00
Parnell Springmeyer
d3ffcf885c
Choose a more sensible limit for MySQL, suggested by @baloo
2024-02-28 14:06:31 -08:00
Parnell Springmeyer
2705d1d90b
Limit the chunk finding query, not the GC mark query
2024-02-28 12:53:27 -08:00
Parnell Springmeyer
47f17e0900
gc.rs: LIMIT number of orphan_chunk_ids
; fixes #115
2024-02-28 10:37:36 -08:00
Cole Helbling
c943b5230f
fixup: missing field
2024-02-26 11:48:26 -08:00
Cole Helbling
41b42b62d5
Merge remote-tracking branch 'upstream/main' into rs256-support
2024-02-26 11:45:09 -08:00
Cole Helbling
756fef8d5f
Support pubkey-only JWT configuration
2024-02-26 11:44:04 -08:00
Zhaofeng Li
6eabc3f02f
Merge pull request #111 from jsoo1/restart-atticd-on-failure
...
nixos: restart atticd on failure
2024-02-14 07:47:33 -07:00
John Soo
8f5e3c1035
nixos: restart atticd on failure
2024-02-08 11:39:38 -07:00