Skip to content

Apply artifact filters to collection views - #14802

Merged
sipsma merged 18 commits into
mainfrom
design/artifacts-filtered-view-handoff
Oct 30, 2026
Merged

sipsma merged 18 commits into
mainfrom
design/artifacts-filtered-view-handoff

Conversation

@shykes

@shykes shykes commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Artifact filters must reach module code that reads collections. Apply filters as collection views, preserve parent references and deferred work under the same selection, and retain original collections for delta comparisons.

Run checks and generators per item. An item check can request its nearest enclosing selected collection as a required object argument. Explicit caller inputs take precedence. Ordinary functions keep their required caller arguments. Modules share execution through ordinary helpers instead of native engine batching. Remove the native batch namespace and bulk artifact evaluation APIs; update the SDKs.

Dependencies:

Additional fixes:

  • Preserve stored object identities and copy field maps during filtered SDK conversion.
  • Attach inline collections before conversion, including without filters.
  • Preserve installed module type names in Dang and include the installed type in filtered-view cache identity.
  • Prepare Cloud credentials while the client remains connected, allowing upload to finish in the background.

Compatibility: modules that rely on native collection batching need to adapt. The old Go main runner declares both package-wide and individual checks; with this engine it can execute selected tests twice when backend results are not cached. Go#84 provides the matching runner.

@tiborvass
tiborvass force-pushed the design/artifacts-filtered-view-handoff branch from 56d167b to d8a6901 Compare October 26, 2026 18:34
@tiborvass
tiborvass force-pushed the design/artifacts-filtered-view-handoff branch 2 times, most recently from 16bd613 to 96c671c Compare October 28, 2026 15:59
@tiborvass
tiborvass force-pushed the design/artifacts-filtered-view-handoff branch 2 times, most recently from cb5ec44 to 97a8621 Compare October 28, 2026 21:32
@tiborvass
tiborvass force-pushed the design/artifacts-filtered-view-handoff branch 2 times, most recently from 09f321f to 636dd96 Compare October 29, 2026 06:24
@tiborvass
tiborvass force-pushed the design/artifacts-filtered-view-handoff branch 2 times, most recently from e930a26 to 253f439 Compare October 29, 2026 08:12
@tiborvass
tiborvass marked this pull request as ready for review October 29, 2026 08:35
@tiborvass
tiborvass requested review from a team as code owners October 29, 2026 08:35
@tiborvass
tiborvass force-pushed the design/artifacts-filtered-view-handoff branch 3 times, most recently from 1e83755 to 4f31389 Compare October 29, 2026 16:48
shykes and others added 6 commits October 30, 2026 10:05
Describe collection selection, per-item checks, and the shared helper
that receives the selected collections.

Signed-off-by: Tibor Vass <[email protected]>
Update Dang and share its parsed syntax cache. Use the original module
name when loading type definitions and the installed name when
evaluating calls.

Signed-off-by: Tibor Vass <[email protected]>
Convert native core values and null values through the scalar adapter.
Keep the conversion consistent with decoded scalar inputs.

Signed-off-by: Tibor Vass <[email protected]>
Replace batch projections with filtered collection views. Preserve
object identity, private state, and lazy references when converting or
restoring a view.

Update the schema, generated clients, documentation, and regression
tests.

Co-authored-by: Tibor Vass <[email protected]>
Signed-off-by: Tibor Vass <[email protected]>
Pass selected ancestor collections to matching check arguments. This
lets item checks share a helper that operates on the selected set.

Signed-off-by: Tibor Vass <[email protected]>
Keep check execution subject to its cache policy. Report the outcome on
each request, including cached failures and stale generator patches.
Preserve check addresses and generator results.

Signed-off-by: Tibor Vass <[email protected]>
@tiborvass
tiborvass force-pushed the design/artifacts-filtered-view-handoff branch from c6eb76f to a9404b9 Compare October 30, 2026 17:06
A type selector can name a path suffix. Resolve it against the available
schema paths before narrowing discovery. Treat only an explicit address
path as exact.

Signed-off-by: Tibor Vass <[email protected]>
Prepare the Cloud upload credentials before session shutdown. Reuse them
for the final telemetry upload.

