mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 21:05:40 +07:00
[GH-ISSUE #4532] [TUI] The deeply-nested telemetry fixture is stale on a newer Python: 20,000 levels now parse, so the server answers the other message #2045
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2045
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TheHubUser4860938 on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4532
Problem:
tests/terminal/test_connections.py::ConnectionTests::test_deeply_nested_telemetry_returns_one_redacted_errorfeeds a 20,000-level JSON array and expects the parse to fail:On Python 3.14 the comment's premise no longer holds: the parse succeeds, returns a list, and
strata_cli/client.py:131therefore raises the other error -server returned a non-object telemetry response- so the assertion fails on a message that is correct for the payload. Measured on this box:The code side is fine:
client.py:128catches(ValueError, UnicodeDecodeError, RecursionError), so a payload that genuinely overflows still produces the "malformed JSON telemetry" the test wants.Environment:
Environment:
Strata Version: 0.2.7.1 (source checkout at tag v0.2.7.1, commit
46c152a1; the test file discussed is upstream's own, unmodified by this fork)OS: Linux x86-64 - Runtime: Python 3.14.8, Node 26.12.1 for the host suite
Reproduce:
python -m pytest tests/terminal/test_connections.py -k deeply_nestedon a Python 3.14 host. Measured at three levels (live checkout, clean worktree of the same commit, pure-tag worktree): red in all three, so it is the interpreter, not the checkout. One more thing worth knowing: run as part of the wholetests/terminalbatch it can go green in the same tree - the depth at which the C scanner gives out depends on how much stack the process has already used - so this fixture is order-sensitive as well as version-sensitive.Expected: the fixture proves "a telemetry body the parser cannot take", whatever the interpreter's limit is.
Suggested one-line shape: raise
depthpast the C scanner's ceiling on every supported interpreter (200,000 overflows here with the 8 MB stack and 8,156 kB used), or accept either message:assertRaisesRegex(ClientError, "malformed JSON telemetry|non-object telemetry response").Reproduction status: measured on this box (the two
json.loadsprobes above, and the test at three checkout states). Older interpreters were not run here - the overflow arrives earlier the deeper the version's own limit, so a larger depth cannot make it pass less often. This fork raised its own copy's depth to 200,000 for the same reason.@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.