You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2026/10/15 17:44:00 UTC

[jira] [Assigned] (THRIFT-6425) lib/js: test-skip-depth.html and test-protocol-negative-size.js are never run

     [ https://issues.apache.org/jira/browse/THRIFT-6425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jens Geyer reassigned THRIFT-6425:
----------------------------------

    Assignee: Jens Geyer

> lib/js: test-skip-depth.html and test-protocol-negative-size.js are never run
> -----------------------------------------------------------------------------
>
>                 Key: THRIFT-6425
>                 URL: https://issues.apache.org/jira/browse/THRIFT-6425
>             Project: Thrift
>          Issue Type: Bug
>          Components: JavaScript - Library
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>            Priority: Minor
>
> Two test files in {{lib/js/test}} are not loaded by any QUnit target in {{lib/js/Gruntfile.js}}, so neither {{make -C lib/js check}} nor the lib-js CI job runs them:
> * {{test-skip-depth.html}}, which loads {{test-skip-depth.js}} (THRIFT-6014). The page exists, and {{shell:ThriftGenRecursionDepth}} generates the types it uses, but the {{qunit}} section has no target for it.
> * {{test-protocol-negative-size.js}} (THRIFT-6037). No page loads it.
> Run locally with the same test server and headless Chrome as the other pages, both negative-size tests pass, and 10 of the 11 skip-depth tests pass. The one that fails is "skip does not throw below the depth limit". It hands four binary bytes to {{setRecvBuffer()}} and calls {{skip(Thrift.Type.I32, 63)}}, but the JSON protocol reads from the parsed message rather than from those bytes. With no message parsed, {{readI32()}} dies with {{TypeError: Cannot read property 'length' of undefined}}.
> Proposed change: add a QUnit target for {{test-skip-depth.html}}, and a page plus a target for {{test-protocol-negative-size.js}}, both run by the {{test}} task. Rewrite the failing test so that it gives the protocol a parsed message.
> _Drafted with AI assistance (Claude Opus 5.5); reviewed and filed by Jens Geyer._



--
This message was sent by Atlassian Jira
(v8.20.10#820010)