Skip to content

ci: run Go unit tests for the maintenance module#238

Open
mnencia wants to merge 3 commits into
mainfrom
dev/ci-unit-tests
Open

ci: run Go unit tests for the maintenance module#238
mnencia wants to merge 3 commits into
mainfrom
dev/ci-unit-tests

Conversation

@mnencia

@mnencia mnencia commented Jun 9, 2026

Copy link
Copy Markdown
Member

The maintenance module under dagger/maintenance has unit tests but nothing in CI runs them. This adds a workflow that runs go test on every pull request and on pushes to main.

The generated Dagger client (internal/dagger, dagger.gen.go) is gitignored, so the workflow runs dagger develop to regenerate it before testing. The generated client panics at init unless DAGGER_SESSION_PORT and DAGGER_SESSION_TOKEN are set; the unit tests never open a session, so dummy values are enough to get past that check without contacting an engine.

@mnencia mnencia requested review from a team and NiccoloFei as code owners June 9, 2026 10:08
@mnencia mnencia force-pushed the dev/ci-unit-tests branch from 6f74aa2 to 074d5e6 Compare June 9, 2026 10:12
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
@NiccoloFei NiccoloFei force-pushed the dev/ci-unit-tests branch from 074d5e6 to da41427 Compare June 9, 2026 11:38
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
@@ -0,0 +1,54 @@
name: Unit tests

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: Unit tests
name: Dagger Module Unit tests

pull_request:
paths:
- 'dagger/maintenance/**'
workflow_dispatch:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need workflow_dispatch here?

{
"name": "maintenance",
"engineVersion": "v0.20.6",
"engineVersion": "v0.21.4",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be worth tracking this version with renovate?

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.

3 participants