Skip to content

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

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

Drop the polyfill for the engine's findRoots#19
TomChv merged 1 commit into
dagger:mainfrom
grouville:polyfill-removal

Conversation

@grouville

@grouville grouville commented Aug 7, 2026

Copy link
Copy Markdown
Member

The Vitest module used dagger/polyfill to find projects below the directory where Dagger was run, plus the nearest project above it when invoked from a subdirectory.

That behavior now ships natively as Workspace.findRoots (dagger/dagger#13854, released in v1.0.0-beta.10). This PR switches the discovery call and drops the dependency. Vitest arguments, execution, and result handling do not change.

Note the engine landed the API as findRoots(markers:, exclude:), not the findConfigDirs name this PR originally assumed.

Rebased on main, so it now also covers the includeExtraFiles setting from #21.

Test

Against a v1.0.0-beta.10 engine:

dagger check

All 8 checks pass, including ancestor and descendant discovery, includeExtraFiles, and fixtures with expected test failures.

The engine now ships Workspace.findRoots (dagger/dagger#13854): 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 <guillaume@dagger.io>
Signed-off-by: Tom Chauveau <tom@dagger.io>
@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 tests passes locally but are not run by cloud check, there might be an infra issue: https://dagger.cloud/Quartz/traces/9b19c5f361c3cd39717f571b44c392b5?viewMode=trace

@TomChv
TomChv merged commit 736010a into dagger:main Aug 26, 2026
9 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