Demo: a fitness function that blocks a coupling regression
On This Lesson 3 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
write and roll out a coupling fitness function across teams; prepares SRA-002-LAB1.
Draft outline details
Step by step
- State the rule from the architecture goal: marketplace code must not read order-domain tables or internal packages.
- Implement it as a dependency-rule test run in CI and capture the current violations as a baseline.
- Demonstrate a pull request that adds a new forbidden dependency and fails the build with a clear message.
- Agree with team leads on ownership, an exception process, and a retirement plan for baseline violations.
- Planned mistake: make the rule block all builds on day one, including existing violations. Fix: baseline them, block only new ones, and report the trend.
- Define how the team knows the function is working: violations trend and exceptions granted.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.