Skip to content

testing: add tests for newly added parse_spec function#5696

Merged
superlopuh merged 2 commits intomainfrom
sasha/multiverse/parse-pass
Mar 6, 2026
Merged

testing: add tests for newly added parse_spec function#5696
superlopuh merged 2 commits intomainfrom
sasha/multiverse/parse-pass

Conversation

@superlopuh
Copy link
Member

My push adding tests to #5695 didn't work for some reason, this is more of a quick fix PR to add the tests before moving onto the next change.

@superlopuh superlopuh self-assigned this Mar 4, 2026
@superlopuh superlopuh added the testing Tests (pytest, filecheck, testing infrastructure) label Mar 4, 2026
@superlopuh superlopuh requested a review from jumerckx March 4, 2026 12:48
@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.34%. Comparing base (4d0cf0d) to head (4ca8f05).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5696   +/-   ##
=======================================
  Coverage   86.34%   86.34%           
=======================================
  Files         406      406           
  Lines       57704    57707    +3     
  Branches     6704     6704           
=======================================
+ Hits        49825    49828    +3     
  Misses       6322     6322           
  Partials     1557     1557           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@superlopuh superlopuh requested a review from math-fehr March 5, 2026 17:29
Copy link
Collaborator

@JosseVanDelm JosseVanDelm left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@alexarice alexarice left a comment

Choose a reason for hiding this comment

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

I'm not sure about changing this parse_spec interface



def parse_spec(lexer: PipelineLexer) -> PipelinePassSpec:
def parse_spec(spec: str) -> PipelinePassSpec:
Copy link
Collaborator

Choose a reason for hiding this comment

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

If this is used only for the one test then I'd just inline it to that test.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry I'll open the stack of changes that are incoming that use this function specifically

Copy link
Member Author

Choose a reason for hiding this comment

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

@superlopuh superlopuh merged commit e9d6947 into main Mar 6, 2026
23 checks passed
@superlopuh superlopuh deleted the sasha/multiverse/parse-pass branch March 6, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Tests (pytest, filecheck, testing infrastructure)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants