Skip to content

Add pull request checks#501

Merged
morningman merged 3 commits into
apache:masterfrom
Al-assad:codex/pr-checks
Jun 22, 2026
Merged

Add pull request checks#501
morningman merged 3 commits into
apache:masterfrom
Al-assad:codex/pr-checks

Conversation

@Al-assad

Copy link
Copy Markdown
Member

Summary

This PR adds a new PR Checks GitHub Actions workflow for pull requests.

The workflow introduces two pre-merge check groups:

  • Go Basic Checks

    • Sets up Go from go.mod.
    • Checks gofmt for Go files changed by the pull request.
    • Runs go vet ./... across the repository.
    • Runs golangci-lint with a 10 minute timeout.
  • Generated Artifacts Check

    • Runs make manifests generate.
    • Runs git diff --exit-code to make sure generated files are committed.

Motivation

The project currently has release and license workflows, but pull requests do not have a dedicated quality gate for Go code and generated operator artifacts.

For a Kubernetes operator, generated files are part of the reviewed source of truth. API, RBAC, webhook, CRD, and deepcopy changes can easily be missed if the generated artifacts are not checked before merge.

Notes

The gofmt check is intentionally scoped to Go files changed by the pull request. This avoids blocking unrelated pull requests on existing formatting issues in untouched files while still enforcing formatting for new changes.

This PR does not add unit tests or envtest execution.

Validation

Validated locally with:

ruby -e "require 'yaml'; YAML.load_file('.github/workflows/pr-checks.yml')"
go vet ./...
make manifests generate
git diff --exit-code -- config/crd/bases helm-charts/doris-operator/crds api/doris api/disaggregated

@morningman morningman merged commit 23e9bce into apache:master Jun 22, 2026
3 checks passed
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