Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP store index in Flatbuffers #201

Draft
wants to merge 93 commits into
base: validate-output
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
551525d
Abstracted UI, errors through tracing, metrics, and metric and error …
sourcefrog Feb 12, 2023
a2f6d60
Bump band version to 23.2
sourcefrog Feb 14, 2023
6ff4d7d
Add per-band format flags
sourcefrog Feb 14, 2023
79f342b
Bump version
sourcefrog Feb 14, 2023
13e86fa
Remove dashed band ids
sourcefrog Feb 14, 2023
d83d292
Move BandId tests to integration tests
sourcefrog Feb 14, 2023
a53e888
Revert "Try to avoid redundant CI on PRs (#204)"
sourcefrog Feb 14, 2023
74d033a
Metrics for local transport
sourcefrog Feb 14, 2023
6b26b7c
News about new options
sourcefrog Feb 12, 2023
ab6910b
Make Entry object safe
sourcefrog Feb 16, 2023
d1921ba
News of progress bars
sourcefrog Feb 17, 2023
72cd975
Write 0.6.3 format unless there are flags
sourcefrog Feb 17, 2023
744c078
Replace our UnixTime with time::OffsetDateTime
sourcefrog Feb 20, 2023
242ee56
Refactor Restore
sourcefrog Feb 13, 2023
00cc50c
Fix Windows build
sourcefrog Feb 15, 2023
fc75b5e
Metrics during restore
sourcefrog Feb 13, 2023
544ee6c
Clippy
sourcefrog Feb 20, 2023
00c8af0
Fix progress bar for block deletion
sourcefrog Feb 24, 2023
4881090
Add --json-changes and EntryChange concept (#208)
sourcefrog Mar 10, 2023
e715e20
Add codespell config
sourcefrog May 11, 2023
d7a3d50
Fix some typos in docs and comments
sourcefrog May 11, 2023
f107b52
Add codespell dict
sourcefrog May 21, 2023
dbe3212
backup takes a path for the source
sourcefrog May 21, 2023
7ad33af
WIP: test damaged archives
sourcefrog May 21, 2023
a82178c
Add failing test for damaged bandhead
sourcefrog May 21, 2023
3e3a6f0
Factor out Damage strategy
sourcefrog May 21, 2023
d4e67e3
When stitching, skip backups we can't open
sourcefrog May 21, 2023
6887651
Add Damage::Delete
sourcefrog May 21, 2023
8d3fb6e
Comment
sourcefrog May 21, 2023
e9f51ae
Can list versions and tree contents after damage
sourcefrog May 21, 2023
8ce39ba
Can validate after damage
sourcefrog May 21, 2023
b8d2431
Comment
sourcefrog May 21, 2023
4c3ccdf
Merge pull request #211 from sourcefrog/damaged-bandhead
sourcefrog May 21, 2023
064048b
Turn off rstest async feature
sourcefrog May 21, 2023
196fc05
Update clap
sourcefrog May 21, 2023
9b7da9d
Merge pull request #212 from sourcefrog/update
sourcefrog May 21, 2023
d996e4b
Move API tests out
sourcefrog May 21, 2023
017bddd
Add Archive::iter_entries and use in tests
sourcefrog May 21, 2023
a0b250d
Add a generic EntryValue
sourcefrog May 21, 2023
fafeef9
Use EntryValue more places
sourcefrog May 22, 2023
fa91d48
Allow serializing the EntryValue
sourcefrog May 22, 2023
a1c074b
Remove Tree::file_contents
sourcefrog May 22, 2023
ce0a058
Factor out entry_iter_to_apath_strings
sourcefrog May 22, 2023
4501e45
More refactor of Entry handling
sourcefrog May 22, 2023
c660f8a
refactor
sourcefrog May 22, 2023
ebcf35e
Add ls --json
sourcefrog May 22, 2023
9883b0b
Merge pull request #213 from sourcefrog/entry-value
sourcefrog May 22, 2023
ebd9dee
Don't spam errors about unsupported file kinds
sourcefrog May 24, 2023
1a43d80
cargo update
sourcefrog May 24, 2023
e9cea54
Update dependencies
sourcefrog May 24, 2023
1bd15fa
Prepare 23.5!
sourcefrog May 24, 2023
55e2325
CI variation for install --locked
sourcefrog Jul 23, 2023
086a65c
Don't really need serializable errors
sourcefrog Aug 19, 2023
4af6bf7
Clippy: remove unnecessary hashes around strings
sourcefrog Aug 21, 2023
e5eeac0
Clippy
sourcefrog Aug 22, 2023
b7e653c
Tentative migration towards anyhow
sourcefrog Aug 22, 2023
21c6e1a
Convert remove_dir, remove_dir_all and callers to Anyhow
sourcefrog Aug 22, 2023
2f72ccb
anyhow contaigion
sourcefrog Aug 22, 2023
8ef9654
WIP add transport::Error to allow understanding lower level erros
sourcefrog Aug 22, 2023
08d3d41
Use anyhow more
sourcefrog Aug 25, 2023
be4af0c
More conversion to anyhow
sourcefrog Aug 25, 2023
58fca86
WIP: Declare a transport::Error
sourcefrog Aug 25, 2023
bcc3cf0
cargo update
sourcefrog Aug 25, 2023
30553b9
Define a transport::Error
sourcefrog Aug 25, 2023
fb56bef
transport::create_dir -> transport::Result
sourcefrog Aug 25, 2023
7711d16
todo
sourcefrog Aug 25, 2023
314e515
transport::Error from remove_dir, remove_dir_all
sourcefrog Aug 25, 2023
d857a23
More transport::Error in metadata etc
sourcefrog Aug 25, 2023
2e8c497
More transport errors
sourcefrog Aug 26, 2023
fe37535
impl Clone for BandId
sourcefrog Aug 26, 2023
b4fd976
Move is_not_found to transport::Error
sourcefrog Aug 26, 2023
ce38508
Simplify some error handling
sourcefrog Aug 26, 2023
b1007bc
Merge branch 'main' into simpler-errors
sourcefrog Aug 26, 2023
5a6e14d
More error handling cleanups
sourcefrog Aug 26, 2023
b1b35e5
One more error handling cleanup
sourcefrog Aug 26, 2023
bf17285
An ersatz try-block
sourcefrog Aug 26, 2023
4731220
Pass BandId by value
sourcefrog Aug 26, 2023
7e07d6e
Delete unused Error variants
sourcefrog Aug 26, 2023
86cf143
Merge pull request #216 from sourcefrog/simpler-errors
sourcefrog Aug 26, 2023
cb2c4d0
Remove Transport::is_dir
sourcefrog Aug 26, 2023
38a4a81
Remove Transport::remove_dir
sourcefrog Aug 26, 2023
22c3879
Remove Transport::url for now
sourcefrog Aug 26, 2023
903836a
Rename to Transport::list_dir, ListDir
sourcefrog Aug 26, 2023
e3f11c0
Read Transport directories in one shot
sourcefrog Aug 26, 2023
ce7be26
Merge pull request #217 from sourcefrog/transport
sourcefrog Aug 26, 2023
2aadbf8
cargo-mutants in CI on selected files
sourcefrog Aug 26, 2023
ea18e9e
Must checkout before testing?
sourcefrog Aug 26, 2023
00c8f00
Run on main and on PRs
sourcefrog Aug 26, 2023
c0ce8f1
Don't use --all-features yet
sourcefrog Aug 26, 2023
8d5f544
Mutants with -Vv
sourcefrog Aug 26, 2023
b5b5da5
Merge pull request #218 from sourcefrog/ci-mutants
sourcefrog Aug 26, 2023
62c942d
Experimental Flatbuffer index
sourcefrog Feb 6, 2023
98fd0fd
Store unix_mode in a struct to make it optional
sourcefrog Feb 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .cargo/mutants.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Include only files that are currently well-tested.
examine_globs = ["src/bandid.rs", "src/bin/conserve.rs"]
1 change: 1 addition & 0 deletions .codespell.dict
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assertino->assertion
2 changes: 2 additions & 0 deletions .codespell.words
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
crate
ser
5 changes: 5 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[codespell]
ignore-words = .codespell.words
skip = target,.git
builtin = clear,rare,code
dictionary = .codespell.dict
5 changes: 4 additions & 1 deletion .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ on:

jobs:
cargo-install:
strategy:
matrix:
locked: ["", "--locked"]
runs-on: ubuntu-latest
steps:
- name: cargo-install
run: |
cargo install cargo-mutants
cargo install cargo-mutants ${{ matrix.locked }}
29 changes: 29 additions & 0 deletions .github/workflows/mutants.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: cargo-mutants

on:
pull_request:
branches:
- main
push:
branches:
- main
- ci-*

jobs:
cargo-mutants:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install cargo-mutants
uses: baptiste0928/cargo-install@v2
with:
crate: cargo-mutants
- name: Run mutant tests
# Can't use --all-features here because BLAKE2 SIMD needs unstable...
run: cargo mutants -j2 --no-shuffle -vV
- name: Archive results
uses: actions/upload-artifact@v3
with:
name: mutation-report
path: mutants.out
7 changes: 1 addition & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Rust

on:
push:
branches:
- "main"
- "releases/*"
pull_request:
on: [push, pull_request]

# see https://matklad.github.io/2021/09/04/fast-rust-builds.html
env:
Expand Down
Loading