Skip to content

fix: Ignore unchanged files when calculating delta#142

Merged
rschristian merged 1 commit intomasterfrom
fix/ignore-unchanged-in-delta
Mar 28, 2026
Merged

fix: Ignore unchanged files when calculating delta#142
rschristian merged 1 commit intomasterfrom
fix/ignore-unchanged-in-delta

Conversation

@rschristian
Copy link
Copy Markdown
Member

@rschristian rschristian commented Mar 24, 2026

Closes #137

The delta from within "Unchanged files" isn't supposed to be meaningful, especially as gzip/brotli sizes are not deterministic -- variation of 0-10b is very normal, hence our minimum-change-threshold option. As such, the current behavior becomes a bit problematic in larger apps as (for example) 80 files * 1-10b each results in a sizable delta that doesn't actually exist.

The updated test case is actually a good example of the issue

@github-actions
Copy link
Copy Markdown

Size Change: 0 B

Total Size: 76.1 kB

ℹ️ View Unchanged
Filename Size
index.js 76.1 kB

compressed-size-action

@rschristian rschristian merged commit 5ede6cf into master Mar 28, 2026
2 checks passed
@rschristian rschristian deleted the fix/ignore-unchanged-in-delta branch March 28, 2026 20:40
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.

Total Size Change should be derived purely from 'Changed' files, not all

1 participant