Skip to content

Upstream the Vinext lint fixes and remove the ecosystem CI patch #3639

Todo

Description

@fengmk2

The Vinext ecosystem job applies ecosystem-ci/vinext-oxlint.patch so the pinned checkout passes its strict lint check with Oxlint 1.96.0. The same seven diagnostics reproduce on Vinext commit b8bb9e5. CI patch · Failing job

  • After the Vite+ release that includes feat(deps): upgrade upstream dependencies #3633, open a PR in cloudflare/vinext against that release. Remove the redundant array-length guard in import-meta-url.ts so the first autofix keeps the four switch suppressions aligned. Cover the two intentional React class/interface merges in document.tsx and remove the redundant quote escape in cloudflare-cdn-cache.test.ts. Link the upstream PR here.
  • Once the upstream fix merges, update the Vinext commit in ecosystem-ci/repo.json. Delete ecosystem-ci/vinext-oxlint.patch and its git apply call in ecosystem-ci/patch-project.ts.
  • Confirm the Vinext ecosystem job passes its strict check and unit-test shard on the updated commit.

Vite 8.4.1 plugin hooks

The Vite upgrade in #3651 made the options argument required for load and transform. PR #3654 adapts the pinned Vinext tests. Failing job

  • Open a PR in cloudflare/vinext to pass options when tests call these hooks directly. Update the og-harfbuzz test helper to use the plugin’s handler type. Check against the Vite+ release that includes feat(deps): upgrade Vite to 8.4.1 #3651 and link the upstream PR here.
  • After the upstream fix merges, update the Vinext pin in ecosystem-ci/repo.json to a commit that includes it. Remove ecosystem-ci/vinext-vite-hook-options.patch and its argument in ecosystem-ci/patch-project.ts. Confirm the Linux Vinext job passes its strict check and unit-test shard without this patch.

