Skip to content

Run the tool-activity browser suite, and read models.py as UTF-8 - #9877

Closed
danielhanchen wants to merge 2 commits into
mainfrom
ci-main-red
Closed

danielhanchen wants to merge 2 commits into
mainfrom
ci-main-red

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Repo tests (CPU) is red on main, so every PR branched from it inherits two failures that have nothing to do with the PR. Both guards are correct and both offending changes are wrong, so this fixes the offending side rather than the guards.

The orphaned Playwright suite

tests/studio/playwright_tool_activity.py arrived with #9803 and no workflow step, so it ran nowhere and every job stayed green over it. test_playwright_suites_run_in_ci.py exists to catch exactly that.

It gets a step rather than a NOT_IN_CI entry because it is a gate, not a measurement harness: it drives studio/frontend/smoke-tool-activity.html through 13 scenes and exits non-zero when one misses its expectation. The questions it asks are not reachable from the node suite, which sees the reducers, the store and the JSX wiring through the TypeScript AST but never a Radix Collapsible: whether closed content is still in the DOM, what aria-expanded says, and where the page lands after a collapse.

Placed next to the settings-tabs smoke, whose PW_ENGINE convention it already documents itself as following, with the matching paths filter entry so it triggers on its own edits.

The encoding

test_memory_contract.py:178 read routes/models.py with the platform default encoding, which breaks on Windows as soon as that file gains a non-ASCII byte. Added by #9830. tests/test_source_read_encoding.py is the guard.

Verification

tests/test_source_read_encoding.py and tests/studio/test_playwright_suites_run_in_ci.py: 8 passed. Workflow YAML parses.

shimmyshimmer and others added 2 commits August 27, 2026 16:06
Repo tests (CPU) is red on main, so every PR branched from it inherits two
failures that have nothing to do with the PR.

tests/studio/playwright_tool_activity.py arrived with #9803 and no workflow
step, so it ran nowhere and every job stayed green over it. It is a gate, not a
measurement harness: it drives smoke-tool-activity.html through 13 scenes and
exits non-zero when one misses, and the questions it asks (whether closed
content is still in the DOM, what aria-expanded says, where the page lands after
a collapse) are not reachable from the node suite, which sees the reducers and
the JSX through the TypeScript AST but never a Radix Collapsible. So it gets the
step rather than a NOT_IN_CI entry, next to the settings-tabs smoke that shares
its engine convention, with the matching paths filter so it triggers on its own
edits.

test_memory_contract.py read routes/models.py with the platform default
encoding, which breaks on Windows the moment that file gains a non-ASCII byte.
Added by #9830.

Both guards were right and both offending changes were wrong, so the fix is on
the offending side.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants