Commit 754ff71
authored
fix: ensure 100% progress is logged exactly once (#276)
The progress tracker was logging 100% multiple times - once from
_record_completion() and again from log_final(). Now _record_completion()
skips logging at 100%, leaving that responsibility to log_final().
Also refactors tests from class-based to flat functions and adds
explicit tests for the 100% logging behavior.1 parent 9e1c6ec commit 754ff71
2 files changed
Lines changed: 213 additions & 141 deletions
File tree
- packages/data-designer-engine
- src/data_designer/engine/dataset_builders/utils
- tests/engine/dataset_builders/utils
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 82 | + | |
89 | 83 | | |
90 | 84 | | |
91 | 85 | | |
| |||
97 | 91 | | |
98 | 92 | | |
99 | 93 | | |
100 | | - | |
| 94 | + | |
101 | 95 | | |
102 | 96 | | |
103 | 97 | | |
| |||
0 commit comments