mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 19:53:50 +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
@@ -1,5 +1,6 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { coverageStatusSchema } from "../coverage.js";
|
||||
import { digestSchema } from "../digests.js";
|
||||
import { absoluteLocalPathStringSchema } from "../localPath.js";
|
||||
|
||||
@@ -214,7 +215,14 @@ export const kernelBuildConfigSchema = z.strictObject({
|
||||
entries: z.array(entrySchema),
|
||||
}),
|
||||
coverage: z.strictObject({
|
||||
status: z.enum(["complete", "incomplete", "unsupported"]),
|
||||
/**
|
||||
* `partial` when the config is known to extend past what was examined (a
|
||||
* gzip member cut by the searched bytes, or the candidate budget stopping
|
||||
* the search); `unknown` when whether a config exists or what it holds
|
||||
* cannot be determined (an unreadable payload that was not searched, or a
|
||||
* malformed config); `unsupported` for a payload codec REA does not inflate.
|
||||
*/
|
||||
status: z.enum([...coverageStatusSchema.options, "unsupported"]),
|
||||
examined_bytes: uint,
|
||||
examined_entries: uint,
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user