Skip to content

Refactor parse_samples/parse_wild_samples to reduce duplication and add known failures#10

Merged
sourcefrog merged 4 commits intogitpatch-rs:mainfrom
whitty:feature/failing_tests
Dec 8, 2025
Merged

Refactor parse_samples/parse_wild_samples to reduce duplication and add known failures#10
sourcefrog merged 4 commits intogitpatch-rs:mainfrom
whitty:feature/failing_tests

Conversation

@whitty
Copy link
Copy Markdown
Collaborator

@whitty whitty commented Oct 26, 2025

I've refactored these two parse tests to share more code and make it easier to add in known failing patches

If someone accidentally fixes those known failures it will error and suggest migrating them into the passing regression tests.

  • Cherry-picked a test from feat: parse lines based on line counts #3 because it passes without needing the rest of the changes
  • Added submodule (hex) parse sample - success
  • Added submodule (log) parse sample to failures

@whitty whitty requested review from sourcefrog and vrmiguel October 26, 2025 09:51
@whitty whitty self-assigned this Oct 26, 2025
Copy link
Copy Markdown
Collaborator

@sourcefrog sourcefrog left a comment

Choose a reason for hiding this comment

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

Adding known failures is a great idea!

@sourcefrog sourcefrog merged commit aaf3751 into gitpatch-rs:main Dec 8, 2025
18 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.

3 participants