Repository navigation
Tests: the shared render really is shared, and the reload's re-check under its claim (#199's weak and untested spots) - #226
Open
ndbroadbent wants to merge 2 commits into
Open
ndbroadbent wants to merge 2 commits into
ndbroadbent wants to merge 2 commits into
Conversation
ndbroadbent
force-pushed
the
weak-tests
branch
from
December 4, 2026 18:05
6a8b33f to
74f67df
Compare
This branch has not been deployed
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.
The #199 review's weak and untested spots:
Shared render (renderer.rs): "the build sharing it doesn't pay again" passed even if the second build was never charged. Now it also checks:
effective_snapshots, since the second build's group reads the first build's row);Re-check under the reload's claim (billing_branches.rs): untested. A trigger on the claim's own UPDATE stands in for the race: another reload's pack lands, or the organization moves to Free, between the first checks and the claim. The re-check buys nothing in either case. Both tests fail with the re-check switched off.
Reused image diff (processing.rs): the test now checks that the second project's changed page points at the diff row the first project made, as well as that it wasn't charged for it.
Order and error path of a finished build (processing.rs): untested. Recording listeners in the test binary show that
BuildChanged(the check and live pages) is heard beforeCreditsSpent. With the check's listener failing (a forge that's down), billing still hears. The test fails iffinished()swaps the order or returns early on the check's error.Tests only.