Skip to content

Commit

Permalink
Add slow-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jan 22, 2025
1 parent d364a43 commit 8caae81
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ jobs:
- name: "Cargo test"
run: |
cargo nextest run \
--features python-patch \
--no-default-features \
--features python,python-managed,pypi,git,performance,crates-io \
--workspace \
--status-level skip --failure-output immediate-final --no-fail-fast -j 12 --final-status-level slow
Expand Down Expand Up @@ -272,8 +273,13 @@ jobs:
# Avoid permission errors during concurrent tests
# See https://github.com/astral-sh/uv/issues/6940
UV_LINK_MODE: copy
shell: bash
run: |
cargo nextest run --no-default-features --features python,pypi,python-managed --workspace --status-level skip --failure-output immediate-final --no-fail-fast -j 20 --final-status-level slow
cargo nextest run \
--no-default-features \
--features python,pypi,python-managed \
--workspace \
--status-level skip --failure-output immediate-final --no-fail-fast -j 20 --final-status-level slow
# Separate jobs for the nightly crate
windows-trampoline-check:
Expand Down
4 changes: 3 additions & 1 deletion crates/uv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ ignored = [
]

[features]
default = ["python", "python-managed", "pypi", "git", "performance", "crates-io", "test-ecosystem"]
default = ["python", "python-managed", "pypi", "git", "performance", "crates-io", "slow-tests", "test-ecosystem"]
# Use better memory allocators, etc.
performance = [
"performance-memory-allocator",
Expand All @@ -156,6 +156,8 @@ pypi = []
git = []
# Introduces a dependency on crates.io.
crates-io = []
# Include "slow" test cases.
slow-tests = []
# Includes test cases that require ecosystem packages
test-ecosystem = []
# Adds self-update functionality.
Expand Down
2 changes: 1 addition & 1 deletion crates/uv/tests/it/pip_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7675,7 +7675,7 @@ fn switch_platform() -> Result<()> {

/// See: <https://github.com/astral-sh/uv/pull/6714>
#[test]
#[cfg(unix)]
#[cfg(feature = "slow-tests")]
fn stale_egg_info() -> Result<()> {
let context = TestContext::new("3.12");

Expand Down
2 changes: 1 addition & 1 deletion crates/uv/tests/it/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5276,7 +5276,7 @@ fn sync_derivation_chain_group() -> Result<()> {

/// See: <https://github.com/astral-sh/uv/issues/9743>
#[test]
#[cfg(unix)]
#[cfg(feature = "slow-tests")]
fn sync_stale_egg_info() -> Result<()> {
let context = TestContext::new("3.13");

Expand Down

0 comments on commit 8caae81

Please sign in to comment.