Expect a refusal where the soak may build one - #125
Open
beetlebugorg wants to merge 1 commit into
Open
Conversation
A crop can fall outside the image, and the module refuses it when it does. The manifest records no source dimensions, so the generator cannot tell whether the crop it built lies inside one. An operation now reports whether the module may refuse a decodable source given the argument the generator produced, and a chain holding one allows either result. Before this the soak reported a 3.4% failure rate against an unchanged module, because it required an image from a chain the module correctly refuses. A real regression could not be seen through that. MODE=bench drives only requests a decodable source must answer with an image: a safe operation, no mutation, no hostile argument, and no conditional request. Every failure in that mode is a real one, so a run measures throughput. The safe profile resizes with a form that shrinks or fits. ^ and < enlarge, and a chain that enlarges then converts can pass the dimension limit of the output format. WebP stops at 16383 pixels a side. run.sh sets DIMS_ENABLE_DIMS3=on. The generator sends /dims3/ requests and the image ships that endpoint off, so httpd answered 404 for every one.
beetlebugorg
force-pushed
the
fix/soak-expectations
branch
from
September 2, 2026 00:34
981fad5 to
9b2c481
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
An operation reports whether the module may refuse a decodable source given the argument the generator produced. A chain holding one allows either result, so a refusal counts as a result rather than a failure.
MODE=benchdrives only requests a decodable source must answer with an image, so a run measures throughput and every failure in it is a real one.run.shsetsDIMS_ENABLE_DIMS3=on.Why
The soak reported a 3.4% failure rate against an unchanged module. Measured on
mainat2c69660with seed1788290612: 483 failures in 14,801 responses. Every one had the same shape,expect: imagewithtamper: noneand a 400 response, and the module's reasons wereThe crop region lies outside the image,Parsing thumbnail geometry failed, andQuality must be a number from 1 to 100.The generator treats a chain that parses as valid. The module refuses a chain it cannot carry out. Those agreed when the harness landed, and #113 changed the module without changing the generator. A real regression producing a few dozen bad responses cannot be seen through a standing 3.4%.
The manifest records no source dimensions, so the generator cannot tell whether a crop it built falls inside the image. It reports what it knows instead: this chain holds a crop, so either result is allowed.
Building the safe profile found two more faults.
/dims3/returned 404 for every request. #122 turned that endpoint off in the image, and the generator sends/dims3/. Inbenchmode that was 13.6% of all requests, and insoakmode it hid inside the refusals the run already tolerated.A resize with
^or<enlarges, and a chain that enlarges then converts can pass the dimension limit of the output format.format/webp/resize/62x847!/resize/1298x778^asks WebP for an image 17,700 pixels tall, and WebP stops at 16383. The safe profile resizes with a form that shrinks or fits.Verify
I measured 0 failures in 8,611 bench requests at 28.7 requests per second, and 0 failures in 4,543 mixed requests. Both reported no child crash.
A dump shows the two profiles apart:
Every safe request reports
noneandimage. In the mixed profile no chain holding a crop or a thumbnail reportsimage.Breaking
A report from an earlier run counts refusals the new one does not. The failure count is comparable only across runs of the same version.