You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`hash-good` - the last known good commit hash - in case of daca it is the last tagged minor release (not patch release - i.e. 2.x)
14
-
`hash-bad` - the known bad commit hash - in case of daca the one from the `head-info:` line
15
-
`cppcheck-options` - the options for the Cppcheck invokation - in case of daca the ones from the `cppcheck-options:` line and the path to the folder/file to scan
13
+
`hash-good` the latest known good commit hash or tag<br/>
14
+
`hash-bad` the earliest known bad commit hash or tag<br/>
15
+
`cppcheck-options` the options for the Cppcheck invokatio<br/>
16
+
`expected` (optional) a string that is expected in the output. Will be used instead of the exitcode
16
17
17
18
If possible use `main` as the function to test stuff with since it won't emit an `unusedFunction` warning.
18
19
19
-
## Bisecting scan time regressions
20
-
21
-
We use daca to track differences in scan time. An overview of regressions in scan time can be found at http://cppcheck1.osuosl.org:8000/time_gt.html.
22
-
23
-
You need to download the archive as specified by the second line in the output and extract it.
24
-
25
-
If the overall scan time regressed you need to specify the whole folder.
20
+
## Bisecting result regressions
26
21
27
-
If a timeout (potential hang) was introduced you can simply specify the file from `error: Internal error: Child process crashed with signal 15 [cppcheckError]`.
22
+
Results regressions are being bisected based on the `--error-exitcode=` result.
28
23
24
+
If nothing is found the result will be `0` and it is treated as a _good_ commit.<br/>
25
+
If a finding occurs the result will be `1` which is treated as a _bad_ commit.<br/>
26
+
If a crash occurs it is treated as a _bad_ commit.
29
27
30
-
## Bisecting result regressions
28
+
You can also bisect based on expected output via the `expected` parameter.
31
29
32
-
Results regressions are being bisected based on the `--error-exitcode=` result.
33
-
If nothing is found the result will be `0` and it is treated as a _good_ commit.
34
-
If a finding occurs the result will be `1` which is treated as a _bad_ commit.
30
+
If the given string is found in the output it is treated as a _good_ commit.<br/>
31
+
If the given string is _not_ found in the output it is treated as a _bad_ commit.<br/>
32
+
If a crash occurs it is treated as a _bad_ commit.
35
33
36
34
### False positive
37
35
38
-
Provide a code sample which will trigger the false postive.
36
+
Provide a code sample which will trigger a single(!) false postive only. Trying to bisect multiple issues at the same time will most likely result in an incorrect result (see below).
After the bisecting check the output to make sure that only expected false positive and no additional finding was reported for the _bad_ commits. Any other finding will also cause the commit to be marked as _bad_ leading to an incorrect result.
51
+
48
52
### False negative
49
53
54
+
#### Via suppression
55
+
50
56
Provide a code sample which will trigger a `unmatchedSuppression`.
We use daca@home to track differences in scan time. An overview of regressions in scan time can be found at http://cppcheck1.osuosl.org:8000/time_gt.html.
89
+
90
+
You need to download the archive as specified by the second line in the output and extract it.
91
+
92
+
If the overall scan time regressed you need to specify the whole folder.
93
+
94
+
If a timeout (potential hang) was introduced you can simply specify the file from `error: Internal error: Child process crashed with signal 15 [cppcheckError]`.
95
+
61
96
## Notes
62
97
63
-
### Compilation issues:
98
+
### Bisecting daca@home issues
99
+
100
+
Use the following data as respective parameters:
101
+
102
+
`hash-good` the latest tagged release - the second value from the `cppcheck:` line<br/>
103
+
`hash-bad` the commit hash from the `head-info:` line<br/>
104
+
`cppcheck-options` the `cppcheck-options:` line and the path to the folder/file to scan<br/>
105
+
106
+
### Known compilation issues:
64
107
65
108
- 2.5 and before can only be built with GCC<=10 because of missing includes caused by cleanups within the standard headers. You need to specify `CXX=g++-10`.
66
109
- 1.88 and 1.89 cannot be compiled:
67
110
```
68
111
make: python: No such file or directory
69
112
```
113
+
RESOLVED: a hot-patch is applied before compilation.
70
114
- 1.39 to 1.49 (possibly more versions - 1.54 and up work) cannot be compiled:
71
115
```
72
116
lib/mathlib.cpp:70:42: error: invalid conversion from ‘char’ to ‘char**’ [-fpermissive]
0 commit comments