Skip to content

[Quality/JS] Make ESLint reproducible and add isolated browser-bridge behavior tests #9

Closed

Description

@Tigon32

Area: quality
Priority: P0
Workflow: triage / ready for scoped planning

Outcome

Finish JS quality work without migrating the runtime to TypeScript or changing its public interface. Keep tooling as development-only.

Acceptance criteria

  • Commit an npm lockfile; use npm ci rather than npm install in CI.
  • Review and pin ESLint/toolchain versions; maintain focused correctness rules and avoid mass formatting.
  • Add targeted Node-based unit tests for key translation, edge cases, loader failures and clipboard/focus using a minimal DOM/WebGL mock.
  • Ensure JS syntax, lint and tests are required in the existing browser CI job.
  • Test past undefined-reference fixes in glDeleteQueries and GL error reporting; maintain no new warnings policy.

Dependencies / existing work

PR #4 merged with initial ESLint. ABI contract provides fixture definitions.

Evidence and constraints

Existing PR #4 fixed two undefined names and five switch warnings and merged. This issue tracks remaining reproducibility and behavioral coverage, not redoing that PR.

Do not close from a passing compiler alone. Link the implementation PR, exact tested revision, checks performed, and remaining browser/runtime limitations at closure.

Activity

  1. Tigon32 commented on Nov 10, 2026

    @Tigon32
    OwnerAuthor

    Reproducibility follow-up (2026-11-10)

    Completed portion: PR #23 merged a version-3 package-lock.json (87 resolved package entries, development-only), changed the required rust-wasm job to npm ci --ignore-scripts --no-audit --no-fund, and ignored node_modules/. A one-shot hosted lockfile job confirmed npm ci and npm run lint:js; the PR-head browser CI also passed (run 42773524070).

    Still open: real bridge behavior fixtures, past-regression tests for glDeleteQueries, loader errors and key/clipboard behavior; compiler/lint passes are not browser runtime qualification. Keep this issue open until the remaining acceptance criteria are demonstrated.

    Audit source used to discover these gaps: fa94814c9f488fe5c8b06afae3c88ca80288a4c9; targeted bridge defects in #8/#15.

  2. Tigon32 commented on Nov 10, 2026

    @Tigon32
    OwnerAuthor

    Reproducibility checkpoint — 2026-11-10

    The lockfile/npm ci part of this issue has been delivered in PR #23, merged as 90818fade7e54469ff598efd8c409537383c2770. The PR's required browser CI passed, including lint. package-lock.json is v3 with 87 package entries, including the pinned ESLint development dependency; npm ci --ignore-scripts avoids unreviewed npm lifecycle scripts.

    Keep this issue open: targeted Node/browser behavior tests, old undefined-ref regression tests, and cross-browser acceptance are outstanding. A green ESLint result does not qualify interaction/loader behavior.

  3. Tigon32 commented on Nov 10, 2026

    @Tigon32
    OwnerAuthor

    2026-11-10 execution slice

    PR #30 merged as 1588e8724a298d4e2973ca45b67b3fcc64c32a02. Required CI now runs a deterministic Node regression test of the actual JS bridge file-drop handler for ASCII, accented, Japanese and emoji filenames and empty bytes. Run 42777817264 passed. Still open: missing-import/version-failure tests, keyboard/focus, clipboard and real browser qualification, along with any acceptance not covered by the focused regression.

  4. Tigon32 commented on Nov 10, 2026

    @Tigon32
    OwnerAuthor

    Verified completion — 2026-11-10

    The JavaScript quality issue acceptance criteria are now covered by merged changes:

    • PR #4: Initial ESLint correctness rules and fixes for both undefined references and switch cases.
    • PR #23: Committed npm lockfile and reproducible npm ci with lifecycle scripts disabled.
    • PR #30, PR #38, PR #39, PR #44: Executable Node regression tests against the actual JS bridge. The tests cover filename UTF-8, loader success and failure, input limits, clipboard/focus and key translation.
    • PR #45: Tests for the earlier GL query-deletion and invalid/deleted handle reporting errors.
    • PR #46: Upgrade from the end-of-life ESLint 9 to the supported 10.14.0 release with regenerated, locked dependencies. Merged commit: 5b60b7db7c7b8ff059d8c823b8185ae7ece5d807.

    Verification: Miniquad integration CI passed on the exact PR #46 head. That run includes npm CI install, ESLint, Node regressions, Rust/WASM checks, and the Chromium WASM smoke test. Terminology CI passed.

    The JavaScript tooling and regression-test scope is complete. Keep full cross-browser runtime validation in #11, GPU/context behavior in #13 and ABI/ownership/fuzzing in #8/#21. Closing #9 does not certify those broader outcomes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions