Repo guardrail script rewritten after test target removal and restoration
A guardrails script in the repository checks that its CI gate runs the intended Nx targets, parsing them from the gate script in package.json. When the test target was removed, a rule that could only forbid it had to be rewritten, and after the test target returned, the required and forbidden lists were changed in the manifest. The project also tracks recorded removals, printed on each run with the reason for each, and a size budget that counts product and test code separately. Several checks were converted to mechanical verification so that the first four rules produce meaningful results. The guardrails currently report all files present and six invariants satisfied.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in