Skip to content

Split up linter checks and unit tests - #931

Merged
valmiranogueira merged 1 commit into
mainfrom
split-lint-and-unit-tests
Aug 26, 2026
Merged

Split up linter checks and unit tests#931
valmiranogueira merged 1 commit into
mainfrom
split-lint-and-unit-tests

Conversation

@ademidoff

Copy link
Copy Markdown
Member

The helm-unittest matrix (test-pxc-operator, test-pxc-db) shared .github/workflows/test.yaml with the lint-test job, so it ran on every PR that lint-test covers — including PMM-only changes, which have no unit-test suites and cannot be affected by them.

paths-ignore on the existing workflow does not solve this: it gates the whole workflow file, and lint-test in that same file is exactly what covers charts/pmm. GitHub Actions has no per-job path filter, so the matrix moves to its own workflow instead.

Changes:

  • Added .github/workflows/unit-test.yaml with the unit-test matrix, triggered only by charts/pxc-operator/**, charts/pxc-db/**, Makefile, and the workflow file itself.
  • Removed the unit-test job from .github/workflows/test.yaml; lint-test and its paths-ignore list are untouched.

This mirrors the pattern already used by .github/workflows/pmm-ha-pr-checks.yaml. The job name: is unchanged, so the checks still report as Helm Unit Tests (test-pxc-operator) and Helm Unit Tests (test-pxc-db).

Note: adding a chart with unit-test suites now means adding a test-<chart> target to the Makefile, a matrix entry and a paths: trigger in .github/workflows/unit-test.yaml.

Verified on #930, where both jobs ran green from the new workflow.

The unit-test matrix shared .github/workflows/test.yaml with lint-test, so
it ran on every PR the lint job covers, including PMM-only changes. GitHub
has no per-job path filter, so move the matrix to its own workflow scoped
to charts/pxc-operator, charts/pxc-db and the Makefile.
Copilot AI lite review requested due to automatic review settings August 19, 2026 16:26
ademidoff added a commit that referenced this pull request Aug 19, 2026
This reverts commit 669803d. The change moved to its own PR (#931) so it
can be reviewed on its own instead of riding along with the release bump.

Copilot AI left a comment

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.

Pull request overview

Splits Helm unit-test execution into a dedicated GitHub Actions workflow so unit tests only run when PXC-related charts (or the Makefile/workflow) change, avoiding unnecessary unit-test runs on unrelated PRs (e.g., PMM-only changes).

Changes:

  • Added a new workflow .github/workflows/unit-test.yaml that runs the existing helm-unittest matrix only when charts/pxc-operator/**, charts/pxc-db/**, Makefile, or the workflow file itself changes.
  • Removed the unit-test job from .github/workflows/test.yaml, leaving the existing lint-test behavior and its paths-ignore intact.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/unit-test.yaml New workflow containing the Helm unit-test matrix with path-based triggering scoped to PXC-related charts.
.github/workflows/test.yaml Removes the unit-test job so this workflow only runs lint/chart-testing-related checks.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

hors pushed a commit that referenced this pull request Aug 19, 2026
* Release PMM 3.9.1

* Run helm-unittest only for the charts that have suites

The unit-test matrix shared .github/workflows/test.yaml with lint-test, so
it ran on every PR the lint job covers, including PMM-only changes. GitHub
has no per-job path filter, so move the matrix to its own workflow scoped
to charts/pxc-operator, charts/pxc-db and the Makefile.

* chore: trigger the build

* Revert "Run helm-unittest only for the charts that have suites"

This reverts commit 669803d. The change moved to its own PR (#931) so it
can be reviewed on its own instead of riding along with the release bump.
@valmiranogueira
valmiranogueira merged commit 59add60 into main Aug 26, 2026
6 checks passed
@valmiranogueira
valmiranogueira deleted the split-lint-and-unit-tests branch August 26, 2026 13:59
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.

5 participants