Skip to content

chore: remove .dagger and check generated - #13228

Merged
eunomie merged 3 commits into
dagger:mainfrom
eunomie:no-more-check-generated
May 30, 2026
Merged

eunomie merged 3 commits into
dagger:mainfrom
eunomie:no-more-check-generated

Conversation

@eunomie

@eunomie eunomie commented May 27, 2026 •

Copy link
Copy Markdown
Member

This is now built-in in checks for all generate functions.

I also added a --generate flag to only return derived checks from generate functions.
So:

  • dagger check returns explicit checks + generate checks
  • dagger check --no-generate returns only explicit checks
  • dagger check --generate 🆕 returns only generate checks

That way we can mimic the previous dagger check generated (that was custom for dagger/dagger repository) with dagger check --generate in a standard way.

@eunomie
eunomie requested review from a team as code owners May 27, 2026 08:07
@eunomie
eunomie force-pushed the no-more-check-generated branch from 572a11c to 2f55639 Compare May 28, 2026 10:37
@eunomie
eunomie requested a review from a team as a code owner May 28, 2026 10:37
@shykes

shykes commented May 29, 2026

Copy link
Copy Markdown
Contributor

Love it 🙏

@eunomie
eunomie force-pushed the no-more-check-generated branch 4 times, most recently from 8fffcc2 to b6eeaf4 Compare May 29, 2026 20:43
eunomie added 3 commits May 30, 2026 08:03
This is now built-in in checks for all generate functions.

Signed-off-by: Yves Brissaud <[email protected]>
Only list or run check derived from generate functions. This allows
to mimic the previous custom `dagger check generated` in dagger/dagger.

Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
@eunomie
eunomie force-pushed the no-more-check-generated branch from b6eeaf4 to 50bdfd1 Compare May 30, 2026 06:15
@eunomie
eunomie merged commit 66eb122 into dagger:main May 30, 2026
77 checks passed
@eunomie
eunomie deleted the no-more-check-generated branch May 30, 2026 06:34
eunomie added a commit to eunomie/dagger that referenced this pull request May 30, 2026
dagger#13228 added a 'list with generate only includes generators' subtest that
asserts the `dagger check -l --generate` output contains a "Generators"
section header. The workspace branch renders checks and generators as a
unified flat table with a Type column instead, and its sibling
'list includes generator checks inline' subtest explicitly asserts
NotContains "Generators". Adapt the merged-in test to the workspace
format: assert the generators appear as generate-type rows, matching the
existing inline-list subtest, rather than expecting a "Generators" header.

Signed-off-by: Yves Brissaud <[email protected]>
eunomie added a commit to eunomie/dagger that referenced this pull request May 30, 2026
dagger#13228 added a 'list with generate only includes generators' subtest that
asserts the `dagger check -l --generate` output contains a "Generators"
section header. The workspace branch renders checks and generators as a
unified flat table with a Type column instead, and its sibling
'list includes generator checks inline' subtest explicitly asserts
NotContains "Generators". Adapt the merged-in test to the workspace
format: assert the generators appear as generate-type rows, matching the
existing inline-list subtest, rather than expecting a "Generators" header.

Signed-off-by: Yves Brissaud <[email protected]>
eunomie added a commit that referenced this pull request May 30, 2026
…13290)

The subtest used c.Git(url#sha).Head().Tree(), but the core git().head() API does not honor the URL #fragment: it resolves to the live default-branch HEAD. The test therefore always ran against live main instead of the pinned commit, and only passed because main happened to contain a .dagger directory. After .dagger was removed from main (#13228), it began failing with "stat .dagger: no such file or directory".

Pin the commit explicitly via .Commit(sha) so the test is deterministic and exercises the intended historical tree.

Signed-off-by: Yves Brissaud <[email protected]>
eunomie added a commit that referenced this pull request May 30, 2026
#13228 added a 'list with generate only includes generators' subtest that
asserts the `dagger check -l --generate` output contains a "Generators"
section header. The workspace branch renders checks and generators as a
unified flat table with a Type column instead, and its sibling
'list includes generator checks inline' subtest explicitly asserts
NotContains "Generators". Adapt the merged-in test to the workspace
format: assert the generators appear as generate-type rows, matching the
existing inline-list subtest, rather than expecting a "Generators" header.

Signed-off-by: Yves Brissaud <[email protected]>
tiborvass pushed a commit that referenced this pull request Jun 1, 2026
#13228 added a 'list with generate only includes generators' subtest that
asserts the `dagger check -l --generate` output contains a "Generators"
section header. The workspace branch renders checks and generators as a
unified flat table with a Type column instead, and its sibling
'list includes generator checks inline' subtest explicitly asserts
NotContains "Generators". Adapt the merged-in test to the workspace
format: assert the generators appear as generate-type rows, matching the
existing inline-list subtest, rather than expecting a "Generators" header.

Signed-off-by: Yves Brissaud <[email protected]>
shykes pushed a commit that referenced this pull request Jun 1, 2026
* chore: remove .dagger and check generated

This is now built-in in checks for all generate functions.

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

* feat: add --generate flag to dagger check

Only list or run check derived from generate functions. This allows
to mimic the previous custom `dagger check generated` in dagger/dagger.

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

* chore: generate

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

---------

Signed-off-by: Yves Brissaud <[email protected]>
shykes pushed a commit that referenced this pull request Jun 1, 2026
…13290)

The subtest used c.Git(url#sha).Head().Tree(), but the core git().head() API does not honor the URL #fragment: it resolves to the live default-branch HEAD. The test therefore always ran against live main instead of the pinned commit, and only passed because main happened to contain a .dagger directory. After .dagger was removed from main (#13228), it began failing with "stat .dagger: no such file or directory".

Pin the commit explicitly via .Commit(sha) so the test is deterministic and exercises the intended historical tree.

Signed-off-by: Yves Brissaud <[email protected]>
shykes pushed a commit that referenced this pull request Jun 1, 2026
#13228 added a 'list with generate only includes generators' subtest that
asserts the `dagger check -l --generate` output contains a "Generators"
section header. The workspace branch renders checks and generators as a
unified flat table with a Type column instead, and its sibling
'list includes generator checks inline' subtest explicitly asserts
NotContains "Generators". Adapt the merged-in test to the workspace
format: assert the generators appear as generate-type rows, matching the
existing inline-list subtest, rather than expecting a "Generators" header.

Signed-off-by: Yves Brissaud <[email protected]>
tiborvass pushed a commit that referenced this pull request Jun 1, 2026
#13228 added a 'list with generate only includes generators' subtest that
asserts the `dagger check -l --generate` output contains a "Generators"
section header. The workspace branch renders checks and generators as a
unified flat table with a Type column instead, and its sibling
'list includes generator checks inline' subtest explicitly asserts
NotContains "Generators". Adapt the merged-in test to the workspace
format: assert the generators appear as generate-type rows, matching the
existing inline-list subtest, rather than expecting a "Generators" header.

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.

2 participants