Debian Codegraph @

.claude/todo/TRACKING-GUIDE.md

raw symbols SCIP
1 # How to Track Your Progress
2
3 This guide explains the multiple ways you can track your progress while implementing the testing improvements.
4
5 ---
6
7 ## Method 1: Manual Tracking with PROGRESS.md
8
9 ### Overview
10 `PROGRESS.md` is your master progress tracking document. Update it as you work.
11
12 ### How to Use
13
14 #### After Completing a Task
15 1. Open `PROGRESS.md`
16 2. Find the relevant phase section
17 3. Check off the completed task:
18 ```markdown
19 - [x] 1.5 - Add specific fuzzing tests ✓
20 ```
21 4. Update the completion count:
22 ```markdown
23 **Completion**: 5/13 (38%)
24 ```
25
26 #### After Each Day
27 Add a daily log entry:
28 ```markdown
29 ### 2025-01-15 - Day 3
30 **Time Spent**: 4h
31 **Phase**: Phase 1.1 - Message Header Fuzzing
32 **Tasks Completed**:
33 - [x] Task 1.5 - Added specific fuzzing tests
34 - [x] Task 1.6 - Ran and debugged tests
35
36 **Blockers**:
37 - Had to investigate reader() API more than expected
38
39 **Notes**:
40 - Discovered reader() is a generator
41 - Created helper function to wrap it for tests
42 - Tests now passing with 87% coverage
43
44 **Coverage Improvements**:
45 - reactor/network/connection.py: 45% → 87%
46 ```
47
48 #### After Each Phase
49 1. Mark phase as complete:
50 ```markdown
51 **Status**: ✅ Complete
52 ```
53 2. Update overall completion percentage at top
54 3. Update coverage table
55 4. Commit the updated PROGRESS.md:
56 ```bash
57 git add .claude/todo/PROGRESS.md
58 git commit -m "Update progress: Phase 1.1 complete (87% coverage)"
59 ```
60
61 ---
62
63 ## Method 2: Using the Progress Script
64
65 ### Quick Commands
66
67 ```bash
68 cd /home/user/exabgp
69
70 # Show current progress
71 ./.claude/todo/track-progress.sh
72
73 # Show test coverage
74 ./.claude/todo/track-progress.sh coverage
75
76 # Show next tasks to work on
77 ./.claude/todo/track-progress.sh next
78
79 # Generate full progress report
80 ./.claude/todo/track-progress.sh report
81
82 # Update PROGRESS.md timestamp
83 ./.claude/todo/track-progress.sh update
84 ```
85
86 ### Example Output
87
88 ```
89 === ExaBGP Testing Implementation Progress ===
90
91 Phase 0: Foundation Setup
92 File: 00-SETUP-FOUNDATION.md
93 Progress: 5/8
94
95 Phase 1.1: Message Header Fuzzing
96 File: 01-FUZZ-MESSAGE-HEADER.md
97 Progress: 0/13
98
99 === Test Statistics ===
100
101 Test files: 12
102 Fuzzing test files: 3
103 Test code lines: 2847
104 ```
105
106 ---
107
108 ## Method 3: Git Commit Messages as Progress Log
109
110 ### Convention
111 Each task file includes a commit step. Use descriptive commit messages:
112
113 ```bash
114 # After completing Task 0.1
115 git commit -m "Add testing dependencies (Hypothesis, pytest-benchmark)
116
117 Task 0.1 complete from 00-SETUP-FOUNDATION.md
118 - Added Hypothesis >=6.0
119 - Added pytest-benchmark >=4.0
120 - Added pytest-xdist >=3.0
121 - Added pytest-timeout >=2.0
122
123 Progress: 1/8 tasks in Phase 0"
124
125 # After completing entire phase
126 git commit -m "Complete Phase 0: Foundation Setup
127
128 All 8 tasks complete:
129 ✓ Dependencies added
130 ✓ Coverage configuration updated
131 ✓ Test directories created
132 ✓ Fuzzing infrastructure set up
133 ✓ Test helpers created
134 ✓ pytest configured
135 ✓ Documentation added
136
137 Time spent: 2.5 hours
138 Next: Phase 1.1 - Message Header Fuzzing"
139 ```
140
141 ### View Progress via Git Log
142 ```bash
143 # See all progress commits
144 git log --oneline --grep="Phase\|Task\|Progress"
145
146 # See detailed progress
147 git log --grep="complete" --stat
148 ```
149
150 ---
151
152 ## Method 4: Coverage Reports as Progress Indicators
153
154 ### Generate Coverage Report
155 ```bash
156 cd /home/user/exabgp
157
158 # Run tests with coverage
159 env PYTHONPATH=src pytest --cov=exabgp \
160 --cov-report=term \
161 --cov-report=html \
162 --cov-report=json
163
164 # View in terminal
165 env PYTHONPATH=src pytest --cov=exabgp --cov-report=term-missing
166
167 # Open HTML report
168 # The report will be in htmlcov/index.html
169 ```
170
171 ### Track Coverage Over Time
172
173 Create a coverage log:
174 ```bash
175 # After each phase, record coverage
176 echo "$(date '+%Y-%m-%d') - Phase 1.1 Complete - $(env PYTHONPATH=src pytest --cov=exabgp --cov-report=term 2>/dev/null | grep TOTAL)" >> .claude/todo/coverage-log.txt
177
178 # View coverage history
179 cat .claude/todo/coverage-log.txt
180 ```
181
182 Example `coverage-log.txt`:
183 ```
184 2025-01-15 - Phase 0 Complete - TOTAL 42%
185 2025-01-16 - Phase 1.1 Complete - TOTAL 58%
186 2025-01-17 - Phase 1.2 Complete - TOTAL 67%
187 2025-01-18 - Phase 1.3 Complete - TOTAL 74%
188 ```
189
190 ---
191
192 ## Method 5: Checklist in Task Files
193
194 ### Mark Tasks Complete Directly in Files
195
196 As you work through each task file, check off items:
197
198 ```markdown
199 ## Task 1.5: Add Specific Fuzzing Tests
200
201 **Acceptance Criteria**:
202 - [x] At least 5 targeted fuzzing tests added
203 - [x] Tests cover: marker, length, type, truncation, bit flips
204 - [x] All tests properly decorated with `@pytest.mark.fuzz`
205 - [x] Tests have descriptive docstrings
206 - [x] File saved
207 ```
208
209 ### Commit Task Files When Complete
210
211 ```bash
212 git add .claude/todo/01-FUZZ-MESSAGE-HEADER.md
213 git commit -m "Complete 01-FUZZ-MESSAGE-HEADER.md tasks
214
215 All 13 tasks complete with checkboxes marked.
216 Coverage: 95% of connection.py::reader()
217 Time: 3.5 hours"
218 ```
219
220 ---
221
222 ## Method 6: External Project Management Tools (Optional)
223
224 ### GitHub Issues
225 Create issues for each phase:
226 ```
227 Title: [Phase 1.1] Fuzz BGP Message Header Parser
228 Labels: testing, fuzzing, phase-1
229 Milestone: Testing Implementation
230
231 Description:
232 Complete all tasks in 01-FUZZ-MESSAGE-HEADER.md
233
234 Tasks:
235 - [ ] Task 1.1 - Read implementation
236 - [ ] Task 1.2 - Create basic test
237 ...
238 ```
239
240 ### GitHub Project Board
241 Create columns:
242 - 📋 To Do
243 - 🏗️ In Progress
244 - ✅ Done
245
246 Move task cards as you progress.
247
248 ### Simple Text File Tracker
249 ```bash
250 # Create simple daily log
251 cat >> .claude/todo/daily-log.txt << EOF
252 === $(date '+%Y-%m-%d') ===
253 Started: 09:00
254 Phase: 1.1 Message Header Fuzzing
255 Tasks: 1.5, 1.6, 1.7
256 Ended: 13:00
257 Time: 4h
258 Status: Tasks 1.5-1.7 complete, coverage now 87%
259 Blockers: None
260 Notes: Need to investigate edge case in marker validation
261
262 EOF
263 ```
264
265 ---
266
267 ## Recommended Workflow
268
269 ### Daily Routine
270
271 #### 1. Morning - Start of Day
272 ```bash
273 # Check where you left off
274 ./.claude/todo/track-progress.sh next
275
276 # Open PROGRESS.md and add today's date to daily log section
277 ```
278
279 #### 2. During Work - As You Complete Tasks
280 ```bash
281 # After each task
282 # 1. Check off task in task file (e.g., 01-FUZZ-MESSAGE-HEADER.md)
283 # 2. Check off task in PROGRESS.md
284 # 3. Update completion percentage
285
286 # After significant work
287 git add [files]
288 git commit -m "Task X.Y complete: [description]"
289 ```
290
291 #### 3. End of Day
292 ```bash
293 # Update daily log in PROGRESS.md
294 # Record:
295 # - Time spent
296 # - Tasks completed
297 # - Coverage changes
298 # - Blockers
299 # - Notes
300
301 # Run coverage to see progress
302 ./.claude/todo/track-progress.sh coverage
303
304 # Commit progress
305 git add .claude/todo/PROGRESS.md
306 git commit -m "Daily progress update: [date]"
307 ```
308
309 #### 4. End of Phase
310 ```bash
311 # Run full coverage report
312 env PYTHONPATH=src pytest --cov=exabgp --cov-report=html
313
314 # Update PROGRESS.md
315 # - Mark phase complete
316 # - Update coverage table
317 # - Update statistics
318
319 # Generate progress report
320 ./.claude/todo/track-progress.sh report > .claude/todo/phase-X-report.txt
321
322 # Commit everything
323 git add .
324 git commit -m "Complete Phase X: [name]
325
326 Summary:
327 - Tasks: X/X (100%)
328 - Coverage: Y% -> Z%
329 - Time: Xh
330 - Key findings: [...]"
331 ```
332
333 ---
334
335 ## Visual Progress Indicators
336
337 ### Simple Progress Bar in Terminal
338
339 Add to your shell profile:
340 ```bash
341 # Add to ~/.bashrc or ~/.zshrc
342 alias exabgp-progress='cd /home/user/exabgp && ./.claude/todo/track-progress.sh'
343
344 # Create visual progress
345 exabgp_status() {
346 cd /home/user/exabgp
347 local total=58 # Total estimated tasks
348 local done=$(grep -r "^- \[x\]" .claude/todo/*.md 2>/dev/null | wc -l)
349 local percent=$((done * 100 / total))
350 local bars=$((percent / 2))
351
352 echo -n "ExaBGP Testing Progress: ["
353 for ((i=0; i<50; i++)); do
354 if [ $i -lt $bars ]; then
355 echo -n "="
356 else
357 echo -n " "
358 fi
359 done
360 echo "] $percent% ($done/$total tasks)"
361 }
362 ```
363
364 Usage:
365 ```bash
366 $ exabgp_status
367 ExaBGP Testing Progress: [============= ] 26% (15/58 tasks)
368 ```
369
370 ---
371
372 ## Quick Reference Card
373
374 Print this out and keep it nearby:
375
376 ```
377 ┌─────────────────────────────────────────────────┐
378 │ ExaBGP Testing Progress Tracker │
379 ├─────────────────────────────────────────────────┤
380 │ Daily: │
381 │ • Check: ./track-progress.sh next │
382 │ • Update: PROGRESS.md daily log │
383 │ • Commit: Progress at end of day │
384 │ │
385 │ Per Task: │
386 │ • Mark: [ ] → [x] in task file │
387 │ • Mark: [ ] → [x] in PROGRESS.md │
388 │ • Update: Completion percentage │
389 │ • Commit: After significant work │
390 │ │
391 │ Per Phase: │
392 │ • Run: coverage report │
393 │ • Update: Coverage table in PROGRESS.md │
394 │ • Generate: Phase report │
395 │ • Commit: All changes │
396 │ │
397 │ Commands: │
398 │ ./track-progress.sh → Show progress │
399 │ ./track-progress.sh next → Next tasks │
400 │ ./track-progress.sh cov → Coverage │
401 │ │
402 │ Files: │
403 │ • PROGRESS.md → Master tracker │
404 │ • [phase].md → Task checklists │
405 │ • coverage-log.txt → Coverage history │
406 │ • daily-log.txt → Daily notes │
407 └─────────────────────────────────────────────────┘
408 ```
409
410 ---
411
412 ## Tips for Effective Tracking
413
414 ### 1. Be Consistent
415 - Update PROGRESS.md at the same time each day
416 - Commit progress regularly
417 - Don't let tracking lag behind work
418
419 ### 2. Be Honest
420 - Record actual time spent, not estimated
421 - Note blockers and issues
422 - Document what didn't work
423
424 ### 3. Celebrate Wins
425 - Mark milestones in PROGRESS.md
426 - Record coverage improvements
427 - Note when tests find real bugs
428
429 ### 4. Learn and Adapt
430 - Review your daily logs weekly
431 - Identify patterns (what takes longer than expected)
432 - Adjust future estimates
433
434 ### 5. Keep It Simple
435 - Don't over-track
436 - Focus on:
437 - Tasks complete
438 - Coverage achieved
439 - Time spent
440 - Blockers encountered
441
442 ---
443
444 ## Summary: Quick Start
445
446 ### Minimal Tracking (5 min/day)
447 1. Mark tasks complete in task files
448 2. Update PROGRESS.md daily log
449 3. Commit at end of day
450
451 ### Recommended Tracking (10 min/day)
452 1. Run `./track-progress.sh next` in morning
453 2. Mark tasks complete as you go
454 3. Update PROGRESS.md daily log with notes
455 4. Run coverage after each phase
456 5. Commit progress at end of day
457
458 ### Comprehensive Tracking (15 min/day)
459 1. Morning: Check progress and plan day
460 2. During: Mark tasks, commit after each
461 3. End of day: Full update of PROGRESS.md
462 4. Weekly: Review progress, adjust estimates
463 5. Per phase: Generate reports, update stats
464
465 Choose the level that works for you!