Activity

  1. self-assigned this
    on Dec 1, 2026
  2. added theissue type on Dec 1, 2026
  3. voidzero-bot commented on Dec 1, 2026

    @voidzero-bot
    Contributor
    • Reproduced: Skipped — not-actionable (maintenance/tracking checklist, not a Vite+ bug report)
    • Exploration: Partial
    • Unit Test: No — no Vite+ code change was made; the actionable items live in the external cloudflare/vinext repository and in files not present on the current checkout
    • Priority: Priority P1: chore. This is internal CI/maintenance coordination work — it does not change user-facing behavior, and the Vite+ ecosystem job already passes via the existing vinext-oxlint.patch workaround.

    This issue is a maintenance checklist rather than a bug: it tracks upstreaming three lint fixes to cloudflare/vinext and then dropping the ecosystem-ci/vinext-oxlint.patch workaround. Two key observations from exploration: the patch and its git apply call do not exist on the current main — they were added by commit 40ff2032d ("fix(ci): adapt the Vinext fixture to Oxlint 1.96"), which currently lives only on the unmerged origin/deps/upstream-update branch (and that branch is also the only one bundling Oxlint 1.96.0; current main ships 1.95.0). The premise is otherwise still current: a clone of cloudflare/vinext at b8bb9e5 (its current HEAD) confirmed all three fix targets are present verbatim upstream — the redundant importMetaRanges.length > 0 guard in packages/vinext/src/plugins/import-meta-url.ts:551, the two uncovered class/interface merges in packages/vinext/src/shims/document.tsx, and the redundant quote escape in tests/cloudflare-cdn-cache.test.ts:327.

    I wasn't able to find a fix, but I identified some areas that may be relevant. The first checklist item requires opening a PR in the external cloudflare/vinext repository (blocked on a Vite+ release including #3633), which is outside what automated triage can do. Once that upstream PR merges, the Vite+ side is mechanical: bump "vinext".hash in ecosystem-ci/repo.json, delete ecosystem-ci/vinext-oxlint.patch, and revert the execFileSync('git', ['apply', ...]) block (including the execFileSync import added to the node:child_process import line) from ecosystem-ci/patch-project.ts — noting these changes must land on a tree that actually contains 40ff2032d.

    Full Triage Report

    Triage report — gh-3639 (reproduce stage)

    Issue summary

    The issue tracks three follow-up items around ecosystem-ci/vinext-oxlint.patch (introduced in commit 40ff2032d, "fix(ci): adapt the Vinext fixture to Oxlint 1.96"):

    1. Open a PR in cloudflare/vinext (against a Vite+ release that includes feat(deps): upgrade upstream dependencies #3633) with the upstream lint fixes: remove the redundant array-length guard in import-meta-url.ts, cover the two React class/interface merges in document.tsx, and remove the redundant quote escape in cloudflare-cdn-cache.test.ts.
    2. After that upstream PR merges, bump the Vinext hash in ecosystem-ci/repo.json and delete ecosystem-ci/vinext-oxlint.patch plus its git apply call in ecosystem-ci/patch-project.ts.
    3. Confirm the Vinext ecosystem job passes on the updated commit.

    Expected behavior (per the issue): the lint fixes live upstream in Vinext and Vite+ drops its CI workaround patch. Actual behavior today: the workaround patch exists (on an unmerged branch) and the pinned Vinext checkout fails its strict Oxlint check without it.

    Environment

    Component Version / value
    Vite+ checkout ccd37c3eb ("feat(pack): generate declarations with bundled tsrs without typescript (#3433)"), branch triagebot/fix-3639
    vp --version v1.8.0 — bundles oxlint v1.95.0 (not 1.96.0), vite 8.4.0, vitest 5.1.1
    Node.js v24.22.3
    pnpm v12.11.2
    OS Linux x86_64 (Ubuntu, Azure runner)

    Findings on the current checkout

    • ecosystem-ci/vinext-oxlint.patch does not exist on the current checkout (HEAD ccd37c3eb). It was added by commit 40ff2032d4607d1b3e4340335b75cec893151922 ("fix(ci): adapt the Vinext fixture to Oxlint 1.96"), which is not an ancestor of HEAD and only exists on the remote branch origin/deps/upstream-update. The git apply call in ecosystem-ci/patch-project.ts referenced by the issue is likewise absent from the current patch-project.ts (its vinext block still contains the older minimumReleaseAge, no-meaningless-void-operator, and .gitignore patches).
    • ecosystem-ci/repo.json pins vinext at b0f179fdbe53143c60edbd892e596d3d69607381, i.e. the removal/bump in checklist item 2 has not happened.
    • The current checkout's bundled Oxlint is 1.95.0, so the reported 1.96.0-driven diagnostics cannot even be triggered with the tools shipped by the current checkout.

    Commands attempted

    git log --oneline --all -- ecosystem-ci/vinext-oxlint.patch
    # 40ff2032d fix(ci): adapt the Vinext fixture to Oxlint 1.96
    
    git merge-base --is-ancestor 40ff2032d HEAD && echo ancestor || echo "NOT ancestor"
    # NOT ancestor of HEAD   (only on origin/deps/upstream-update)
    
    git show 40ff2032d:ecosystem-ci/vinext-oxlint.patch
    # shows the 7-diagnostic workaround: array-length guard removal in
    # packages/vinext/src/plugins/import-meta-url.ts, 2x
    # typescript/no-unsafe-declaration-merging suppressions in
    # packages/vinext/src/shims/document.tsx, redundant quote escape fix in
    # tests/cloudflare-cdn-cache.test.ts
    
    vp --version   # vp v1.8.0, bundled oxlint v1.95.0
    
    git ls-remote https://github.com/cloudflare/vinext.git
    # HEAD = b8bb9e5b2297b08f7c62f9d2d3830a0a097915af  (the commit named in the issue)
    
    git clone https://github.com/cloudflare/vinext.git /tmp/vite-plus-triage/gh-3639/repro/vinext
    git -C .../vinext checkout b8bb9e5b2297b08f7c62f9d2d3830a0a097915af  # ok

    Verification of the premise (Vinext @ b8bb9e5)

    Cloned cloudflare/vinext and checked out b8bb9e5 ("fix(optimize-imports): pick the barrel entry in the package's exports key order (#4851)"). All code states named by the issue/patch are present upstream:

    • packages/vinext/src/plugins/import-meta-url.ts:551 still has the redundant if (importMetaRanges.length > 0) guard, and the file contains 4 oxlint-disable suppressions whose alignment the issue says the first autofix breaks.
    • packages/vinext/src/shims/document.tsx has both intentional class/interface merges (interface Head at :55 + class Head extends React.Component at :59, interface NextScript at :131 + class NextScript at :135) with no typescript/no-unsafe-declaration-merging suppressions (0 occurrences).
    • tests/cloudflare-cdn-cache.test.ts:327 still contains the redundant double-escaped string 'foo="a\\\",max-age=5"'.

    Vinext's strict lint config is confirmed in its vite.config.ts (lint.options: typeAware: true, typeCheck: true, denyWarnings: true; lint script is vp lint), matching the "strict check" description.

    I did not run Vinext's lint here: reproducing the seven diagnostics requires Oxlint 1.96.0, which only the unmerged origin/deps/upstream-update branch of Vite+ bundles (current checkout ships 1.95.0), and the actionable items require opening a PR in the external cloudflare/vinext repository — outside what this reproduce stage may do.

    Control

    The current checkout itself is the control: the reported CI-patch state (vinext-oxlint.patch + its git apply call) is absent, and the bundled Oxlint (1.95.0) predates the 1.96.0 upgrade, so the described failure mode is not reproducible from this checkout as-is.

    Result

    Skipped — not-actionable.

    • This is a Task (maintenance/tracking checklist), not a Vite+ bug report: no incorrect Vite+ behavior is reported; Vite+'s side is an intentional CI workaround awaiting an upstream fix in cloudflare/vinext.
    • Checklist item 1 requires opening a PR in the external cloudflare/vinext repository and is blocked on a Vite+ release that includes feat(deps): upgrade upstream dependencies #3633; items 2–3 depend on item 1 and on files (ecosystem-ci/vinext-oxlint.patch, its git apply call) that are not present on the current checkout — they exist only on the unmerged origin/deps/upstream-update branch.
    • No Vite+ code change can be validated in this stage.

    Observations for diagnosis (no fix proposed)

    • The premise is factually confirmed upstream: all three lint-fix targets exist verbatim at Vinext b8bb9e5 (current upstream HEAD), so the issue is still current.
    • The Vite+ side of the work is purely mechanical once the upstream PR merges: bump "vinext".hash in ecosystem-ci/repo.json and drop the patch file and the execFileSync('git', ['apply', ...vinext-oxlint.patch...]) block added by 40ff2032d — but only on a tree that actually contains 40ff2032d (currently origin/deps/upstream-update, not main).
    • Note the patch path in 40ff2032d uses import.meta.dirname; on merge, removal must also revert the execFileSync import added to the node:child_process import line.

    Issue classification

    • issueType: Task
    • reproducible: false
    • skipped: true — reason: not-actionable (not a Vite+ bug report; tracking issue for upstream work in an external repository, with the referenced patch not present on the current checkout)

    This report was made by an LLM. The analysis may be wrong, and the potential fix might not work, but is intended as a starting point for exploring the issue.

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

Metadata

Metadata

Assignees

Type

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions