Skip to content

ci: run acceptance tests only for provider changes - #9

Merged
bahram-bahrambeigy-cdt merged 1 commit into
mainfrom
ci/acceptance-paths-filter
Sep 23, 2026
Merged

bahram-bahrambeigy-cdt merged 1 commit into
mainfrom
ci/acceptance-paths-filter

Conversation

@bahram-bahrambeigy-cdt

Copy link
Copy Markdown
Collaborator

Replaces #7 with the simple version.

Doc, example and config-only changes were starting a full OpenMetadata stack (MySQL + Elasticsearch + OM server) to prove nothing. The workflow is now filtered on the paths that can affect the result: internal/, main.go, go.mod, go.sum, docker/test/, scripts/testacc.sh, and the workflow itself.

Required-check change

Acceptance Tests has been removed from the required status checks on main. This is mandatory, not incidental: a workflow skipped by a paths: filter never reports its check, so every doc-only PR would sit at "Expected" and could never merge — the same failure that made the first migration PR un-mergeable.

lint, build and Every resource has an acceptance test remain required and still run on every PR; together they run in well under a minute.

Trade-off: the acceptance suite still runs on every provider change and stays visible, but it no longer blocks the merge button. With approvals at 0, that means a red acceptance run can be merged past if someone ignores it.

Also

The workflow_dispatch version input reaches sed through env: instead of being interpolated into the shell. It needs write access to set, so it was not an outsider risk, but it was an injection point.

No YAML anchors — GitHub Actions does not support them, so the path list is written out twice.

🤖 Generated with Claude Code

Doc, example and config-only changes were starting a full OpenMetadata
stack for nothing. Filter the workflow on the paths that can affect the
result.

Acceptance Tests is no longer a required status check: a path-filtered
workflow never reports, which would block every unrelated PR. lint and
build stay required and still run on everything.

Also passes the workflow_dispatch version input through env rather than
interpolating it into the shell.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@bahram-bahrambeigy-cdt
bahram-bahrambeigy-cdt merged commit be429e9 into main Sep 23, 2026
4 checks passed
@bahram-bahrambeigy-cdt
bahram-bahrambeigy-cdt deleted the ci/acceptance-paths-filter branch September 23, 2026 11:04
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