Skip to content

Add invariant config coverage test#5779

Merged
denik merged 3 commits into
mainfrom
denik/invariant-check
Jun 30, 2026
Merged

Add invariant config coverage test#5779
denik merged 3 commits into
mainfrom
denik/invariant-check

Conversation

@denik

@denik denik commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Why

Ensure that all resource have invariant test coverage. Recent example where lack of coverage caused to release a bug in migrate rewrite #5775

@denik denik temporarily deployed to test-trigger-is June 30, 2026 12:40 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is June 30, 2026 12:40 — with GitHub Actions Inactive
}

// TestInvariantConfigsCoverage ensures that the invariant test configs in
// bundle/invariant/configs cover every bundle resource type, and that resource

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.

We should put this under acceptance/bundle/....

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

not sure if we should mix acceptance tests and go tests in one directory and bundle/ only has acceptance tests today.

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.

Feels like a smell to keep this at the top level. Any other options?

@denik denik temporarily deployed to test-trigger-is June 30, 2026 12:57 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is June 30, 2026 12:57 — with GitHub Actions Inactive
denik added 3 commits June 30, 2026 15:08
Check that every bundle resource type has an invariant config, and that
resources supporting permissions/grants have at least one config exercising
them. Known gaps are tracked in an explicit allowlist that can only shrink.

Co-authored-by: Isaac
After rebase, model_serving_endpoints and database_instances gained
permission configs on main; the coverage check requires removing them.

Co-authored-by: Isaac
@denik denik force-pushed the denik/invariant-check branch from a3b859a to f318d86 Compare June 30, 2026 13:11
@denik denik temporarily deployed to test-trigger-is June 30, 2026 13:11 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is June 30, 2026 13:11 — with GitHub Actions Inactive
@denik denik enabled auto-merge June 30, 2026 13:23
@denik denik disabled auto-merge June 30, 2026 13:23
@denik denik merged commit d80d56c into main Jun 30, 2026
22 checks passed
@denik denik deleted the denik/invariant-check branch June 30, 2026 13:23
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