Skip to content

Regroup CI doctests and adjust unit-tests recipe #1996

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

Merged
merged 1 commit into from
May 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ jobs:
env:
GIX_TEST_CREATE_ARCHIVES_EVEN_ON_CI: '1'
run: cargo nextest run --workspace --no-fail-fast
- name: Doctest
run: cargo test --workspace --doc --no-fail-fast
- name: Check that tracked archives are up to date
run: git diff --exit-code # If this fails, the fix is usually to commit a regenerated archive.

Expand Down Expand Up @@ -277,7 +275,7 @@ jobs:
GIX_TEST_IGNORE_ARCHIVES: '1'
run: cargo nextest run --workspace --no-fail-fast

test-32bit-windows-size:
test-32bit-windows-size-doc:
runs-on: windows-latest

env:
Expand All @@ -292,8 +290,10 @@ jobs:
- uses: taiki-e/install-action@v2
with:
tool: nextest
- name: Test (nextest)
- name: Test data structure sizes (nextest)
run: cargo nextest run --target $env:TARGET --workspace --no-fail-fast size
- name: Doctest
run: cargo test --workspace --doc --no-fail-fast

lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -497,7 +497,7 @@ jobs:
- test-fast
- test-fixtures-windows
- test-32bit
- test-32bit-windows-size
- test-32bit-windows-size-doc
- lint
- cargo-deny
- check-packetline
Expand Down
70 changes: 35 additions & 35 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -144,41 +144,41 @@ doc $RUSTDOCFLAGS='-D warnings':

# Run all unit tests
unit-tests:
cargo nextest run
cargo test --doc
cargo nextest run -p gix-testtools
cargo nextest run -p gix-testtools --features xz
cargo nextest run -p gix-archive --no-default-features
cargo nextest run -p gix-archive --features tar
cargo nextest run -p gix-archive --features tar_gz
cargo nextest run -p gix-archive --features zip
cargo nextest run -p gix-status-tests --features gix-features-parallel
cargo nextest run -p gix-worktree-state-tests --features gix-features-parallel
cargo nextest run -p gix-worktree-tests --features gix-features-parallel
cargo nextest run -p gix-object
cargo nextest run -p gix-object --features verbose-object-parsing-errors
cargo nextest run -p gix-tempfile --features signals
cargo nextest run -p gix-features --all-features
cargo nextest run -p gix-ref-tests --all-features
cargo nextest run -p gix-odb --all-features
cargo nextest run -p gix-odb-tests --features gix-features-parallel
cargo nextest run -p gix-pack --all-features
cargo nextest run -p gix-pack-tests --features all-features
cargo nextest run -p gix-pack-tests --features gix-features-parallel
cargo nextest run -p gix-index-tests --features gix-features-parallel
cargo nextest run -p gix-packetline --features blocking-io,maybe-async/is_sync --test blocking-packetline
cargo nextest run -p gix-packetline --features async-io --test async-packetline
cargo nextest run -p gix-transport --features http-client-curl,maybe-async/is_sync
cargo nextest run -p gix-transport --features http-client-reqwest,maybe-async/is_sync
cargo nextest run -p gix-transport --features async-client
cargo nextest run -p gix-protocol --features blocking-client
cargo nextest run -p gix-protocol --features async-client
cargo nextest run -p gix --no-default-features
cargo nextest run -p gix --no-default-features --features basic,comfort,max-performance-safe
cargo nextest run -p gix --no-default-features --features basic,extras,comfort,need-more-recent-msrv
cargo nextest run -p gix --features async-network-client
cargo nextest run -p gix --features blocking-network-client
cargo nextest run -p gitoxide-core --lib --no-tests=warn
cargo nextest run --no-fail-fast
cargo nextest run -p gix-testtools --no-fail-fast
cargo nextest run -p gix-testtools --features xz --no-fail-fast
cargo nextest run -p gix-archive --no-default-features --no-fail-fast
cargo nextest run -p gix-archive --features tar --no-fail-fast
cargo nextest run -p gix-archive --features tar_gz --no-fail-fast
cargo nextest run -p gix-archive --features zip --no-fail-fast
cargo nextest run -p gix-status-tests --features gix-features-parallel --no-fail-fast
cargo nextest run -p gix-worktree-state-tests --features gix-features-parallel --no-fail-fast
cargo nextest run -p gix-worktree-tests --features gix-features-parallel --no-fail-fast
cargo nextest run -p gix-object --no-fail-fast
cargo nextest run -p gix-object --features verbose-object-parsing-errors --no-fail-fast
cargo nextest run -p gix-tempfile --features signals --no-fail-fast
cargo nextest run -p gix-features --all-features --no-fail-fast
cargo nextest run -p gix-ref-tests --all-features --no-fail-fast
cargo nextest run -p gix-odb --all-features --no-fail-fast
cargo nextest run -p gix-odb-tests --features gix-features-parallel --no-fail-fast
cargo nextest run -p gix-pack --all-features --no-fail-fast
cargo nextest run -p gix-pack-tests --features all-features --no-fail-fast
cargo nextest run -p gix-pack-tests --features gix-features-parallel --no-fail-fast
cargo nextest run -p gix-index-tests --features gix-features-parallel --no-fail-fast
cargo nextest run -p gix-packetline --features blocking-io,maybe-async/is_sync --test blocking-packetline --no-fail-fast
cargo nextest run -p gix-packetline --features async-io --test async-packetline --no-fail-fast
cargo nextest run -p gix-transport --features http-client-curl,maybe-async/is_sync --no-fail-fast
cargo nextest run -p gix-transport --features http-client-reqwest,maybe-async/is_sync --no-fail-fast
cargo nextest run -p gix-transport --features async-client --no-fail-fast
cargo nextest run -p gix-protocol --features blocking-client --no-fail-fast
cargo nextest run -p gix-protocol --features async-client --no-fail-fast
cargo nextest run -p gix --no-default-features --no-fail-fast
cargo nextest run -p gix --no-default-features --features basic,comfort,max-performance-safe --no-fail-fast
cargo nextest run -p gix --no-default-features --features basic,extras,comfort,need-more-recent-msrv --no-fail-fast
cargo nextest run -p gix --features async-network-client --no-fail-fast
cargo nextest run -p gix --features blocking-network-client --no-fail-fast
cargo nextest run -p gitoxide-core --lib --no-tests=warn --no-fail-fast
cargo test --workspace --doc --no-fail-fast

# These tests aren't run by default as they are flaky (even locally)
unit-tests-flaky:
Expand Down
Loading