Skip to content

core: read only the scope's config files when validating a generated SDK module - #15030

Open
yasyf wants to merge 1 commit into
dagger:mainfrom
yasyf:sdk-scope-config-read
Open

yasyf wants to merge 1 commit into
dagger:mainfrom
yasyf:sdk-scope-config-read

Conversation

@yasyf

@yasyf yasyf commented Nov 2, 2026

Copy link
Copy Markdown

Read only a scope's config files when validating a generated SDK module, instead of the workspace's whole rootfs.

validateGeneratedModuleConfig needs one stat, <scope>/dagger-module.toml or another config filename. It got that stat by resolving filteredWorkspaceRootfs, which for a host workspace is a full gitignore-filtered upload of the checkout. It ran once per module scope on every generate. #15029 has the details.

This resolves the rootfs with an include of <scope>/<name> for each of modules.ConfigFilenames(), and moduleConfigInDir reads the same paths as before.

Measured on one engine, dagger check dag://?check=dang-sdk/generate/stale after a README-only edit, in a workspace with seven Dang module scopes:

Before After
Quiet engine 16.6-17.7 s 1.6 s
In a CI run with ten clients uploading at once 87-106 s not yet measured

Fixes #15029.

…SDK module

validateGeneratedModuleConfig resolved the workspace's whole filtered
rootfs to stat one scope's dagger-module.toml. For a host workspace that
is a full gitignore-filtered upload of the checkout, once per module
scope on every generate, so a workspace with several SDK scopes synced
the whole tree several times per run.

Resolve only the scope's config filenames instead.

Signed-off-by: Yasyf Mohamedali <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validating each generated SDK module scope uploads the whole host workspace

1 participant