Skip to content

chore(deps): catch up all frontend and Python dependencies at once - #118

Merged
jctanner merged 2 commits into
mainfrom
deps-catchup
Nov 21, 2026
Merged

jctanner merged 2 commits into
mainfrom
deps-catchup

Conversation

@jctanner

Copy link
Copy Markdown
Collaborator

One combined dependency catch-up in place of the stacked dependabot queue (the lockfile-conflict treadmill: #45/#46/#48/#49/#51 and the newer wave all touch the same lockfiles and conflict with each other).

What's bumped

Frontend (package.json + regenerated lock) — everything to latest:

  • vitest 4.1.12 → 5.1.1, jsdom 31.0.0 → 31.0.1, @types/node 24 → 26.6.6
  • vite 8.3.6 → 8.3.8, @vitejs/plugin-react 5 → 6.3.0, prettier → 3.10.1
  • eslint 9.x latest, @eslint/js 9.x latest, eslint-plugin-react-hooks 6.x latest, eslint-plugin-react-refresh, testing-library pair (jest-dom 8, react 16.3.3), typescript-eslint 8.73, openapi-typescript 7.13, globals
  • runtime deps: dompurify 3.4.18, marked 18.2.1, react-router-dom 7.18.6

Held back deliberately:

  • typescript at 5.9.3 — openapi-typescript peers on typescript@^5.x; TS 7 (the native rewrite) needs the ecosystem to catch up
  • eslint 10 + eslint-plugin-react-hooks 7 — the pair is mutually compatible but react-hooks 7's new rules (react-hooks/refs, set-state-in-effect) flag 11 pre-existing component patterns that need code fixes, not a deps PR. Follow-up issue filed; bump them together with those fixes.

Python (uv lock --upgrade, within existing ranges): fastapi 0.162 → 0.165.0, sqlalchemy 2.1.6 → 2.1.9, strawberry-graphql 0.339 → 0.341.2, pyyaml 6.0.4, httpx/uvicorn/certifi and friends at their latest in-range versions. bcrypt stays 4.0.1 — its <5-style cap needs a manifest change plus passlib compatibility work (that's dependabot #65's job, kept separate).

Out of scope on purpose: node:22-slim → 25-slim and the GitHub-Action majors (download-artifact 8, github-script 9, docker/* v4-6) — those change the build/CI machinery itself and belong in their own PR. The runner-image Ubuntu bases are pinned by policy (#104 / issue #102).

Validation (all run locally on this head)

  • eslint clean, tsc -b clean, prettier --check clean
  • vitest run: 24 files, 89/89 tests passed
  • vite build succeeds
  • npm audit: 0 vulnerabilities
  • full Python suite: 1562/1562 passed (including the frontend-dist security-headers test, since npm run build was run, and both historically flaky test_webhook_delivery/test_runner_lost_handout tests)

Aftermath

Once this merges, the open dependabot lockfile PRs are superseded (their manifests already satisfied) and can be closed; the weekly drip resumes at its normal one-at-a-time cadence.

One combined bump in place of the stacked dependabot queue: every frontend
dependency to its latest (vitest 5, jsdom 31, @types/node 26, vite 8.3.8,
@vitejs/plugin-react 6, prettier 3.10, eslint 9.x latest, testing-library
updates; typescript held at 5.9 because openapi-typescript peers on ^5.x,
and the eslint 10 + react-hooks 7 pair held back — see the follow-up issue)
and the Python lock upgraded within its ranges (fastapi 0.165, sqlalchemy
2.1.9, strawberry 0.341, pyyaml 6.0.4, ...). bcrypt stays 4.0.1: its range
cap needs a manifest change (dependabot #65).

Validated locally: eslint, tsc, vitest 89/89, vite build, prettier,
npm audit 0 vulnerabilities; full Python suite 1562/1562.

Signed-off-by: James Tanner <jtanner+github@redhat.com>
@qodo-code-review

qodo-code-review Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Catch up frontend and Python dependencies in one PR

⚙️ Configuration changes 🕐 20-40 Minutes

Grey Divider

AI Description

• Refresh frontend dependencies and both lockfiles in one change to avoid conflicting dependency
 PRs.
• Upgrade Python packages within existing ranges while deferring incompatible major versions and
 bcrypt.
• Preserve application code; reported local validation passes frontend checks and the full Python
 suite.
Merge Risk 🟡 Medium

Blast radius 🔴 High 💥 2 capabilities

  • 2 affected capabilities span independent functional scopes: GitHub emulator web interface, GitHub-compatible emulator backend.
  • The changed runtime packages are consumed by the single bundled React application: react-router-dom is imported across application routes, while marked and DOMPurify support Markdown rendering and sanitization and highlight.js supports code presentation.
  • These are implementation surfaces of one end-to-end web interface rather than independent capabilities.
  • FastAPI, Pydantic, Starlette, SQLAlchemy, GraphQL, and Uvicorn are shared runtime infrastructure for the emulator HTTP/API application.
  • The affected outcome is the backend's GitHub-compatible request handling as one bounded integration; framework propagation is represented as a path rather than separate capabilities.
Sources

Dockerfile[1-7]

FROM node:22-slim AS frontend-build

WORKDIR /frontend
COPY src/frontend/package.json src/frontend/package-lock.json ./
RUN npm ci
COPY src/frontend/ ./
RUN npm run build
Behavioral complexity 🟡 Medium 🧩 Compatibility cases

  • Before: the application was built and tested against the previous pinned frontend dependency graph.
  • After: the full PR selects newer runtime and build packages, while the follow-up pins DOMPurify and marked to the selected direct versions.
  • New correctness condition: the upgraded packages must remain mutually compatible with the existing imports, route definitions, parser/sanitizer hooks, and Node 22 production build, and repeated installs must resolve the same direct versions.
  • No new application branches, state machine, algorithm, or concurrency protocol is introduced; the complexity remains third-party compatibility across the build and browser runtime.
Sources

src/frontend/package.json[17-43]

    "dompurify": "3.4.18",
    "highlight.js": "11.12.0",
    "marked": "18.2.1",
    "openapi-fetch": "^0.17.0",
    "react": "^19.3.1",
    "react-dom": "^19.3.1",
    "react-router-dom": "^7.18.6"
  },
  "devDependencies": {
    "@eslint/js": "^9.39.5",
    "@testing-library/jest-dom": "^8.0.0",
    "@testing-library/react": "^16.3.3",
    "@types/node": "^26.6.6",
    "@types/react": "^19.3.0",
    "@types/react-dom": "^19.3.0",
    "@vitejs/plugin-react": "^6.3.0",
    "eslint": "^9.39.5",
    "eslint-plugin-react-hooks": "^6.1.1",
    "eslint-plugin-react-refresh": "^0.5.8",
    "globals": "^17.14.0",
    "jsdom": "^31.0.1",
    "openapi-typescript": "^7.13.0",
    "prettier": "^3.10.1",
    "typescript": "^5.9.3",
    "typescript-eslint": "^8.73.0",
    "vite": "^8.3.8",
    "vitest": "^5.1.1"

Dockerfile[1-7]

FROM node:22-slim AS frontend-build

WORKDIR /frontend
COPY src/frontend/package.json src/frontend/package-lock.json ./
RUN npm ci
COPY src/frontend/ ./
RUN npm run build
Potential damage 🟡 Medium 🩹 Temporary loss

  • A build or browser startup failure makes the web interface temporarily unavailable; a narrower routing or rendering regression can disable specific navigation or presentation behavior.
  • Reverting the dependency changes and rebuilding restores the artifact, and no persistent application state is introduced by these frontend packages.
  • The follow-up pinning improves repeatability but does not change the current activated scope.
  • Recoverable by restoring the prior package manifest/lockfile and rebuilding or redeploying the frontend image.
  • If only a deployed static artifact is affected, rollback requires a prior image or a fresh successful build; no database repair or external compensation is indicated.
Sources

src/frontend/package.json[17-43]

    "dompurify": "3.4.18",
    "highlight.js": "11.12.0",
    "marked": "18.2.1",
    "openapi-fetch": "^0.17.0",
    "react": "^19.3.1",
    "react-dom": "^19.3.1",
    "react-router-dom": "^7.18.6"
  },
  "devDependencies": {
    "@eslint/js": "^9.39.5",
    "@testing-library/jest-dom": "^8.0.0",
    "@testing-library/react": "^16.3.3",
    "@types/node": "^26.6.6",
    "@types/react": "^19.3.0",
    "@types/react-dom": "^19.3.0",
    "@vitejs/plugin-react": "^6.3.0",
    "eslint": "^9.39.5",
    "eslint-plugin-react-hooks": "^6.1.1",
    "eslint-plugin-react-refresh": "^0.5.8",
    "globals": "^17.14.0",
    "jsdom": "^31.0.1",
    "openapi-typescript": "^7.13.0",
    "prettier": "^3.10.1",
    "typescript": "^5.9.3",
    "typescript-eslint": "^8.73.0",
    "vite": "^8.3.8",
    "vitest": "^5.1.1"

Dockerfile[1-7]

FROM node:22-slim AS frontend-build

WORKDIR /frontend
COPY src/frontend/package.json src/frontend/package-lock.json ./
RUN npm ci
COPY src/frontend/ ./
RUN npm run build
Assessed commit f6f2f08
Diagram

graph TD
  A["Frontend manifest"] --> B["npm lockfile"] --> C["Frontend dependencies"] --> G(["Validation suites"])
  D["Python constraints"] --> E["uv lockfile"] --> F["Backend dependencies"] --> G
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Separate frontend and Python upgrades
  • ➕ Smaller reviews and easier isolation if a test fails.
  • ➕ The two ecosystems use different lockfiles.
  • ➖ Requires coordinating two PRs instead of clearing the dependency queue at once.

Recommendation: Keep the combined upgrade: it resolves the competing frontend lockfile changes together, and the reported frontend and Python validation covers the wider scope. Leave tooling majors that require code changes and bcrypt compatibility work for their planned follow-ups.

Files changed (3) +859 / -879

Other (3) +859 / -879
package.jsonRaise frontend runtime and development dependency ranges +19/-19

Raise frontend runtime and development dependency ranges

• Updates application, build, lint, typing, and test dependencies, including Vitest 5 and the React Vite plugin 6. Keeps TypeScript on 5.9 and ESLint/react-hooks on compatible existing major versions.

src/frontend/package.json

package-lock.jsonRegenerate the frontend dependency tree +530/-567

Regenerate the frontend dependency tree

• Locks the new manifest versions and their changed transitive packages, including Vitest's revised dependency tree. Records package metadata and integrity hashes for reproducible installs.

src/frontend/package-lock.json

uv.lockRefresh Python packages within existing constraints +310/-293

Refresh Python packages within existing constraints

• Updates resolved packages including FastAPI, SQLAlchemy, Strawberry GraphQL, Pydantic, and PyYAML, along with their artifact hashes. Leaves the Python manifest and its bcrypt constraint unchanged.

uv.lock

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can add REVIEW.md to your repo root and Qodo follows it on every PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:18 PM UTC · Completed 7:26 PM UTC

Commit: df57200 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.41

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 21, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Dependency and lockfile update across 3 files with large diff volume, anchored to prior moderate risk due to zero protected or CI path changes and moderate commit churn.

Previous run

Risk Assessment: moderate (2/5)

Details

Dependency and lockfile update affecting 3 files with large diff volume, moderate recent commit churn, and no touches to protected, CI, or security-sensitive paths.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Looks good to me

Earlier findings

  • src/frontend/package.json:18, pattern-inconsistency — resolved: the latest commit restores exact pins (dompurify 3.4.18, highlight.js 11.12.0, marked 18.2.1) in package.json and the lockfile root entry, matching the lockfile-resolved versions.
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InBhdHRlcm4taW5jb25zaXN0ZW5jeSIsImZpbGUiOiJzcmMvZnJvbnRlbmQvcGFja2FnZS5qc29uIiwiaWQiOiJmX2JmN2VlZGJmMzdkMDUxZDIiLCJsaW5lIjoxOCwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoic3R5bGUtY29udmVudGlvbnMifV19 -->

Review

Findings

Low

  • [pattern-inconsistency] src/frontend/package.json:18 — dompurify, highlight.js and marked moved from exact pins (3.4.17, 11.12.0, 18.1.3) to caret ranges (^3.4.18, ^11.12.0, ^18.2.1). docs/tasks/done/web-ui-markdown-rendering.md:12 documents marked and DOMPurify (the Markdown renderer and its HTML sanitizer) as pinned to exact versions, and the PR description lists only version bumps, not a change of pinning policy. package-lock.json still fixes the resolved versions, so the exposure is drift on lockfile regeneration or fresh resolution.
    Remediation: Pin dompurify, highlight.js and marked to exact versions ("3.4.18", "11.12.0", "18.2.1") in src/frontend/package.json and regenerate src/frontend/package-lock.json. If the move to ranges is intentional, say so in the PR description and update the docs instead.

Labels: PR updates frontend (npm) and Python (uv) dependencies


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code python:uv Pull requests that update python:uv code labels Nov 21, 2026
The catch-up converted the three exact pins to caret ranges
(npm install @latest --save writes ^). The Markdown renderer and its
sanitizer are pinned exact on purpose (web-ui-markdown-rendering.md);
restore that, at the new versions.

Signed-off-by: James Tanner <jtanner+github@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:07 PM UTC · Completed 8:13 PM UTC

Commit: f6f2f08 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.31

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review November 21, 2026 20:13

Superseded by updated review

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

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code python:uv Pull requests that update python:uv code ready-for-merge All reviewers approved — ready to merge risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant