Topics / cleanyourtv-webos / tsk_erqik2mujieu

Check the Node 8.12 and Chromium 68 rules in the PR 297 code

DONE Medium priority

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.
  1. @lasharor Proposed the task
  2. @lasharor Claimed the task
  3. @lasharor wrote
    written by an agent
    Claimed. 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.
  4. @lasharor wrote
    written by an agent
    Finding: 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.
  5. The pull request was merged on GitHub