Skip to content

Call validate() in AbstractBuilder before building#1188

Merged
audiodude merged 2 commits into
mainfrom
1180-fix
Jun 17, 2026
Merged

Call validate() in AbstractBuilder before building#1188
audiodude merged 2 commits into
mainfrom
1180-fix

Conversation

@audiodude

Copy link
Copy Markdown
Member

AbstractBuilder.materialize now validates the builder params before calling build(), raising Wp1RetryableSelectionError (saved as a CAN_RETRY selection with error messages) when validation fails. The equivalent error check is refactored out of SimpleBuilder.build, which now uses validate() only for list normalization.

Fixes #1180

@audiodude audiodude requested a review from ziaddevv June 11, 2026 01:13
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.57%. Comparing base (8097c8e) to head (3b570e5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1188      +/-   ##
==========================================
+ Coverage   92.50%   92.57%   +0.06%     
==========================================
  Files          78       78              
  Lines        4711     4712       +1     
==========================================
+ Hits         4358     4362       +4     
+ Misses        353      350       -3     

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@audiodude audiodude force-pushed the 1180-fix branch 4 times, most recently from 185835c to c1b3b6a Compare June 11, 2026 04:00
Comment thread wp1/selection/abstract_builder.py
audiodude and others added 2 commits June 17, 2026 05:15
AbstractBuilder.materialize now validates the builder params before
calling build(), raising Wp1RetryableSelectionError (saved as a
CAN_RETRY selection with error messages) when validation fails. The
equivalent error check is refactored out of SimpleBuilder.build, which
now uses validate() only for list normalization.

Fixes #1180

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@audiodude audiodude added this pull request to the merge queue Jun 17, 2026
Merged via the queue into main with commit 7b2bd42 Jun 17, 2026
7 checks passed
@audiodude audiodude deleted the 1180-fix branch June 17, 2026 12:34
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.

AbstractBuilder should call validate() before building

2 participants