Skip to content

Fix cancellation test ordering and retain CI failure diagnostics - #88

Merged
harder merged 3 commits into
mainfrom
fix/ci-failure-diagnostics
Nov 13, 2026
Merged

harder merged 3 commits into
mainfrom
fix/ci-failure-diagnostics

Conversation

@harder

@harder harder commented Nov 13, 2026

Copy link
Copy Markdown
Owner

The cancellation UI test could send Escape before its fake backend had captured the operation token. It now waits for token capture explicitly. UI checkpoint timeouts also report bounded state and the first background failure instead of only a generic deadline message.

CI and release tests retain bounded stdout/stderr tails for managed tests and managed/native smoke failures, redact known credential forms, and upload the logs for seven days. Failure summaries identify the phase, platform, SDK pin, and command exit code. Diagnostic-writing failures preserve the command result. Existing triggers, permissions, dependency pins, concurrency policies, and required test coverage are unchanged.

Validation:

  • 757 .NET tests passed through the capture wrapper using pinned SDK 10.0.403 on Linux.
  • Both cancellation cases passed ten consecutive runs.
  • 14 Node tests passed, including redaction of prefixed credential names, long output, missing executables, unreadable SDK metadata, and exit-code preservation.
  • PowerShell smoke passed locally; success, exit-17, and stderr-rejection fixtures behaved as expected.
  • Pinned actionlint 1.7.12 and whitespace checks passed.
  • Claude Sonnet 5.5 reviewed the implementation and the follow-up fixes. All actionable findings were addressed; its final readiness condition (prefixed credential redaction plus passing Node tests) is satisfied.

Windows execution and both Native AOT architectures must pass PR CI before merge. Mock smoke does not establish live WinGet COM activation or interactive terminal parity. Credential redaction covers known forms, not arbitrary private payloads.

Copilot AI balanced review requested due to automatic review settings November 13, 2026 03:13
@harder
harder merged commit 6115e4a into main Nov 13, 2026
11 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Truncating output before sanitization can strip credential-identifying context while retaining secret fragments in uploaded logs, creating a critical credential-exposure risk.

1 open issue
What changed in this PR

Improves cancellation-test reliability and failure diagnostics for Scout’s CI and release validation.

Changes:

  • Waits for backend token capture before cancelling the single-operation UI test.
  • Adds bounded UI state and background-failure details to checkpoint timeout messages.
  • Introduces command-output capture and smoke helpers, with regression tests and seven-day failure-log artifacts.
File Description
tests/​WorkflowUiTests.cs Synchronizes cancellation with operation-token capture.
tests/​ListNavigationTests.cs Adds diagnostic context to UI checkpoint timeouts.
.github/​workflows/​release.yml Wraps tests and smoke execution and uploads failure logs.
.github/​workflows/​ci.yml Integrates capture helpers across managed and native validation jobs.
.github/​scripts/​ci-smoke.ps1 Preserves managed smoke timeout, stderr, and exit-code checks.
.github/​scripts/​ci-command.test.js Covers redaction, bounded output, and command-result preservation.
.github/​scripts/​ci-command.js Adds output capture, credential filtering, metadata, and failure summaries.

Review effort: Balanced

Comment on lines +41 to +42
child.stdout.on('data', data => { process.stdout.write(data); stdout = tail(stdout + data); });
child.stderr.on('data', data => { process.stderr.write(data); stderr = tail(stderr + data); });
@harder
harder deleted the fix/ci-failure-diagnostics branch November 13, 2026 03:17
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.

2 participants