Learners in build and release often collect tutorials faster than they collect ability. A drill is different: it has a defined task, a way to check the result and a reason to repeat it. The nine practice drills below are ordered so that each leaves behind material for the next. Use a small throwaway project, work only on systems you control and keep a notebook of what you predicted and what happened.
Give each drill a time box of an hour or two. Before touching the keyboard, write the expected outcome. Afterwards, write the actual one and the gap between them. That gap is the useful part of the session, and it turns an exercise into something you can discuss with a mentor or an interviewer.
1. Rebuild from an empty machine
Clone your project into a fresh virtual machine or container and build it using only the written instructions. Every undocumented step is a finding. The drill passes when someone with no memory of your laptop could obtain a working result. Record the time taken and the first point of confusion.
Why it matters: a build that depends on one person's setup cannot be trusted during an absence or a failure.
2. Pin and then upgrade a dependency
Fix the exact versions of your libraries, build, and save the dependency report. Upgrade one library deliberately and compare reports. Note which indirect packages moved as well. The comparison shows how a small request can alter more than expected, and it gives you a baseline for investigating later breakage.
Finish by returning to the old versions and confirming that the earlier behaviour comes back. If it does not, something outside your version list is influencing the build.
3. Prove two builds match
Build the same commit twice and compare checksums of the outputs. If they differ, look for embedded timestamps, file ordering, absolute paths or unpinned tools. You may not reach identical files in every ecosystem. Being able to explain the remaining difference is itself a good result.
4. Stage a merge conflict
Create two branches that change the same lines in incompatible ways. Merge one, then the other, resolve the conflict and run the tests. Next, produce a conflict of meaning: two changes that merge cleanly yet fail together, such as a renamed function and a new caller. This demonstrates why a clean merge still needs verification.
Afterwards, inspect the history graph and describe how the two lines of work came together. Try the same exercise with a rebase on a private branch and note what changed in the record.
5. Write a pipeline that refuses bad input
Automate build and test, then try to get faulty work through. Push a failing test, a syntax error and a missing configuration value. Each should stop the run with a message that identifies the cause. Check that a step cannot report success after an inner command has failed, a common weakness in shell scripts.
6. Promote one artifact through three places
Build once, give the output a unique version, store it, and deploy that same file to development, staging and a pretend production folder. Change only configuration between them. Verify by checksum that the file is unchanged. If you find yourself rebuilding for an environment, identify which setting was baked into the package.
Add a record beside each deployed copy stating the version, the source commit and the time. Weeks later you should be able to answer what is running where without guessing from file dates.
7. Roll back against the clock
Deploy a deliberately broken version, detect it with a smoke test and restore the previous one. Measure from detection to recovery. Then repeat with a database schema change involved and write down why reverting the application alone may be insufficient. Practise a forward fix too, and compare the risks of each route.
8. Handle a leaked practice secret
Commit an invented token that unlocks nothing. Remove it, then search the history and see that it remains. Rehearse the response: revoke and replace the credential first, move the new value into a protected store, check where logs may have captured it and add a scanner to the pipeline. Rewriting history is a separate team decision and does not make an exposed value safe.
Use only the invented value from start to finish. Never paste a genuine key into an exercise, even briefly, and keep the practice repository private so that automated scanners and strangers are not confused by it.
9. Write release notes and a review
Generate a list of changes between two version tags, then rewrite it for a person who uses the software. State what changed, what they must do and any known limitation. Finally, pick the worst moment from the earlier drills and write a short blameless review: timeline, contributing conditions, detection and one improvement with an owner.
Ask someone to follow your notes as if they were the user. Where they need to ask what a line means, revise it. Plain wording is a release skill, since a correct change that nobody understands still causes trouble.
Checking progress with evidence
| Drill group | Evidence to keep |
|---|---|
| 1 to 3 | Instructions, dependency reports, checksums |
| 4 to 6 | Branch history, failed runs, version records |
| 7 to 9 | Recovery timings, response checklist, notes |
Repeat a drill after two weeks without reading your earlier solution. Improvement in time is useful, yet a clearer explanation of cause is stronger evidence of learning. Where you rely on copied commands, change one parameter and predict the effect before running it. Hand the notebook to a peer and see whether one of your results can be recreated from it.
When guidance helps
Self-directed drills expose gaps; an instructor can help close the stubborn ones. Those weighing a course might review the online and classroom DevOps workshops listed by Cotocus, which include CI/CD and test automation. Ask whether sessions involve hands-on failure practice.
Learners comparing roles may also like the earlier post on DevOps salaries and benchmarking. Then start with drill one today, while your instructions are still untested.
Comments
Post a Comment