Skip to content

Tests run in disposable repositories

Tests run in disposable repositories

majordomus://rule/project.tests-run-in-disposable-repos@1active testing

Rationale

A case that runs against the checkout it lives in changes the state it is testing; test/run.sh creates a fresh repository per case for that reason.

Required behaviour

Behavioural cases run through bash test/run.sh in a temporary repository each, never against this checkout.

Failure behaviour

No command decides this rule; a reviewer does, and a change that violates it is not merged. Where a behavioural case covers part of it, that case is named below.

Verification

Review. test/run.sh; a case that writes into ROOT is a bug the derived-artifacts case would report.

Where this comes from

canonical file
.ai/repo/rules/project/tests-run-in-disposable-repos.v1.md
identity
project.tests-run-in-disposable-repos@1
also served as
MCP resource majordomus://rule/project.tests-run-in-disposable-repos@1 · majordomus entity show rule/project-tests-run-in-disposable-repos-1 · GET /api/v1/entity?uri=majordomus://rule/project.tests-run-in-disposable-repos@1
in the Cockpit
/cockpit/objects/rule/project-tests-run-in-disposable-repos-1

This page is generated from the file above by scripts/generate-site-data; editing the page changes nothing, editing the file changes every surface. The relations above are edges of docs/generated/graph.json, which the executable writes from the same index.

Searches the titles and descriptions of every page this site publishes.