Skip to content

ci: add no extra flag#653

Merged
begumcig merged 2 commits intomainfrom
ci/add-no-extra-flag
Apr 30, 2026
Merged

ci: add no extra flag#653
begumcig merged 2 commits intomainfrom
ci/add-no-extra-flag

Conversation

@begumcig
Copy link
Copy Markdown
Member

Description

Adding a default "no_extras" pytest marks to our tests as a default, so we don't have to exclude each extra one by one in the testing module

Related Issue

Fixes #(issue number)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactor (no functional change)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Testing

  • I added or updated tests covering my changes
  • Existing tests pass locally (uv run pytest -m "cpu and not slow")

For full setup and testing instructions, see the Contributing Guide.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code, especially for agent-assisted changes
  • I updated the documentation where necessary

Thanks for contributing to Pruna! We're excited to review your work.

New to contributing? Check out our Contributing Guide for everything you need to get started.

Note:

  • Draft PRs or PRs without a clear and detailed overview may be delayed.
  • Please mark your PR as Ready for Review and ensure the sections above are filled out.
  • Contributions that are entirely AI-generated without meaningful human review are discouraged.

First Prune (1-year OSS anniversary)

First Prune marks one year of Pruna’s open-source work. During the initiative window, qualifying merged contributions count toward First Prune. You can earn credits for our performance models via our API.

If you’d like your contribution to count toward First Prune, here’s how it works:

  • Initiative window: First Prune starts on March 31.
  • Issue assignment: For your PR to count toward First Prune, the related issue must be assigned to the contributor opening the PR. Issues are labeled with first-prune.
  • Open for review: Please open your PR and mark it ready for review by April 30 (end of April).
  • Review priority: We’ll make our best effort to review quickly any PR that is open and has a review request before April 30.
  • Credits: Each qualifying merged PR earns 30 credits. We’ll be in touch after all qualifying PRs for First Prune have been merged.
  • To get started: Have a look at all models. You’ll need to sign up on the dashboard before you can redeem your credits.

@begumcig begumcig requested a review from gsprochette April 30, 2026 13:42
@begumcig begumcig changed the title Ci/add no extra flag ci: add no extra flag Apr 30, 2026
Copy link
Copy Markdown
Collaborator

@gsprochette gsprochette left a comment

Choose a reason for hiding this comment

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

Looks super good to me, thanks a lot :)

Comment thread tests/conftest.py
"requires_whisper": "mark test that needs pruna[whisper]",
"requires_upscale": "mark test that needs pruna[upscale]",
"requires_rapidata": "mark test that needs pruna[rapidata]",
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

love that we have them at a single place now :)

- name: base
extras: ""
mark_filter: "cpu and not slow and not style and not requires_intel and not requires_lmharness and not requires_rapidata"
mark_filter: "no_extras"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

much cleaner 💅

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 9169180. Configure here.

run: |
echo "Running tests with up to 3 reruns on failure using $PYTEST_WORKERS workers..."
uv run pytest -n $PYTEST_WORKERS -m "${{ matrix.mark_filter }}" --reruns 3 --reruns-delay 10 --maxfail=1
uv run pytest -n $PYTEST_WORKERS -m "${{ env.DEFAULT_MARK_FILTER }} and ${{ matrix.mark_filter }}" --reruns 3 --reruns-delay 10 --maxfail=1
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

DEFAULT_MARK_FILTER narrows lmharness and rapidata test selection

Low Severity

The DEFAULT_MARK_FILTER ("cpu and not slow and not style") is now unconditionally prepended to every matrix entry's mark_filter. Previously, lmharness and rapidata ran with only their own mark (e.g., -m "requires_lmharness"), meaning all tests with that mark were selected regardless of other marks. Now they get -m "cpu and not slow and not style and requires_lmharness", which silently excludes any lmharness or rapidata test that is also marked slow. No current tests are affected, but this is a behavioral change from the original CI config that could cause future tests to be silently skipped.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 9169180. Configure here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yes bestie it's on purpose

@begumcig begumcig merged commit 24d5072 into main Apr 30, 2026
9 of 10 checks passed
@begumcig begumcig deleted the ci/add-no-extra-flag branch April 30, 2026 14:46
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