mirror of
https://github.com/morluto/rea.git
synced 2026-11-23 23:15:58 +00:00
refactor(native)!: report kernel build config coverage as partial or unknown instead of incomplete (#11486)
inspect_kernel_build_config coverage.status was `incomplete` for a config cut by the searched bytes or a budget-stopped search (known gaps), for a malformed framed config, and for a payload that was never searched (examined_bytes 0). Coverage now uses the shared status: `partial` for the known gaps, `unknown` when a config's existence or contents cannot be determined; `unsupported` is unchanged. config.status keeps its own values, and the service's consistency check pairs each config state with its coverage. BREAKING CHANGE: inspect_kernel_build_config `coverage.status` reports `partial` (config_gzip_truncated, config_search_exhausted) or `unknown` (malformed config, payload not searched) instead of `incomplete`.
This commit is contained in:
1 parent
0a9e736aea
commit
acb10754c1
9 files changed
+71
-23
No files matched your search
@@ -144,6 +144,26 @@ it.each([
|
||||
};
|
||||
},
|
||||
],
|
||||
[
|
||||
"a malformed config reported as a partial gap",
|
||||
async (): Promise<KernelBuildConfig> => {
|
||||
const malformed = await reportOf(nonConfigGzipFixture());
|
||||
return {
|
||||
...malformed,
|
||||
coverage: { ...malformed.coverage, status: "partial" },
|
||||
};
|
||||
},
|
||||
],
|
||||
[
|
||||
"a truncated config reported with unknown coverage",
|
||||
async (): Promise<KernelBuildConfig> => {
|
||||
const truncated = await reportOf(truncatedKernelConfigFixture());
|
||||
return {
|
||||
...truncated,
|
||||
coverage: { ...truncated.coverage, status: "unknown" },
|
||||
};
|
||||
},
|
||||
],
|
||||
[
|
||||
"an incomplete config carrying a malformed reason",
|
||||
async (): Promise<KernelBuildConfig> => {
|
||||
|
||||
Reference in new issue
Block a user