testing(ci): stop requiring AGENTS.md in titan-iac quality gate
This commit is contained in:
parent
52d4709dd9
commit
8cd170736a
@ -5,10 +5,6 @@
|
|||||||
"path": "README.md",
|
"path": "README.md",
|
||||||
"description": "Top-level repository handbook."
|
"description": "Top-level repository handbook."
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "AGENTS.md",
|
|
||||||
"description": "Shared repository operating instructions."
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "Jenkinsfile",
|
"path": "Jenkinsfile",
|
||||||
"description": "Top-level Jenkins mirror for multibranch discovery."
|
"description": "Top-level Jenkins mirror for multibranch discovery."
|
||||||
|
|||||||
@ -16,6 +16,18 @@ def test_bundled_contract_exposes_local_and_jenkins_profiles():
|
|||||||
assert contract["pytest_suites"]["unit"]["paths"]
|
assert contract["pytest_suites"]["unit"]["paths"]
|
||||||
|
|
||||||
|
|
||||||
|
def test_bundled_contract_keeps_monorepo_manifest_trees_out_of_hygiene_scope():
|
||||||
|
contract = load_contract()
|
||||||
|
required_doc_paths = {item["path"] for item in contract.get("required_docs", [])}
|
||||||
|
assert "AGENTS.md" not in required_doc_paths
|
||||||
|
|
||||||
|
globs = contract.get("hygiene", {}).get("line_limit_globs", [])
|
||||||
|
assert globs
|
||||||
|
for entry in globs:
|
||||||
|
assert entry.startswith(("testing/", "ci/", "scripts/tests/", "services/"))
|
||||||
|
assert "/scripts/" in entry or not entry.startswith("services/")
|
||||||
|
|
||||||
|
|
||||||
def test_docs_check_reports_missing_docstring_and_missing_path(tmp_path: Path):
|
def test_docs_check_reports_missing_docstring_and_missing_path(tmp_path: Path):
|
||||||
module_path = tmp_path / "managed.py"
|
module_path = tmp_path / "managed.py"
|
||||||
module_path.write_text("value = 1\n", encoding="utf-8")
|
module_path.write_text("value = 1\n", encoding="utf-8")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user