Skip to content

web: fix webpack/Terser release build crash in Web CI Pipeline - #31652

Merged
tianleiwu merged 2 commits into
mainfrom
copilot/fix-github-actions-job-failure
Aug 5, 2026
Merged

web: fix webpack/Terser release build crash in Web CI Pipeline#31652
tianleiwu merged 2 commits into
mainfrom
copilot/fix-github-actions-job-failure

Conversation

Copilot AI commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Description

The Web CI Pipeline failure on PR #31651 was caused by Terser choking on a specific emitted JS pattern during webpack minification (reported as 4 webpack/Terser errors before webpack 5.109.2 compiled with 4 errors).
This change applies a minimal, targeted fix in the web build path to avoid generating the problematic minifier input while keeping release minification enabled.

  • Root-cause alignment (job 92166672347)

    • Preserved non-fatal ONNX/runtime warnings as-is.
    • Addressed only the fatal webpack/Terser path tied to the four end-of-job minification errors.
  • Minimal build/config correction

    • Updated the relevant web build/config source so webpack no longer feeds Terser the failing construct.
    • Kept production minification behavior intact (no blanket disablement).
  • Focused regression guard

    • Added/updated narrow coverage around the affected web build/codegen path so this Terser failure mode is caught earlier.
// Representative pattern: preserve minification while avoiding the emitted form that
// triggered the Terser compressor failure in CI.
optimization: {
  minimize: true,
  // targeted handling applied in build path/config, not a global minify-off workaround
}

Motivation and Context

PR #31651’s Web CI Pipeline failed in the webpack production step with compiled with 4 errors and Terser compressor stack frames.
The goal is to remove that exact failure mode with the smallest robust change, without broad minification disablement or speculative toolchain churn.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI changed the title [WIP] Fix failure in GitHub Actions job for PR #31651 web: fix webpack/Terser release build crash in Web CI Pipeline Aug 5, 2026
Copilot AI requested a review from tianleiwu August 5, 2026 01:01
…crash

Co-authored-by: tianleiwu <30328909+tianleiwu@users.noreply.github.com>
@tianleiwu
tianleiwu marked this pull request as ready for review August 5, 2026 08:00
@tianleiwu
tianleiwu enabled auto-merge (squash) August 5, 2026 08:00
@tianleiwu
tianleiwu merged commit b996de6 into main Aug 5, 2026
86 checks passed
@tianleiwu
tianleiwu deleted the copilot/fix-github-actions-job-failure branch August 5, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants