Skip to content

fix(dev): fix simple-zstd v2 API breakage in webpack proxy config#39138

Closed
michael-s-molina wants to merge 1 commit intoapache:masterfrom
michael-s-molina:fix/zstd-decompress-proxy
Closed

fix(dev): fix simple-zstd v2 API breakage in webpack proxy config#39138
michael-s-molina wants to merge 1 commit intoapache:masterfrom
michael-s-molina:fix/zstd-decompress-proxy

Conversation

@michael-s-molina
Copy link
Copy Markdown
Member

SUMMARY

#38662 bumped simple-zstd from 1.4.2 to 2.1.0. That version is a breaking release that renamed ZSTDDecompress to decompress and made it async (returns a Promise<stream> instead of a stream directly).

This caused the webpack dev proxy to crash when the backend responds with content-encoding: zstd:

  • TypeError: ZSTDDecompress is not a function
  • Then TypeError: dest.on is not a function (when trying to pipe into a Promise)

Fix:

  • Update import from ZSTDDecompress to decompress
  • Make processHTML async and await the decompress() call so a proper stream is returned before piping

Caused by: #38662

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A

TESTING INSTRUCTIONS

  1. Start the Superset backend
  2. Run npm run dev in superset-frontend/
  3. Navigate to http://localhost:9000/login/ — should load without proxy errors in the console

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@bito-code-review
Copy link
Copy Markdown
Contributor

bito-code-review Bot commented Apr 6, 2026

Code Review Agent Run #754863

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 18a5c02..18a5c02
    • superset-frontend/webpack.proxy-config.js
  • Files skipped - 0
  • Tools
    • Eslint (Linter) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

simple-zstd v2 renamed ZSTDDecompress to decompress and made it async.
Update the import and await the call in processHTML to get a proper stream.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.52%. Comparing base (d796543) to head (d76ed19).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #39138   +/-   ##
=======================================
  Coverage   64.52%   64.52%           
=======================================
  Files        2536     2536           
  Lines      131208   131208           
  Branches    30457    30457           
=======================================
  Hits        84661    84661           
  Misses      45084    45084           
  Partials     1463     1463           
Flag Coverage Δ
javascript 66.06% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

michael-s-molina added a commit to michael-s-molina/superset that referenced this pull request Apr 6, 2026
…t-frontend

Reverts apache#38662. The v2 bump introduced breaking API changes
that caused npm run dev-server to stop working. Even with the fixes in
apache#39138 the application was still freezing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@michael-s-molina
Copy link
Copy Markdown
Member Author

Closing in favor of #39139

@bito-code-review
Copy link
Copy Markdown
Contributor

bito-code-review Bot commented Apr 6, 2026

Code Review Agent Run #2ee983

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: d76ed19..d76ed19
    • superset-frontend/webpack.proxy-config.js
  • Files skipped - 0
  • Tools
    • Eslint (Linter) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants