wip(rm-02): close all success output paths
This commit is contained in:
@@ -410,6 +410,7 @@ const CURRENT_TREE_OBSERVATION_PATTERNS = [
|
||||
/^DEPLOYED IDENTITY UNAVAILABLE /,
|
||||
/^DEFECT /,
|
||||
/^COMPATIBILITY /,
|
||||
/^REGISTRY SUMMARY open behavior deltas: [0-9]+; required-behavior conformance is not asserted while deltas remain$/,
|
||||
];
|
||||
|
||||
export function assertCurrentTreeObservation(observation) {
|
||||
@@ -418,6 +419,11 @@ export function assertCurrentTreeObservation(observation) {
|
||||
}
|
||||
}
|
||||
|
||||
function writeCurrentTreeOutput(output) {
|
||||
assertCurrentTreeObservation(output);
|
||||
process.stdout.write(`${output}\n`);
|
||||
}
|
||||
|
||||
function validateClosedSchema(
|
||||
manifest,
|
||||
failures,
|
||||
@@ -1203,8 +1209,7 @@ async function main() {
|
||||
const options = parseArgs(process.argv.slice(2));
|
||||
const { failures, observations } = await verifyRegistry(options);
|
||||
for (const observation of observations) {
|
||||
assertCurrentTreeObservation(observation);
|
||||
process.stdout.write(`${observation}\n`);
|
||||
writeCurrentTreeOutput(observation);
|
||||
}
|
||||
if (failures.length > 0) {
|
||||
for (const failure of failures) process.stderr.write(`GATE VERIFY FAILED: ${failure}\n`);
|
||||
@@ -1212,8 +1217,8 @@ async function main() {
|
||||
return;
|
||||
}
|
||||
const defects = observations.filter((line) => line.startsWith('DEFECT ')).length;
|
||||
process.stdout.write(
|
||||
`registry observations matched; open behavior deltas: ${defects}; required-behavior conformance is not asserted while deltas remain\n`,
|
||||
writeCurrentTreeOutput(
|
||||
`REGISTRY SUMMARY open behavior deltas: ${defects}; required-behavior conformance is not asserted while deltas remain`,
|
||||
);
|
||||
} catch (error) {
|
||||
process.stderr.write(`GATE VERIFY FAILED: ${error.message}\n`);
|
||||
|
||||
Reference in New Issue
Block a user