Signed-off-by: Tibor Vass <[email protected]>
Close remote Cloud clients concurrently within one shared deadline. Use
the same deadline for graceful shutdown and telemetry draining. Release
transport resources when the deadline expires.

Signed-off-by: Tibor Vass <[email protected]>
A restorable checkpoint can arrive before its lifecycle state. Wait for
both before sending SIGKILL. Keep the interrupted archive and
conversation resume assertions.

Signed-off-by: Tibor Vass <[email protected]>
Use dagger/go PR84 at commit 3159d1fa20a86963dbf9b48f856daeec72be3893.
This runner passes selected collections to its shared test helper and
describes the check as "Run go tests".

Signed-off-by: Tibor Vass <[email protected]>
Hide collapsed collection columns in broad listings. Show them when a
module or collection selector is present. Keep --all expansion
unchanged.

Signed-off-by: Tibor Vass <[email protected]>
Mark dimension metadata accessors internal and passthrough. Hide these
rows even when Cloud shows internal spans.

Signed-off-by: Tibor Vass <[email protected]>
Keep connection outside the collapsed preparation span. Finish discovery
and metadata reads before listing or executing artifacts.

Show flat artifact URI spans under list artifacts. Reveal the list and
its links. Listing spans have no check execution or pass/fail
attributes. Keep execution spans outside preparation.

Signed-off-by: Tibor Vass <[email protected]>
For modules before v1.0.0-beta.22, replace matching item checks with
one collection check using the selected keys. Apply the same plan
to CLI execution and Artifacts.asChecks.

Keep selections across saved artifacts and remote execution. Leave
listing and newer modules unchanged. Add a TODO to remove this
compatibility code after module migration.

Signed-off-by: Tibor Vass <[email protected]>
@tiborvass
tiborvass force-pushed the design/artifacts-filtered-view-handoff branch from a9404b9 to b835ee5 Compare October 30, 2026 17:59
Generation reports a module that fails to load as a revealed span from
discovery. Under the encapsulated preparation span, plain progress no
longer showed which module was skipped or why. Run discovery under the
generators span again when generating. Listing keeps the preparation
span.

Signed-off-by: Erik Sipsma <[email protected]>
Modules before v1.0.0-beta.22 declare a generator on both a collection
and its items, as dagger/go v0.3.1 does. Main replaced the item
generators with one collection call; this branch ran every item
generator as well as the collection one, in generate and in stale
checks. Apply the legacy execution plan to generators and their stale
checks, and to Artifacts.asGenerators.

Signed-off-by: Erik Sipsma <[email protected]>
@sipsma
sipsma merged commit 9b7545b into main Oct 30, 2026
92 checks passed
@sipsma
sipsma deleted the design/artifacts-filtered-view-handoff branch October 30, 2026 19:54
sipsma added a commit that referenced this pull request Nov 2, 2026
checks and cli: finish #14802's follow-ups, never lose a check's final state, discover filter flags in the command's session
eunomie added a commit to dagger/java-sdk that referenced this pull request Nov 21, 2026
* docs: describe collections without batch, gone in v1.0.0-beta.22

dagger/dagger#14802 replaced batch with filtered collection views;
the e2e collection checks and their fixtures follow.

Signed-off-by: Yves Brissaud <[email protected]>

* fix(generate): bind same-repo clients by path in Git workspaces

A Git workspace resolves its own modules as Git sources at its commit,
so their clients were bound to that commit and regeneration never
matched; go-sdk#73 and python-sdk bind them by path.

Signed-off-by: Yves Brissaud <[email protected]>

* test(e2e): run the e2e checks on the engine that runs them

dagger check no longer builds dev engines; the floor stays declared,
as in go-sdk#111 and python-sdk#83. PinApp is never cached, so each
session loads its git client again, and the pushable git server is
its own: a push to the server git-check shares would move its tag.

Signed-off-by: Yves Brissaud <[email protected]>

* feat(generate): name a new module's class by the engine

strcase wrote E2ETest and K8STools where the engine, and the module's
client, spell E2eTest and K8sTools.

Signed-off-by: Yves Brissaud <[email protected]>

---------

Signed-off-by: Yves Brissaud <[email protected]>
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.

4 participants