ci: Forgejo pipeline, integration tests on sites from Checkmk's packages #1

Merged
dawid merged 1 commit from ci-pipeline into main 2026-11-19 11:37:54 +00:00
Owner

Moves CI to Forgejo and runs the integration tests there for the first time.

  • CI (.forgejo/workflows/ci.yml, on pushes to main and renovate/all-patch, pull requests, and every Monday):
    • the unit tests, with a test report on the PR;
    • the MKP build, kept as an artifact for 14 days;
    • then the integration tests.
  • Integration tests:
    • Checkmk is installed from its own packages, not Docker Hub images. tests/integration/packages.py takes the newest 2.4 (Raw) and 2.5 (Community) patch releases for Debian 12 from stable_downloads.json and checks each download against the SHA-256 listed there.
    • Both versions go into one image (tests/integration/image/Dockerfile). The update test runs omd update from 2.4 to 2.5 in the same container, as on a server.
    • The weekly run tests each new Checkmk patch release.
  • Releases:
    • A v* tag publishes the MKP and its SHA256SUMS (release.yml). The tag must match build.py's version.
    • .cz.toml lets the release bot bump build.py and the install commands in the README.
  • Also:
    • Renovate keeps the pinned requirements-test.txt up to date;
    • the AI review workflow is added;
    • .github/workflows/test.yml is removed.

First run on real sites: locally, all 30 integration tests passed on 2.4.0p41 and 2.5.0p20, with the update. Two tests were fixed:

  • mkp installs files with the site's umask 0077 (mode 0600), which is correct;
  • hovering a single aggregation's full ring hit the empty hole in its middle.
Moves CI to Forgejo and runs the integration tests there for the first time. - **CI** (`.forgejo/workflows/ci.yml`, on pushes to main and `renovate/all-patch`, pull requests, and every Monday): - the unit tests, with a test report on the PR; - the MKP build, kept as an artifact for 14 days; - then the integration tests. - **Integration tests:** - Checkmk is installed from its own packages, not Docker Hub images. `tests/integration/packages.py` takes the newest 2.4 (Raw) and 2.5 (Community) patch releases for Debian 12 from `stable_downloads.json` and checks each download against the SHA-256 listed there. - Both versions go into one image (`tests/integration/image/Dockerfile`). The update test runs `omd update` from 2.4 to 2.5 in the same container, as on a server. - The weekly run tests each new Checkmk patch release. - **Releases:** - A `v*` tag publishes the MKP and its SHA256SUMS (`release.yml`). The tag must match `build.py`'s version. - `.cz.toml` lets the release bot bump `build.py` and the install commands in the README. - **Also:** - Renovate keeps the pinned `requirements-test.txt` up to date; - the AI review workflow is added; - `.github/workflows/test.yml` is removed. **First run on real sites:** locally, all 30 integration tests passed on 2.4.0p41 and 2.5.0p20, with the update. Two tests were fixed: - `mkp` installs files with the site's umask 0077 (mode 0600), which is correct; - hovering a single aggregation's full ring hit the empty hole in its middle.
ci: Forgejo pipeline, integration tests on sites from Checkmk's packages
All checks were successful
CI / unit (pull_request) Successful in 1m33s
CI / integration (pull_request) Successful in 17m14s
b06d999aee
The unit tests and the MKP on every push, pull request and Monday, then the
integration tests on Checkmk 2.4 and 2.5 sites installed from the newest patch
releases in stable_downloads.json, checked against its SHA-256. Both versions
go into one Debian 12 image; the update test runs omd update in the 2.4 site's
container. Tags publish the MKP as a release; the release bot and Renovate are
configured.

The first runs on real sites corrected two tests: mkp installs with the site's
umask (0600), and the hover over a single aggregation's full ring hit its hole.

Tests of CI / unit: passed

34 passed, 0 failed, 0 skipped (34 tests, 16.2 s)

Of b06d999aee, the run, updated by every run.

<!-- ci-report tests: CI-unit --> ### Tests of CI / unit: passed **34 passed, 0 failed, 0 skipped** (34 tests, 16.2 s) <sub>Of b06d999aee, [the run](https://git.ciepiela.org/dawid/checkmk-bi-pie/actions/runs/2), updated by every run.</sub>
dawid merged commit 5225890102 into main 2026-11-19 11:37:53 +00:00
dawid deleted branch ci-pipeline 2026-11-19 11:37:54 +00:00

Tests of CI / integration: passed

30 passed, 0 failed, 0 skipped (30 tests, 733.5 s)

Of b06d999aee, the run, updated by every run.

<!-- ci-report tests: CI-integration --> ### Tests of CI / integration: passed **30 passed, 0 failed, 0 skipped** (30 tests, 733.5 s) <sub>Of b06d999aee, [the run](https://git.ciepiela.org/dawid/checkmk-bi-pie/actions/runs/2), updated by every run.</sub>
Sign in to join this conversation.
No description provided.