aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* nix, ci: build with CraneAlex Auvolat29 hours16-7316/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes our dependency on cargo2nix, which was causing us some issues. Whereas cargo2nix creates one Nix derivation per crate, Crane uses only two derivations: 1. Build dependencies only 2. Build the final binary This means that during the second step, no caching can be done. For instance, if we do a change in garage_model, we need to recompile all of the Garage crates including those that do not depend on garage_model. On the upside, this allows all of the Garage crates to be built at once using cargo build logic, which is optimized for high parallelism and better pipelining between all of the steps of the build. All in all, this makes most builds faster than cargo2nix. A few other changes have been made to the build scripts and CI: - Unit tests are now run within a Nix derivation. In fact, we have different derivations to run the tests using LMDB and Sqlite as metadata db engines. - For debug builds, most CI steps now run in parallel (with the notable exception of the smoke test that runs after the build, which is inevitable). - We no longer pass the GIT_VERSION argument when building debug builds and running the tests. This means that dev binaries and test binaries don't know the exact version of Garage they are from. That shouldn't be an issue in most cases. - The not-dynamic.sh scripts has been fixed to fail if the file does not exist.
* Merge pull request 'woodpecker: use parallel nix-build in debug builds' ↵Alex3 days1-3/+3
|\ | | | | | | | | | | (#949) from nix-parallel into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/949
| * woodpecker: use parallel nix-build in debug buildsAlex Auvolat3 days1-3/+3
|/
* Merge pull request 'split garage_api in garage_api_{common,s3,k2v,admin}' ↵Alex3 days67-819/+841
|\ | | | | | | | | | | (#947) from split-garage-api into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/947
| * fix ci for more test cratessplit-garage-apiAlex Auvolat4 days1-1/+4
| |
| * fix testsAlex Auvolat4 days5-3/+7
| |
| * cargo defs: simplify and fix descriptionsAlex Auvolat4 days4-13/+10
| |
| * update cargo.nixAlex Auvolat4 days1-202/+138
| |
| * use cargo-shear to remove many unused dependencies between cratesAlex Auvolat4 days15-356/+3
| |
| * split s3/cors.rs into also common/cors.rsAlex Auvolat4 days11-186/+179
| |
| * fix things upAlex Auvolat4 days34-102/+130
| |
| * wip: split garage_api into garage_api_{common,s3,k2v,admin}Alex Auvolat4 days52-195/+609
|/
* Merge pull request 'table::insert_many: avoid failure with zero items (fix ↵Alex4 days1-0/+4
|\ | | | | | | | | | | #915)' (#946) from fix-915 into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/946
| * table::insert_many: avoid failure with zero items (fix #915)fix-915Alex Auvolat5 days1-0/+4
|/
* Merge pull request 'api: better handling of helper errors to distinguish ↵Alex6 days12-29/+97
|\ | | | | | | | | | | error codes' (#942) from fix-getkeyinfo-404 into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/942
| * api: better handling of helper errors to distinguish error codesAlex Auvolat6 days12-29/+97
| |
* | Merge pull request 'Update doc/book/connect/repositories.md' (#941) from ↵Alex6 days2-3/+3
|\ \ | |/ |/| | | | | | | yatesco/garage:main into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/941
| * Update doc/book/operations/multi-hdd.mdyatesco6 days1-2/+2
| | | | | | | | trivial spelling mistake
| * Update doc/book/connect/repositories.mdyatesco6 days1-1/+1
|/ | | | trivial spelling mistake
* Merge pull request 's3 api: make x-amz-meta-* headers lowercase (fix #844)' ↵Alex8 days2-9/+6
|\ | | | | | | | | | | (#938) from fix-844 into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/938
| * s3 api: make x-amz-meta-* headers lowercase (fix #844)fix-844Alex Auvolat8 days2-9/+6
| |
* | Merge pull request 'snapshot: sqlite: use a subdirectory for consistency ↵Alex8 days1-1/+4
|\ \ | |/ |/| | | | | | | with LMDB' (#932) from baptiste/garage:snapshot_consistency_sqlite into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/932
| * snapshot: sqlite: use a subdirectory for consistency with LMDBBaptiste Jonglez8 days1-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, taking a snapshot of the metadata database with sqlite creates a sqlite file without extension with the following format: snapshots/2025-01-26T15:29:17Z This makes it hard to understand what kind of data this is, and is not consistent with LMDB: snapshots/2025-01-26T15:29:17Z/data.mdb With this change, we now get a directory with a single db.sqlite file: snapshots/2025-01-26T15:29:17Z/db.sqlite
* | Merge pull request 'update nix crate to 0.29 and libc to 0.2.169' (#931) ↵Alex8 days3-49/+66
|\ \ | |/ |/| | | | | | | from neuschaefer/garage:nix into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/931
| * Update Cargo.nixAlex Auvolat8 days2-43/+53
| |
| * update nix crate to 0.29 and libc to 0.2.169J. Neuschäfer8 days2-8/+15
| |
* | Merge pull request 'db-snapshot: allow to set directory where snapshots are ↵Alex8 days3-2/+33
|\ \ | |/ |/| | | | | | | stored' (#933) from baptiste/garage:configure_metadata_snapshots_dir into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/933
| * db-snapshot: allow to set directory where snapshots are storedBaptiste Jonglez8 days3-2/+33
| | | | | | | | Fix #926
* | Merge pull request 'fix problems with CI doing work multiple times' (#936) ↵Alex8 days3-3/+2
|\ \ | |/ |/| | | | | | | from woodpecker-simplify into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/936
| * nix CI: reduce redundant workAlex Auvolat8 days3-3/+2
|/
* Merge pull request 'ci: fix woodpecker definitions to comply with woodpecker ↵Alex8 days2-4/+5
|\ | | | | | | | | | | | | 3' (#935) from woodpecker3 into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/935 Reviewed-by: maximilien <me@mricher.fr>
| * ci: fix woodpecker definitions to comply with woodpecker 3woodpecker3Alex Auvolat8 days2-4/+5
|/
* Merge pull request 'doc: Fix Nix devenv setup' (#927) from fix_devenv into mainAlex12 days1-3/+3
|\ | | | | | | Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/927
| * doc: Fix Nix devenv setupfix_devenvBaptiste Jonglez2025-01-161-3/+3
| | | | | | | | | | This is a hotfix to fix the doc for the current setup, see #868 for possible future directions.
* | Merge pull request 'Fix all typos' (#928) from majst01/garage:fix-typos into ↵maximilien2025-01-1760-116/+116
|\ \ | |/ |/| | | | | | | | | main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/928 Reviewed-by: maximilien <me@mricher.fr>
| * Fix all typosStefan Majer2025-01-1660-116/+116
|/
* Merge pull request 'Helm chart: Add garage.existingConfigmap and replace ↵maximilien2025-01-154-68/+178
|\ | | | | | | | | | | | | garage.garage.toml with garage.garageTomlString' (#923) from jessebot/garage:allow-existing-configmap into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/923 Reviewed-by: maximilien <me@mricher.fr>
| * Minor rewording, add some more hintsMaximilien R.2025-01-152-25/+34
| |
| * Add garage.existingConfigmap and replace garage.garage.toml with ↵jessebot2025-01-154-64/+165
|/ | | | | | | | | | garage.garageTomlString also moves all gotemplating back to configmap and adds autogenerated docs via helm-docs Signed-off-by: jessebot <jessebot@linux.com>
* Merge pull request 'update toolchain' (#924) from nix-update into mainAlex2025-01-139-134/+52
|\ | | | | | | Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/924
| * nix build: switch to upstream cargo2nix (branch release-0.11.0)nix-updateAlex Auvolat2025-01-123-20/+24
| |
| * nix build: remove clippy build env that doesn't workAlex Auvolat2025-01-124-99/+11
| |
| * nix build: update rustc to v1.78Alex Auvolat2025-01-121-1/+1
| |
| * fix formatting to comply with latest rustfmtAlex Auvolat2025-01-122-2/+4
| |
| * flake: update versions of nixpkgs and rust-overlayAlex Auvolat2025-01-122-12/+12
|/
* Merge pull request 'The version flag is required when applying a layout' ↵maximilien2025-01-091-1/+1
|\ | | | | | | | | | | (#921) from update-quickstart-docs-layout-apply into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/921
| * The version flag is required when applying a layoutupdate-quickstart-docs-layout-applyfabientot2025-01-081-1/+1
|/ | | | | | | | | | | | | | I followed the documentation and got an error if the layout's version was not specified ``` garage layout apply Error: Internal error: Please pass the new layout version number to ensure that you are writing the correct version of the cluster layout. To know the correct value of the new layout version, invoke `garage layout show` and review the proposed changes. ``` This fixes that
* Merge pull request 'Fix #907' (#917) from vk/garage:fix_907 into mainAlex2025-01-041-0/+24
|\ | | | | | | Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/917
| * Formatting withVedad KAJTAZ2025-01-041-2/+2
| |
| * formattingVedad KAJTAZ2025-01-041-3/+3
| |