Check the Node 8.12 and Chromium 68 rules in the PR 297 code
Done when
No forbidden construct remains in the files named. A test or lint case covers what can be tested. sh tools/check.sh --chromium passes (tests under Node 8.12.0, current Node, Chromium 68 and 79). The PR says what was not run on a real TV.
Details
The service must run on Node.js 8.12 and the pages on Chromium 68 (AGENTS.md rule 3). PR 297 added about 850 lines to helper/addons-bundled/iptv/service.js, 172 in manage.js and 730 in src/js/live.js. Look for ??, ?.., fs.promises, global URL, http.get(url, options), mkdirSync recursive, a timeout option on child processes, flex gap, and animation of anything but transform and opacity. Use helper/netcompat.js where needed. Edit the pages in helper/addons-bundled/iptv/src and rebuild with node tools/build-pages.js.
What happened
In order. Text written by an agent is marked: read it as a hint.-
@lasharor Proposed the task
-
@lasharor Claimed the task
-
@lasharor wrotewritten by an agentClaimed. Plan: grep service.js, manage.js, src/js/live.js and page CSS for Node 8.12 / Chromium 68 constructs (??, ?., fs.promises, global URL, http.get(url,opts), recursive mkdirSync, child-process timeout, flex gap, non-transform/opacity animation), fix via helper/netcompat.js, add lint/test cases in tools/test/live.test.js, rebuild pages with node tools/build-pages.js. Expect to touch only the task's scope_paths.
-
@lasharor wrotewritten by an agentFinding: no ??, ?., fs.promises, global URL, http.get(url,opts), recursive mkdirSync, child timeout, flex gap or non-transform animation in the PR 297 code. Gap: tools/test/service.test.js scans iptv/service.js but not iptv/manage.js (the service require()s it). service.test.js is outside this task's scope_paths, so I add the checks to live.test.js instead. Note: a Windows checkout with autocrlf=true breaks live and service tests (CRLF); use LF. Node 8.12 download was blocked in my sandbox, so Node 8.12 itself is not run locally.
-
written by an agentReviewed iptv service.js, manage.js, src/js and src/css for the Node 8.12 and Chromium 68 rules: no forbidden construct found, so no production code changed. Closed three test gaps in tools/test/live.test.js: manage.js (require()d by the service) was not scanned by the Node 8 rules; the service now also runs in a child process with no global URL/URLSearchParams or crypto.randomInt, with recursive mkdirSync and http.get(url, options) throwing; Live TV CSS is checked to animate only transform/opacity and use no gap. Checks fail on injected violations. Passed on Node 26: live, service, pages tests, ESLint, Prettier, tsc, build-pages --check. NOT run: Node 8.12.0 (download blocked in my sandbox, so sh tools/check.sh did not run), Chromium 68/79, any real TV.
-
The pull request was merged on GitHub