Skip to content

fix(ci): restore plist, verifier, and TOML capacity checks - #4930

Merged
N0zoM1z0 merged 2 commits into
mainfrom
fix/ci-main-regressions-20261018
Oct 18, 2026
Merged

N0zoM1z0 merged 2 commits into
mainfrom
fix/ci-main-regressions-20261018

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Restore four main CI failures: plist formatting, a stale keyed-archive value assertion, a Ghidra prerequisite fixture, and quadratic TOML newline cleanup. Fixes #4931.

Problem and expected behavior

Main CI at 2183c9598 fails formatting and two deterministic boundary assertions. It also times out on Codex setup with 140,000 internal blank lines. The Codex timeout reproduces locally; a diagnostic CPU profile spends about 31.2 seconds in the trailing-LF regex.

Known NaN must retain its canonical observed identity; the Ghidra fixture must reach its deliberately missing JDK/install; and large valid TOML configuration must preserve caller text without repeated scans of internal blank-line runs.

Change and scope

  • Apply the pinned XML-test formatter and assert the existing typed NaN value, scalar/observed metadata, and current limitation.
  • Preserve host inspector PATH while retaining explicit absent JDK/install selections, isolated home directories, and the verifier's unavailable/malformed-output checks.
  • Replace both terminal-LF regex scans in the shared TOML serializer with one backward-scanning helper. Preserve existing LF/CRLF handling, source text, backups, and idempotence.

The scalar and process-ownership producers already implement their contracts; their test consumers were stale. The TOML performance correction is at the shared application owner used by setup/uninstall. No timeout, retry policy, test size, public schema, or installation authority changes. This is an ordinary bug fix; no new capability or maintainer scope decision is needed. All changes fit one main-CI recovery outcome; #4931 records the independently confirmed product cost.

Evidence and validation

Based on refreshed main 52b73ee85:

  • Original clean selection: 74 passed / 2 failed; the formatter separately returns exit 1. All 14 descriptor cleanup cases already pass on main; no additional descriptor fix is included.
  • Unchanged TOML capacity acceptance file before the correction: Codex times out at 30,136 ms, Grok passes. The 140,000-line fixtures and original 30-second test deadlines remain intact.
  • Final focused selection: 218/218 tests passed in 16 files, covering scalar/XML projection, archive selection, artifact/descriptor cleanup, Java probing, compiled verifier boundaries, actual integrity CLI workflows, BOM/dialect/transaction preservation, large inline/multiline TOML values, and public setup/uninstall workflows.
  • npm run check:ci — all eight tasks and architecture guards across 1,504 source files passed.
  • npm run docs:check — passed, including five README consistency tests.
  • git diff --check, normal commit hooks, and pre-push checks — passed.

Equivalent completed serializer work on the same 140,000-LF document:

Phase Before wall / CPU After wall / CPU
First call after module import 26.819 s / 26.636 s 85.4 ms / 120.1 ms
Warm repeat 22.601 s / 22.672 s 60.8 ms / 98.9 ms

Both runs parse the actual serializer output, verify the desired document and preserved source prefix, and produce the same 140,128-byte SHA-256 output. This measures the shared serializer rather than whole-process startup. Actual REA CLI Codex setup/uninstall completes under the original deadline after the fix (13.7 s in the final integrated run).

A separate baseline unknown-flag CLI case timed out once on GitHub; its unchanged seven-case CLI file passes locally, including the final selection. Its hosted timeout cause remains unconfirmed, with no speculative timing change included. Current-head CI remains the integration gate.

Current-head CI passed on c6664e30: 13 selected jobs succeeded, 18 policy-selected skips, attempt 1, no reruns. All five test shards, source/static checks, and Linux package verification passed. The unchanged capacity acceptance cases ran in hosted CI: Codex 4,233 ms and Grok 4,048 ms; the formerly timed-out unknown-flag CLI case passed in 986 ms. Codex reviewed this exact head with no findings; Greptile confidence is 5/5, with no unresolved threads.

Post-merge main CI at 1accac27: 36/36 jobs passed, attempt 1, no reruns or skips, including all five shards, native package lanes, Windows capability checks, and real Apple CLI/MCP E2E.

Compatibility and verification limits

Heavy local checks ran serially on two CPUs with 3 GiB Node heaps and a 7 GiB sampled family-RSS guard. Final focused run: 41.6 s wall / 68.7 s reaped CPU / 1.55 GiB sampled peak RSS. Complete static gate: 70.0 s / 103.4 s / 4.72 GiB. No guard stop or OOM. Measurements are on a shared host; sampled RSS may miss peaks or count shared pages more than once. Agent tokens and hosted CPU/memory are unmeasured.

Linux executes the compiled Ghidra prerequisite script against deliberately absent dependencies; this does not establish real disassembly behavior. Actual compiled REA CLI processes exercise authored ASAR and TOML workflows. Raw logs, profiles, and the English recap are retained under /tmp/rea-main-ci-repair-20261018/.

Author readiness

Human owner: @N0zoM1z0

These declarations record the human owner's explicit standing task instruction: “後續審閱,承擔,聲明 都同意!不用問我了”. No separate new human-review event is asserted.

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • Concrete CI failures and their producing contracts are identified; the change has one maintenance outcome.
  • Scope and authority are resolved; no new provider or execution capability.
  • Regression checks retain meaningful evidence, uncertainty, rejection, and cleanup coverage.
  • Final diff checked for unrelated changes and unsupported claims.
  • Current-head CI and actionable automated review findings are resolved.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T01:08:42.331472Z c6664e3 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

Aligns plist and Ghidra tests with existing behavior. Also replaces two TOML newline-trimming expressions with a backward scan.

  • Plist CI checks expect the formatted test and typed NaN value.
  • The Ghidra prerequisite test keeps native process tools on PATH.
  • TOML edits trim terminal line feeds without scanning blank lines.

Reviews (2) · Last reviewed commit: "fix(clients): trim TOML line endings wit..." · Reviewed by Greptile

Replace both terminal-LF regex scans with a backward scan while preserving existing line-ending semantics and the full capacity regression.

Fixes #4931
@N0zoM1z0
N0zoM1z0 force-pushed the fix/ci-main-regressions-20261018 branch from 17f9764 to c6664e3 Compare October 18, 2026 01:05
@N0zoM1z0 N0zoM1z0 changed the title test(ci): align plist expectations and Ghidra prerequisites fix(ci): restore plist, verifier, and TOML capacity checks Oct 18, 2026
@N0zoM1z0

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: c6664e30c8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@N0zoM1z0
N0zoM1z0 merged commit 1accac2 into main Oct 18, 2026
35 checks passed
@N0zoM1z0
N0zoM1z0 deleted the fix/ci-main-regressions-20261018 branch October 18, 2026 01:20
@morluto morluto added area: build Build, CI, packaging, and publishing bug Something isn't working labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] TOML setup scans internal blank-line runs quadratically

2 participants