Repository navigation
test: extend wrapped-transition to cover alert-silencing success path - #14315
Merged
Merged
Conversation
The existing test covers only the failure mode: a consumer that reaches for the bare-name compat shim without silencing deprecation alerts fails to build with three errors. Extend the test to also cover the success path: after observing the failure, overwrite [dune] with a consumer that silences [-alert -deprecated] and verify the build succeeds. The resulting file documents both sides of the migration recipe in one place. Also clarify the intro prose to describe [(wrapped (transition "..."))] behaviour and the two-sided test structure. Signed-off-by: Robin Bate Boerop <[email protected]>
There was a problem hiding this comment.
Pull request overview
Extends the existing blackbox cram test for (wrapped (transition "...")) libraries to cover both the failure mode (unsilenced use of bare-name compatibility modules) and the success path (consumer silences the deprecation alert and builds successfully), consolidating the coverage that was previously discussed in #14307.
Changes:
- Expands the introductory prose to explain wrapped vs. bare-name compatibility module behavior and the associated deprecation alert.
- Adds a second phase to the test that rewrites the consumer
dunefile to silence-alert -deprecatedand verifiesdune buildsucceeds.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
rgrinberg
approved these changes
Apr 25, 2026
Copilot AI
pushed a commit
that referenced
this pull request
Apr 27, 2026
…#14315) ## Summary Per discussion on #14307 (closed): the new test added there was redundant with `wrapped-transition.t/run.t`. Taking @rgrinberg's suggestion to combine the two, this PR extends the existing `wrapped-transition.t/run.t` in place rather than introducing a new file. The existing test covered only the failure mode: a consumer that reaches for the bare-name compat shim without silencing deprecation alerts fails to build with three errors. This PR extends the test to also cover the success path: after observing the failure, overwrite `dune` with a consumer that silences `-alert -deprecated` and verify the build succeeds. One file, two sides of the migration recipe. Also clarifies the intro prose to describe `(wrapped (transition "..."))` behaviour and the two-sided test structure. Related: closed #14307 Signed-off-by: Robin Bate Boerop <[email protected]> Co-authored-by: Alizter <[email protected]>
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.
Summary
Per discussion on #14307 (closed): the new test added there was
redundant with
wrapped-transition.t/run.t. Taking @rgrinberg'ssuggestion to combine the two, this PR extends the existing
wrapped-transition.t/run.tin place rather than introducing a newfile.
The existing test covered only the failure mode: a consumer that
reaches for the bare-name compat shim without silencing deprecation
alerts fails to build with three errors.
This PR extends the test to also cover the success path: after
observing the failure, overwrite
dunewith a consumer that silences-alert -deprecatedand verify the build succeeds. One file, twosides of the migration recipe.
Also clarifies the intro prose to describe
(wrapped (transition "..."))behaviour and the two-sided test structure.
Related: closed #14307