Commit fd5cb74
fix: make benchmark tests resilient to CodSpeed's repeated test body execution (#210)
* Initial plan
* fix: use absolute TESTING_DIR and reset file in benchmark tests
- Change TESTING_DIR to Path(__file__).parent.parent / "testing" so all
testing/ paths are absolute and CWD-independent
- Reset file to unformatted bytes at start of "reformats" test bodies
and compare against MAIN_C.read_bytes() to handle pytest-codspeed
calling benchmark bodies multiple times per test invocation
Agent-Logs-Url: https://github.com/cpp-linter/cpp-linter-hooks/sessions/e6f1960a-f8fc-4507-8baa-2b659f052346
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
* fix: apply ruff-format to long assertion line in test_integration.py
Agent-Logs-Url: https://github.com/cpp-linter/cpp-linter-hooks/sessions/34061e6b-161d-43de-b6e2-4f3a3a642f63
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>1 parent dedddc3 commit fd5cb74
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| |||
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
127 | | - | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
131 | 135 | | |
132 | 136 | | |
133 | | - | |
| 137 | + | |
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
| |||
0 commit comments