Closed
Description
Duplicates
- I have searched the existing issues
Current behavior 😯
Tests fail, often in different ways
Expected behavior 🤔
Tests pass
Steps to reproduce 🕹
$ git --version
git version 2.34.1
$ git lfs --version
git-lfs/3.0.2 (GitHub; linux amd64; go 1.18.1)
$ git clone https://github.com/Byron/gitoxide.git
$ git lfs install
$ git lfs pull
$ just test
...
failures:
---- index::file::read::sparse_checkout_non_sparse_index stdout ----
Archive at 'fixtures/generated-archives/v3_skip_worktree.tar.xz' not found, creating fixture using script 'make_index/v3_skip_worktree.sh'
thread 'index::file::read::sparse_checkout_non_sparse_index' panicked at 'assertion failed: `(left == right)`
left: `Flags(EXTENDED | SKIP_WORKTREE)`,
right: `Flags(0x0)`', gix-index/tests/index/file/read.rs:245:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
index::file::read::sparse_checkout_non_sparse_index
test result: FAILED. 41 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s
error: test failed, to rerun pass `-p gix-index-tests --test single-threaded`
error: Recipe `unit-tests` failed on line 132 with exit code 101
$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: gix-commitgraph/tests/fixtures/generated-archives/octopus_merges.tar.xz
modified: gix-diff/tests/fixtures/generated-archives/make_diff_repo.tar.xz
modified: gix-index/tests/fixtures/generated-archives/v3_skip_worktree.tar.xz
no changes added to commit (use "git add" and/or "git commit -a")
$ git reset --hard
$ cargo test --all --exclude gix-index-tests
...
failures:
---- worktree::checkout::accidental_writes_through_symlinks_are_prevented_if_overwriting_is_forbidden stdout ----
Extracted fixture from archive 'tests/fixtures/generated-archives/make_dangerous_symlink.tar.xz' (3715112181, Some("unix"))
thread 'worktree::checkout::accidental_writes_through_symlinks_are_prevented_if_overwriting_is_forbidden' panicked at 'assertion failed: `(left == right)`
left: `["A-dir/a", "A-file", "fake-dir/b", "fake-file"]`,
right: `["A-dir/a", "A-file", "FAKE-DIR", "FAKE-FILE", "fake-dir/b", "fake-file"]`', gix-worktree/tests/worktree/checkout.rs:81:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- worktree::cache::attributes::baseline stdout ----
Extracted fixture from archive 'tests/fixtures/generated-archives/make_attributes_baseline.tar.xz' (2874926218, Some("unix"))
thread 'worktree::cache::attributes::baseline' panicked at 'assertion failed: `(left == right)`
left: `[AssignmentRef { name: NameRef(Borrowed("info")), state: Value(ValueRef(Borrowed("attributes"))) }]`,
right: `[AssignmentRef { name: NameRef(Borrowed("global-no-wildcard-case-test")), state: Set }, AssignmentRef { name: NameRef(Borrowed("global-wildcard-case-test")), state: Set }, Assignmen
tRef { name: NameRef(Borrowed("info")), state: Value(ValueRef(Borrowed("attributes"))) }]`: we have the same matches: "Z/x/a"', gix-worktree/tests/worktree/cache/attributes.rs:53:9
---- worktree::checkout::writes_through_symlinks_are_prevented_even_if_overwriting_is_allowed stdout ----
thread 'worktree::checkout::writes_through_symlinks_are_prevented_even_if_overwriting_is_allowed' panicked at 'assertion failed: `(left == right)`
left: `["A-dir/a", "A-file", "fake-dir/b", "fake-file"]`,
right: `["A-dir/a", "A-file", "FAKE-DIR", "FAKE-FILE", "fake-dir/b", "fake-file"]`', gix-worktree/tests/worktree/checkout.rs:110:9
failures:
worktree::cache::attributes::baseline
worktree::checkout::accidental_writes_through_symlinks_are_prevented_if_overwriting_is_forbidden
worktree::checkout::writes_through_symlinks_are_prevented_even_if_overwriting_is_allowed
test result: FAILED. 19 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s
error: test failed, to rerun pass `-p gix-worktree --test worktree-single-threaded`
$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: gix-odb/tests/fixtures/generated-archives/make_repo_multi_index.tar.xz
modified: gix-worktree/tests/fixtures/generated-archives/make_ignorecase_collisions.tar.xz
no changes added to commit (use "git add" and/or "git commit -a")
$ git reset --hard
$ cargo test --all --exclude gix-index-tests --exclude gix-worktree
$ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean