Skip to content

Drop the polyfill for the engine's findRoots - #29

Merged
TomChv merged 1 commit into
dagger:mainfrom
grouville:polyfill-removal
Aug 26, 2026
Merged

TomChv merged 1 commit into
dagger:mainfrom
grouville:polyfill-removal

Conversation

@grouville

@grouville grouville commented Aug 7, 2026 •

Copy link
Copy Markdown
Member

The Jest module uses dagger/polyfill to decide which JavaScript projects a command should cover. Running above several projects should include them all; running inside one should select the nearest enclosing project and ignore unrelated siblings.

Workspace.findRoots in dagger/dagger#13854 provides those rules directly. This PR replaces the wrapper with that call and removes the polyfill dependency. Jest execution and test selection are otherwise unchanged.

engineVersion moves to v1.0.0-beta.10, the first release that ships Workspace.findRoots. The bump and the dependency removal land together on purpose: the version gate is what keeps the engine's new changeset behavior scoped to migrated modules.

Test

dagger --x-release=v1.0.0-beta.10 check

All 6 checks pass, including ancestor and descendant discovery with the 56- and 224-test fixtures.

The engine now ships Workspace.findRoots (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]>
Signed-off-by: Tom Chauveau <[email protected]>
@TomChv TomChv changed the title Drop the polyfill for the engine's findConfigDirs Drop the polyfill for the engine's findRoots Aug 26, 2026
@TomChv
TomChv marked this pull request as ready for review August 26, 2026 11:21
@TomChv
TomChv self-requested a review August 26, 2026 11:22
@TomChv

TomChv commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

The test passes when run locally https://dagger.cloud/Quartz/traces/17a0387c1d960647fb8c91a3299d1dcd#6d45f5e564481ce0 but don't run in CI, there might be an infra issue

@TomChv
TomChv merged commit 0610606 into dagger:main Aug 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants