Skip to content

Conversation

@Boshen
Copy link
Member

@Boshen Boshen commented Oct 15, 2025

max_iterations does not behave like passes, and may change in the future.

It should only be used for debugging purposes, as said on the
comment.

Copilot AI review requested due to automatic review settings October 15, 2025 02:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR renames a field in the CompressOptions struct from passes to max_iterations to better reflect its actual behavior and prevent confusion. The field is used for debugging purposes to limit the maximum number of iterations during minification.

Key changes:

  • Renamed field from passes to max_iterations in the CompressOptions struct
  • Updated the corresponding field mapping in the TryFrom implementation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions github-actions bot added A-minifier Area - Minifier C-bug Category - Bug labels Oct 15, 2025
Copy link
Member Author

Boshen commented Oct 15, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 15, 2025

Merge activity

`max_iterations` does not behave like `passes`, and may change in the future.

It should only be used for debugging purposes, as said on the
comment.
@graphite-app graphite-app bot force-pushed the 10-15-fix_napi_minify_s_passes_max_iterations_to_avoid_confusion branch from 55514f9 to 32a41cf Compare October 15, 2025 02:31
@graphite-app graphite-app bot merged commit 32a41cf into main Oct 15, 2025
18 checks passed
@graphite-app graphite-app bot deleted the 10-15-fix_napi_minify_s_passes_max_iterations_to_avoid_confusion branch October 15, 2025 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-minifier Area - Minifier C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants