Skip to content

chore(test): drop fixed --basetemp from addopts (LAB-2814) - #278

Open
27Bslash6 wants to merge 1 commit into
mainfrom
agent/haiku/03c24cfa
Open

chore(test): drop fixed --basetemp from addopts (LAB-2814)#278
27Bslash6 wants to merge 1 commit into
mainfrom
agent/haiku/03c24cfa

Conversation

@27Bslash6

Copy link
Copy Markdown
Contributor

Fixes concurrent pytest sessions corrupting each other's temp directories.

Two concurrent pytest runs on one host with --basetemp=/tmp/pytest compete to delete and recreate the same directory, causing spurious test failures in the File backend tests (tmp_path corruption).

Removing the fixed basetemp uses pytest's default collision-safe numbering in system temp. Verified with two concurrent runs on test_file_backend.py — both pass.

Two concurrent pytest sessions on one host can corrupt each other's temp
directories due to the fixed /tmp/pytest path being deleted and recreated by
each session. Pytest's default (system temp with numbered, lock-protected dirs)
is collision-safe and requires no configuration.
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 101 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Team

Run ID: 53799fa4-7dc4-415f-baf4-8a375b7d4499

📥 Commits

Reviewing files that changed from the base of the PR and between fb3e633 and 30c8e5d.

📒 Files selected for processing (1)
  • pyproject.toml

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant