Skip to content

Fix unit tests that haven't been running - #3937

Merged
kevinjqliu merged 2 commits into
apache:mainfrom
rambleraptor:fix-unit-test-marker-selection
Sep 11, 2026
Merged

Fix unit tests that haven't been running#3937
kevinjqliu merged 2 commits into
apache:mainfrom
rambleraptor:fix-unit-test-marker-selection

Conversation

@rambleraptor

Copy link
Copy Markdown
Collaborator

Rationale for this change

We have 12 unit tests that haven't been run in CI in months.

We mark unit tests as those that don't have a pytest marker. This means that we falsely mark tests with filterwarnings or other mundane pytest markers as non-unit tests...and then never run them.

The correct thing to do is figure out a list of markers that are integration tests and then have all other tests marked as unit tests.

This also includes fixes for those tests, since they've been broken for a while.

Are these changes tested?

Tests only.

Are there any user-facing changes?

@rambleraptor
rambleraptor requested review from Fokko, geruh and kevinjqliu and removed request for geruh and kevinjqliu September 11, 2026 18:24
Rename the synthesized marker to match its semantics and keep the local unit target from collecting the integration test directory.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

@kevinjqliu kevinjqliu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I made a change to rename it from unmarked to unit which better reflects how we use the tests
cb037dc

Comment thread tests/conftest.py
@kevinjqliu
kevinjqliu added this pull request to the merge queue Sep 11, 2026
Merged via the queue into apache:main with commit b1f2da7 Sep 11, 2026
21 checks passed
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.

2 participants