package: stop shipping test/ - #258
Open
thedavidmeister wants to merge 1 commit into
Open
thedavidmeister wants to merge 1 commit into
thedavidmeister wants to merge 1 commit into
Conversation
The published test tree cannot resolve its forge-std or src/ imports, and it sits inside the content hash, so a test-only merge minted a revision. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Warning Review limit reachedNext included review available in 37 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Closes #144
.soldeerignoreexcluded the whole harness config —/foundry.toml,/remappings.txt,/dependencies,/soldeer.lock— but nevertest/, so thepackage shipped the
.t.solsuite and thetest/concrete/fixtures. Thosefiles import
forge-std-1.16.1/src/Test.soland root-rootedsrc/...pathsthat the package no longer declares, so they cannot compile where they land.
Confirmed with
forge soldeer push --dry-runin this branch's worktree: thezip's top level goes from
to
Safe today. The published
test/tree is already unusable from the package —its forge-std and
src/remappings are excluded — so nothing can be importingit, and the one known consumer,
rain.factory.deploy, imports onlyrain-factory-0.1.9/src/...and keeps its owntest/src/concrete/TestCloneable.sol.The second half of the issue is the release signal:
test/sits inside theautopublish content hash, so a test-only merge republishes.
8cb4bf0(two testfiles) became 0.1.21 and
34506fc(three test files) became 0.1.22, neithertouching
src/, while theaudit/-only7aa7666correctly published nothing.After this, a
rain-factoryrevision exists only when the published surfacemoved.
.soldeerignoreis also #171's and #172's file. Each stands alone; #171 removesthe line directly below this insertion, so whichever merges second needs a
trivial conflict resolution.
QA
from the forge suite. The before/after dry-run zips above are the
discriminating evidence.
src/ortest/change, so there is no behaviourto mutate. The repo's own
test/tree is untouched; only whether it ispublished changes.
forge soldeer push --dry-runactually produces, plusrain.factory.deploy's imports at@mainas the live consumer, rather thanan assumption about who might import a fixture.
package and (B) republishing on test-only merges; covered A,B by one entry,
since both follow from
test/being inside the published content. The claimthat no consumer depends on the shipped fixtures was checked against the
consumer rather than assumed: every
rain-factory-*import inrain.factory.deployissrc/.🤖 Generated with Claude Code