Aleksei Sviridkin 8e430c011f ci: widen the docs-only gate to Markdown, images and repository metadata (#5235)
## What

The PR pipeline skips build, Talos and E2E only when every changed path
is under `docs/` or one of the two CI-only Go tools. A PR that touches
`README.md`, `GOVERNANCE.md`, an issue template or `LICENSE` still
builds every image, boots a sandbox and runs the suite, for files
nothing in that pipeline reads.

This PR moves the classifier into `hack/code-changed.sh` and widens what
counts as non-code:

- `docs/` tree, Markdown outside `packages/`, `img/`, `LICENSE`
(Markdown under `packages/` stays code: Go controller tests read chart
READMEs)
- `.github/ISSUE_TEMPLATE/`, `CODEOWNERS`, `PULL_REQUEST_TEMPLATE.md`,
`labels.yml`, `renovate.json`, `.gemini/`, `.coderabbit.yaml`,
`security-insights.yml`

Both lanes read the same script: the in-tree `plan` job feeds it the
`--no-renames` merge diff, and the fork `resolve` job feeds it the
base-repo PR file list (`filename` + `previous_filename`, so a
`packages/… -> docs/…` rename still reads as code). The fork lane checks
out `hack/` from the base repository's default branch, never from the
fork.

The `push` triggers of `build-main`, `build-release` and CodeQL mirror
the classifier with a `paths` filter (`**`, one `!` glob per non-code
path, then `packages/**.md` re-included; `paths` rather than
`paths-ignore` because only `paths` documents re-including after a
negation), so a docs-only push to main no longer rebuilds it.
`hack/code-changed_test.bats` keeps the three filters equal, checks that
every `!` glob is non-code and every re-include is code for the script,
so a push of real code can never skip its build, and pins CodeQL's
`pull_request` trigger to having no path filter.

## What still checks non-code files

- Markdown under `packages/` is code, so chart READMEs keep the full
pipeline: `packages/system/flux-plunger/README.md` is checked by a Go
test (`TestDocs_StateTheTimingsTheBinaryAndTheChartUse` in
`internal/controller/fluxplunger/hook_contract_test.go`) that runs only
on the code path, and all chart READMEs are regenerated by `make
generate` under pre-commit. The Bats lane of `checks` runs for every
path except the two CI-only tools (`cmd/backport-batch/`,
`cmd/api-gate/`), so `labels.yml`, `CODEOWNERS`, `renovate.json`, the PR
template and the Markdown outside `packages/` keep their `hack/*.bats`
contract tests; they only skip build, Talos and E2E.
- `labels.yml` has its own workflow; zizmor still runs on workflow
changes.
- CodeQL is a required check on `main`, so its `pull_request` trigger
has no `paths-ignore`: a path-filtered required workflow would leave the
PR on "Expected". Only the `push` trigger keeps the mirrored list, so a
docs-only merge does not rerun it.

## Numbers

Over the 200 merged PRs returned by `gh pr list --state merged --limit
200` on 2026-11-18 (merged 2026-10-14 to 2026-11-18; the list is ordered
by creation, not merge date) the gate on main (`docs/` plus the two
CI-only tools) skips 8, the new one 10. The extra two: #5168 and #5188.
None of them touches Markdown under `packages/`, so keeping it as code
costs nothing in this window.

## Not changed

- `.gitignore`, `.dockerignore`, `packages/tests/` fixtures and
`dashboards/*.json` stay code: the first two change what gets built, the
fixtures feed helm-unittest (code lane only), the dashboards ship in
charts.
- `select-e2e.sh`'s `inert_config_pattern` is untouched;
`docs/agents/e2e-testing.md` already says the `plan` gate is the place
to widen.



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **CI Improvements**
* Main and maintained release-branch builds are skipped for changes
limited to documentation, images, selected tooling, repository metadata,
and Markdown outside `packages/`. Changes to Markdown files under
`packages/` still trigger builds.
* CodeQL is skipped on pushes to `main` for those non-code changes; pull
requests targeting `main` remain subject to CodeQL checks.
* End-to-end checks are skipped when all changed files are classified as
non-code, including renames. Status messages clarify when checks are not
required.
* **Documentation**
* Updated end-to-end testing guidance to distinguish the build gate from
test-suite selection; dashboard-only changes still install dependencies
but skip the Chainsaw suite.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-12-03 10:12:33 +03:00
2026-11-04 00:56:56 +01:00
2025-10-08 09:43:34 +05:00
2024-02-08 12:04:32 +01:00

Cozystack Cozystack

GitHub Release Apache-2.0 License Commit activity OpenSSF Best Practices OpenSSF Scorecard CLOMonitor Support

Cozystack

Cozystack is a free and open-source platform and framework for building clouds.

Cozystack is a CNCF Sandbox project that was originally built and sponsored by Ænix.

With Cozystack, you can transform a bunch of servers into an intelligent system with a simple REST API for spawning Kubernetes clusters, Database-as-a-Service, virtual machines, load balancers, HTTP caching services, and other services with ease.

Use Cozystack to build your own cloud or provide a cost-effective development environment.

Cozystack user interface

Use-Cases

Documentation

The documentation is located on the cozystack.io website.

Read the Getting Started section for a quick start.

If you encounter any difficulties, start with the troubleshooting guide and work your way through the process that we've outlined.

Versioning

Versioning adheres to the Semantic Versioning principles.
A full list of the available releases is available in the GitHub repository's Release section.

Contributions

Contributions are highly appreciated and very welcomed!

In case of bugs, please check if the issue has already been opened by checking the GitHub Issues section. If it isn't, you can open a new one. A detailed report will help us replicate it, assess it, and work on a fix.

You are welcome to take on the fix yourself. Commits are used to generate the changelog, and their author will be referenced in it.

If you have a concrete feature request, open an issue. For a cross-cutting or architectural change, open a design proposal in the community repo. For questions or early ideas, use GitHub Discussions. See CONTRIBUTING.md for the full routing.

Community

You are welcome to join us in #cozystack, on either CNCF Slack (get an invite) or Kubernetes Slack (get an invite), in our Telegram group, and at our community meetings. Add them to your Google Calendar or iCal for convenience.

Project documents

Document What it covers
Governance How decisions are made and who makes them
Contributor Ladder How to grow from contributor to maintainer
Maintainers Who maintains the project
Code of Conduct What we expect of each other
Security Policy Reporting a vulnerability, and which releases get fixes
Adopters Who runs Cozystack in production
Roadmap Where the project is going

License

Cozystack is licensed under Apache 2.0.
The code is provided as-is with no warranties.

Commercial Support

A list of companies providing commercial support for this project can be found on official site.

Languages
Go 53.3%
Shell 33.1%
TypeScript 6.6%
Go Template 4.7%
Makefile 1.2%
Other 1%