Skip to content

feat: tolerate known upstream test failures in checks - #61

Merged
timvdhoorn merged 3 commits into
mainfrom
feat/known-upstream-failures
Nov 3, 2026
Merged

timvdhoorn merged 3 commits into
mainfrom
feat/known-upstream-failures

Conversation

@timvdhoorn

Copy link
Copy Markdown
Owner

Why

Upstream added a MessagesTimeline browser test (pingdotgg/t3code#29166) that fails on the plain nightly 0.1.7-nightly.20261103.4138 without any patch (expected 577 to be close to 473, 3 of 3 runs on devbox1). Because checks-tt.json lists that file, every checks, server, port and 04:30 unattended run failed, so the unattended-port grant never applied.

What

  • New fork-owned known-upstream-failures.json (file, full test name, upstream reference, date added), seeded with that test.
  • run_test_step now passes a failing vitest step only when every failed test in its JSON report matches an entry exactly, the file has no load error, and the test case's source is identical at the nightly commit and at HEAD. Any other failure, an unhandled error or an unparsable report still fails the step. Each tolerated test prints pass (known upstream failure: <name>).
  • checks records whether each entry failed or passed. status lists the entries and marks one stale ("remove it") once it has passed.
  • recipe_hash() now includes the list, so the checks stamp and the grant reflect changes to it.
  • Docs: docs/machines.md (new "Known upstream failures" section), docs/porting.md, a row in docs/fork-changes.md, and the ownership table in AGENTS.md.

Checks

  • python3 -m py_compile t3code-customize
  • python3 -m unittest discover -s tests (210 tests, OK)
  • ./t3code-customize status
  • A real checks --source <port checkout> --target 115739c1e02e --ios run tolerates the test in both stages.

@timvdhoorn
timvdhoorn merged commit 660b56c into main Nov 3, 2026
@timvdhoorn
timvdhoorn deleted the feat/known-upstream-failures branch November 3, 2026 21:24
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