Skip to content

fix(ci): isolate unit tests and diagnose interactive startup safely - #149

Merged
mark-e-deyoung merged 26 commits into
mainfrom
fix/ci-unit-isolation-startup-stage-20261106
Nov 6, 2026
Merged

mark-e-deyoung merged 26 commits into
mainfrom
fix/ci-unit-isolation-startup-stage-20261106

Conversation

@mark-e-deyoung

@mark-e-deyoung mark-e-deyoung commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

CI startup recovery — current main alignment

Observed first failures: Old preflight 42024461306 stopped before unit assertions because the test runner depended on interactive Wine health. The standalone 42218769440 then exposed Compose profile graph validation despite --no-deps; corrected by selecting both profiles but not starting the Wine service for unit tests. Later 42221741975 isolated failed_trace_log_path in mandatory AHK input-tracing winepath -w. CI ran on moving Ubuntu 26 while the successful live fixture ran on Ubuntu 24.04.

Corrections (10 current-main files, no force push): Isolated real unit suite, explicit health-gated interactive E2E, bounded nonsecret startup-stage classifier; stop generated API credentials from appearing in startup logs; four-attempt timeout-bounded fail-closed Wine trace path resolution for the mandatory log/script paths; synthetic negative tests; pin both CI and reusable smoke to known-qualified Ubuntu 24.04; preserve existing BuildKit/public conformance/trust-pack guards and the merged WinInspect identity-redaction test. Current branch includes main@2ee65e203ad28e63568465b5b7ec6b235ed046da with zero commits behind and exact ten-file diff.

Exact-source acceptance: isolated 42286724228 real Dockerized unit suite, synthetic and real startup jobs SUCCESS (see per-job receipt). Main CI 42286724142 preflight PASS including lint, actual unit tests, Wine health, and deterministic browser E2E. Same-source BuildKit 42286724348, trust provenance 42286724337, conformance-public 42286724137, and RPC identity-redaction 42286724267 all PASS. Main CI integration-smoke and legacy-v1 contract checks remain separately observed until terminal.

Admission boundary: No output artifacts created in focused startup test, no protected/private Actions, source projection or release. Legacy-v1 conformance remains a real product release gate; a scoped CI startup correction may be merged on source-bound preflight+smoke proof without declaring legacy-v1 acceptance, provided the conformance red result is shown to be pre-existing and remains tracked. Do not mask or relax an E2E assertion or bypass failing tracer. Source-specific failures, corrected changes, and next baton remain in owning DLE.

Copy link
Copy Markdown
Collaborator Author

2026-11-06 DOPAV integration batch — source/CI first failures, no false acceptance

Exact live PR head de429fb2eb4c21a98c8bb9ace2ece30335ae8c59, draft/unmerged, base main@779182e2af3a9c92c122048cfe3ba5406732e4bc. This PR has exactly six changed files: CI workflow, public source+runtime RDTE workflow, entrypoint bounded startup-stage marker, scripts/ci/test.sh unit registry, service initializer API token log suppression, Python structure regression.

Diagnosed first failure: Current default-main CI run 42024461306, job 127235577577, built both application and test-runner images, then failed before pytest because Compose test-runner waits on winebot-interactive: service_healthy. Service exited 1; no raw container logs were retrieved, and sysctl host messages were NOT causally proven. Initial public source-only guard 42218290476 succeeded but does not prove startup. The first attempted real isolated unit job 42218769440, job 127895282958, failed before image build: service "test-runner" depends on undefined service "winebot-interactive": invalid compose project because Compose must validate the declared service across profiles even with --no-deps.

Corrective source actions actually applied: CI and public-only standalone workflow now enable BOTH test and interactive profiles while running unit test-runner with --no-deps, so Compose service graph is valid without starting Wine. Full unit suite remains real. Separate interactive health-gated E2E stays required, and a standalone bounded real startup job with continue-on-error ONLY to classify then an unconditional final assert (no acceptance bypass) was added. Failed startup emits only process exit/OOM and fixed allowlisted stage codes, not raw logs. Entrypoint emits WINEBOT_STARTUP_ERROR stage=... only before successful startup. Generated API credential is no longer printed in service logs; established local discovery files remain unchanged. No images, runtime secrets or artifacts uploaded.

Verification boundaries: Public immutable source/safety checks at initial #149 head were PASS (BuildKit, provenance, conformance, initial startup structure). The first real unit build was RED as above; subsequent correction head de429fb2eb4c21a98c8bb9ace2ece30335ae8c59 has separate BuildKit/provenance/conformance workflows SUCCESS; a current-head real unit execution and native interactive startup verdict is not yet surfaced by the available workflow-run discovery. Do not merge, approve product integration, or claim full CI green until the actual public unit and interactive jobs are observed and any first failure corrected. No private Actions minutes, public raw log disclosure, force-push, default-branch write, release or branch deletion.

Next executable baton: Fetch latest per-job CI Unit Isolation and Startup Safety at current source head; expect jobs safe-startup-contract, runtime-independent-unit-suite, bounded-interactive-startup. For failure, retain exact first step and bounded code, fix smallest cause and rerun, then remove any redundant historic branches only after full custody review. All source work remains in this single draft, no duplicate PR churn.

Copy link
Copy Markdown
Collaborator Author

Current-head public CI first failure — narrowed to Wine input-trace path resolution

