mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-06 23:23:23 +09:00
docs(contributing): ask what a new check protects and how a test fails
A repository-wide test merged that read chart sources from a Go package, pinned hand-typed values, and guarded declarations nothing read yet. Review checked that it passed and never asked what requirement it enforced. The next legitimate change went red on it. Such a check is a new rule for every contributor, and an ordinary approval of the PR that adds it does not show the rule was weighed, so the rule is agreed before that PR, and a test plan does not count as the requirement behind it. The failure evidence goes into the commit body rather than a separate failing commit: branches merge without squash, so each commit has to pass on its own. A test pinning unchanged behaviour has nothing to revert, so it proves it can fail by a mutation instead. When an e2e failure cannot be observed locally or in CI, recording that limit and its reason lets the reviewer decide without inventing evidence. Validation: the 79 relevant Bats checks pass on the branch and base; no executable tests or checks are added. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
5 files changed
+38
-5
No files matched your search
@@ -7,7 +7,7 @@
|
||||
- Development and maintenance: api, hack, tests, ci, docs, maintenance
|
||||
- Breaking changes: append `!` after type/scope (`feat(api)!: ...`) or add a `BREAKING CHANGE:` footer, a `fix` included. What counts as breaking: https://github.com/cozystack/cozystack/blob/main/docs/agents/contributing.md#what-counts-as-breaking
|
||||
- If it's a work in progress, consider creating this PR as a draft.
|
||||
- Don't hesistate to ask for opinion and review in the community chats, even if it's still a draft.
|
||||
- Don't hesitate to ask for opinion and review in the community chats, even if it's still a draft.
|
||||
- Fixes merged to `main` reach the release lines the backport batch runs for automatically, so do not open backport PRs by hand: https://github.com/cozystack/cozystack/blob/main/docs/release/backports.md
|
||||
-->
|
||||
|
||||
@@ -17,6 +17,14 @@
|
||||
<!-- Uncomment the next line when this PR adds or changes a downstream patch: https://github.com/cozystack/cozystack/blob/main/CONTRIBUTING.md#patches-to-other-projects-code -->
|
||||
<!-- Upstream: link to the upstream pull request, or to the issue or thread where the change was raised -->
|
||||
|
||||
### New checks
|
||||
|
||||
<!-- Fill in when this PR adds or tightens anything that can fail somebody else's change: a test that reads files outside its own package or chart, a lint, a validator, a schema restriction, a CI gate. One entry per check; write "None" below this comment otherwise. A section left empty counts as not filled in.
|
||||
|
||||
- Protects: the requirement of the system's behaviour the check guards, with a link (a spec clause, a runtime contract, a documented decision, an issue). "This is how the tree looks today" is not a requirement, and neither is a test plan, a design proposal's Testing section included. A rule with no such source is agreed in an issue or an accepted design proposal before this PR; link it.
|
||||
- Consumer: the code that reads the artifact being checked. If nothing reads it yet, say so, and link where the rule was agreed before this PR.
|
||||
-->
|
||||
|
||||
### Screenshots
|
||||
|
||||
<!-- REQUIRED for UI changes: attach screenshots or screen recordings demonstrating
|
||||
|
||||
Reference in new issue
Block a user