Repository navigation
Drop the polyfill for the engine's findRoots - #2
Merged
Merged
Conversation
The engine now ships Workspace.findConfigDirs (dagger/dagger#13769): the same cwd-aware project discovery this module got from github.com/dagger/polyfill — same semantics, ported from the polyfill's own design and test matrix. Swap the call, drop the dependency, and require the engine release that ships it. The engineVersion bump and the dependency removal have to land together: the version gate is what keeps the engine's new changeset behavior scoped to migrated modules. Signed-off-by: Guillaume de Rouville <[email protected]>
The API landed as Workspace.findRoots, not findConfigDirs, with markers as a named argument: the first positional is start. v1.0.0-beta.10 is the first release that ships it, so pin the e2e module to it too. The node_modules exclusion is this module's own policy rather than the engine's, and it now rides on the engine's glob semantics instead of the polyfill's, so vendoredDiscoveryCheck pins it. Signed-off-by: Tom Chauveau <[email protected]>
TomChv
marked this pull request as ready for review
August 26, 2026 11:22
v1.0.0-beta.10 rewrites dagger.lock on every run, so leaving the v1 file in the tree hands every contributor a dirty worktree. Record the migrated file instead: the v2 format, the re-resolved dang-sdk ref, and the base image digests for both platforms the module is built on. Signed-off-by: Tom Chauveau <[email protected]>
Member
|
Tests passes locally but they don't run in CI, I think there might be an infra issue: https://dagger.cloud/Quartz/traces/23ccf10d6bac072c67cbd2f4a1a85fc9#2b90bea06a910e6b |
TomChv
self-requested a review
August 26, 2026 13:19
TomChv
approved these changes
Aug 26, 2026
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 MochaJS module uses
dagger/polyfillto find projects from several supported config filenames. It should include projects below the user's current directory, select the nearest enclosing project from a subdirectory, and leave siblings outside that scope alone.Workspace.findRootsin dagger/dagger#13854 now owns that behavior, so this PR removes the wrapper. The API landed asfindRootsrather than the provisionalfindConfigDirs, andmarkersis a named argument because the first positional isstart.engineVersionmoves tov1.0.0-beta.10for both the module and the e2e module — the first release that ships it.The
node_modulesexclusion is this module's own policy rather than the engine's, and it now rides on the engine's glob semantics instead of the polyfill's, sovendoredDiscoveryCheckpins it.dagger.lockmigrates to the v2 format. Beta.10 rewrites the file on every run, so keeping the v1 file would hand every contributor a dirty worktree.Test
dagger --x-release=v1.0.0-beta.10 checkAll 10 checks pass, covering config names, ancestor and descendant selection, sibling exclusion, vendored-tree pruning, project listing, and the sample projects.
vendoredDiscoveryCheckwas checked against its negative: dropping theexcludeargument makes it fail withgot [., node_modules/dep], want [.].