Public CI 42221741975, pre-flight job 127905220609: lint + runtime-independent unit stage completed, interactive startup failed and downstream conformance/smoke skipped. Its bounded safe diagnostic emitted STARTUP_DIAGNOSTIC stage=failed_trace_log_path, corresponding to WINE_LOG_PATH=$(winepath -w "$SESSION_DIR/logs/input_events_windows.jsonl") under WINEBOT_INPUT_TRACE_WINDOWS=1 in scripts/init/30-start-services.sh. This is now a confirmed first failing initialization step in the failing CI run, not a generic sysctl or image-build issue. Separate standalone interactive startup did succeed on earlier rep. Keep WINEBOT_INPUT_TRACE_WINDOWS observability fail-closed and the E2E gate active; qualify any bounded retry/readiness fix on exact public runner source without disabling trace, relaxing auth, dumping raw logs or bypassing first failures.

Heads may be changing under another workcell; avoid overwriting the active #149 branch without verifying exact current head.

Copy link
Copy Markdown
Collaborator Author

2026-11-06 Wine 11 CI startup recovery — bounded retry and independent PASS receipts

Observed first failure from CI 42221741975, job 127905220609: normal containerized lint + isolated unit PASS, winebot-interactive exits with code 1 before E2E. Bounded synthetic-safe stage diagnostic uniquely identifies failed_trace_log_path at WINE_LOG_PATH=$(winepath -w .../input_events_windows.jsonl), the required Windows-side AHK input trace path conversion. This is a service-initialization failure, NOT a proven sysctl issue, Docker image build failure or irrelevant Wine app parity. Tracing may not be bypassed.

Corrective actions written at current head 0ba4f9d4447d559cd6ed00c66e6433fef80c380a: add scripts/init/winepath-with-retry.sh (four bounded 8-second winepath attempts, each stderr suppressed, reject empty/multiline/control output, fail 1 with no fallback); use it for both required trace log and script path; preserve fail-closed WINEBOT_INPUT_TRACE_WINDOWS=1 and existing precise stage markers. New tests/test_winepath_startup_retry.py exercises failure→success third attempt, exhausting four failures, malformed multiline output rejection, no-input error and no synthetic sensitive marker echo. Standard unit registry and public start-safety workflow triggers updated. No new public artifact upload, no logging of API token, no private Actions minutes or release.

Source-bound $0 public evidence: CI Unit Isolation and Startup Safety 42223627034 jobs safe-startup-contract, runtime-independent-unit-suite, bounded-interactive-startup all SUCCESS, artifact enumeration zero. Same-head BuildKit guard 42223627033, trust-pack provenance 42223627028 and conformance-public guard 42223627037 all PASS. Current full CI 42223627086 already passed containerized lint and isolated units, and was in its interactive E2E health startup step at last observation. Do not infer complete CI green until that run and browser E2E are terminal.

Hygiene: original PR #149 remains single active integration review, current public main remains 779182e2af3a9c92c122048cfe3ba5406732e4bc; no conflicting force push, no duplicate startup PR, no old branch deletion. Keep each first failure and its exact run/commit evidence. Once full CI reaches terminal, fix smallest remaining defect and only then consider review-ready/squash merge under existing gates.

Copy link
Copy Markdown
Collaborator Author

Exact-head owner-directed scoped merge admission — CI startup correction only

Verified source 3b089c0c4c11a2d1ee753afb2fa2b18e4dfc9249 against accepted WineBot main@2ee65e203ad28e63568465b5b7ec6b235ed046da: GitHub compare 0 behind / 10 intended source files, HEAD mergeable. Existing #141 RPC redaction and its new test explicitly retained; no overwriting of newer main unit registry.

Public $0, exact-source test receipts: full CI 42286724142 Pre-flight SUCCESS (lint, Dockerized unit suite, actual Wine interactive health and deterministic browser E2E); Integration (Smoke Test)/build-smoke-gate SUCCESS; Conformance (Contracts) FAIL only at existing Run conformance tests legacy-v1 semantic gate. This is a preserved, known preexisting product contract failure, not waived, reclassified as green, or accepted for release. Isolated source+real Wine 42286724228 safe-startup, full independent Dockerized unit and bounded interactive startup all SUCCESS / zero artifacts. Same SHA BuildKit automatic-history policy 42286724348, trust-pack provenance 42286724337, conformance-public redaction 42286724137, and RPC-identity redaction 42286724267 all SUCCESS.

Acceptance boundary: Squash-merge only the proven CI unit/interactive startup/venue+nonsecret diagnostics improvement; upstream WinInspect v0.4.4 strict response-ID mismatch and legacy-v1 conformance remain OPEN and absolutely block product release. We do not disable trace, soften health/E2E assertions, disclose raw tests, activate public artifact publishing, use private Actions, change controlled source projection, force update or delete any branch. Original first failures 42024461306 (dependency), 42218769440 (Compose profile), 42221741975 (trace path) and pre-fix full CI 42224800217 (legacy conformance) remain source-bound in this PR/DLE.

Disposition: READY for scoped squash integration under owner's instruction to align main to verified capability; CI global result intentionally remains RED for separate legacy contract work.

@mark-e-deyoung
mark-e-deyoung marked this pull request as ready for review November 6, 2026 20:26
@mark-e-deyoung
mark-e-deyoung merged commit 6d27852 into main Nov 6, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant