Tech-Debt Hotspot Analysis: Git Churn + Radon Complexity
Intermediate · 35 minutes · 100 points
In this lab you will build a tech-debt triage pipeline from scratch inside a container. You will create a realistic Python project under Git version control, simulate file churn through multiple commits, install and run the radon static-analysis tool to measure cyclomatic complexity, merge the two data sources with a Python script, and produce a ranked triage list that highlights the riskiest files — those that change often AND are hard to understand.
What you’ll learn
- Create a Git repository with realistic Python files and simulate churn through multiple commits
- Use radon to compute cyclomatic complexity scores for each Python file
- Extract per-file commit counts from git log to measure churn
- Combine complexity and churn data in a Python script to produce a ranked tech-debt triage list
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: git, python, radon, technical-debt, static-analysis, churn, cyclomatic-complexity, triage, code-quality
Create a free account to start this lab.