Visitar URL original
core: extract artifact flattening rules by shykes · Pull Request #15136 · dagger/dagger · GitHub
Skip to content

core: extract artifact flattening rules - #15136

Open
shykes wants to merge 1 commit into
mainfrom
artifact-flattening
Open

shykes wants to merge 1 commit into
mainfrom
artifact-flattening

Conversation

@shykes

@shykes shykes commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Artifact dimension and selector rules are split between the engine and CLI. Move them into core/artifact/flattening, while preserving current identifiers, coordinates, aliases, flags, and naming policies.

Add an offline runner with readable input/output fixtures, including eight real workspace rows. Keep changes to the heuristic separate from this extraction.

Validation:

  • Passed: go test ./core/artifact ./core/artifact/flattening ./core/artifact/flattening/cmd/flatten.
  • Passed: 120 focused Linux core tests and 181 CLI tests.
  • All 17 focused integration cases passed. The command then exited with code 141 during engine shutdown. Clean main at 37e376c9f3 shows the same result: 17 passed, then exit 141.
  • CI passed. The package-test group passed on retry after failures in unchanged cache and session tests.

Part of #15125. This PR extracts the current algorithm.

Signed-off-by: Solomon Hykes <solomon@dagger.io>
@shykes
shykes marked this pull request as ready for review November 10, 2026 17:36
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.

1 participant