Exercises¶
Page Maps¶
graph LR
family["Reproducible Research"]
program["Deep Dive Snakemake"]
section["Performance Observability Incident Response"]
page["Exercises"]
capstone["Capstone evidence"]
family --> program --> section --> page
page -.applies in.-> capstone
flowchart LR
orient["Orient on the page map"] --> read["Read the main claim and examples"]
read --> inspect["Inspect the related code, proof, or capstone surface"]
inspect --> verify["Run or review the verification path"]
verify --> apply["Apply the idea back to the module and capstone"]
Use these exercises to practice evidence-first workflow judgment, not only performance vocabulary.
The strongest answers will keep workflow truth visible while diagnosing speed or incident problems.
Exercise 1: Name the dominant cost class¶
A workflow now takes 40 minutes instead of 25.
You collect three observations:
snakemake -n -palready feels noticeably slower than before- benchmark files for the heavy rules look unchanged
- the discovered sample list is much larger than last week
Write a short review note that explains:
- which cost class looks dominant
- which cost classes are not the strongest lead right now
- what you would inspect next before proposing any fix
Exercise 2: Choose the right evidence surface¶
A teammate says:
The latest run rebuilt
summary.tsv, and I think the aligner has become slower.
Explain which artifact you would inspect first and why.
Then explain which artifact you would inspect second if the first artifact does not support the claim.
Your answer should distinguish workflow-state evidence from rule-local runtime evidence.
Exercise 3: Triage a flaky cluster-only incident¶
A workflow passes locally and in CI, but one scheduler-backed profile now fails
intermittently. The proposed fix is to raise retries and increase latency-wait.
Describe:
- why this is not yet a sufficient response
- which incident class you would test first
- which two or three evidence surfaces you would consult before approving any policy change
Exercise 4: Review a suspicious optimization¶
A pull request claims to "speed up the workflow" by doing all of the following:
- removing one declared input from a slow rule because it "rarely matters"
- deleting benchmark files because they create clutter
- grouping several tiny QC jobs into one aggregation step
Write a short review note that explains:
- which change may be a valid tuning move
- which changes are semantic or evidence regressions
- what proof you would require before approving the valid part
Exercise 5: Draft a runbook entry¶
Write a minimal runbook entry for this recurring problem:
make touris slower than expected, and a reviewer is unsure whether the issue is workflow shape, operating context, or tool runtime.
Your runbook entry should include:
- the first command to run
- the next evidence surfaces to inspect
- one escalation trigger
- one command that proves the repair honestly
Mastery check¶
You have a strong grasp of this module if your answers consistently keep four ideas visible:
- "slow" must be split into named cost classes
- evidence surfaces should be chosen by question, not by habit
- incident response should classify before it edits
- performance work must preserve workflow meaning and reviewability