Reliability rollup over-reports one service's ERROR count
A practice debugging interview round in Python. Reproduce the failure in an unfamiliar codebase, narrow down the cause, ship a minimal fix, and explain your reasoning to an AI interviewer.
The incident
The on-call engineer reads this rollup every morning. It counts, for each service, how many ERROR lines that service logged overnight, so they know which services to follow up on. This morning one service's total reads higher than the metering dashboard shows, and the rollup is not trusted until the two agree.
report.py reads an application log feed and prints the ERROR-line count for each service, in the order each service first appears in the feed.
Each log line has the layout timestamp service level message, separated by whitespace. The feed is delivered at-least-once, so a line may arrive more than once, and a single service's lines are not always contiguous.
What this round practices
An easy entry point to the reconciliation format these rounds share: a small script, an input feed, and one number that disagrees with the dashboard. It practices isolating the one service that is wrong and checking how the script decides what counts as an ERROR line.
Files you will work in
These 4 workspace files open in the in-browser editor when you start the round. Hidden tests also run when you submit.
task.mdsrc/report.pyfixtures/input.txttests/expected_output.txt
What you are assessed on
The scored report evaluates both your investigation steps and what you explain during the conversation, not only whether the final test run passes.
- Reproduction
- File navigation
- Evidence gathering
- Hypothesis
- Root-cause understanding
- Regression prevention
- Patch scope
- Verification
- Edit control
- Communication clarity
How the round works
You get 30 minutes in a Python workspace that runs in your browser, with no setup. Talk through your plan with the AI interviewer by voice or text, run the tests as often as you like, and submit when the visible checks pass. Hidden tests run on submit, and the scored report covers what you did and what you explained.
Ready to debug this codebase?
Open the workspace, run the failing check first, and walk the AI interviewer through your findings.
Related rounds
View all debugging rounds- EasyBug fix
Peak latency report overstates one endpoint
The per-endpoint peak latency report shows one endpoint far slower than its own traces support, and a latency regression review is stuck on the discrepancy.
Python · 40 min
- EasyBug fix
Monitor board reads OK for a series whose exporter went silent
The monitor status board on-call watches during an incident reports OK for a series that sent no samples all window, so a blind monitor is indistinguishable from a healthy one and on-call stopped trusting the board.
Python · 40 min
- EasyBug fix
Object link report undercounts one object type
The ontology link report shows fewer active links for one object type than the graph explorer does, and a data-quality review is blocked until the counts reconcile.
Python · 40 min