Skip to content

Support relative size assertions #10

Description

@simonihmig

Currently the addon supports only absolute size assertions. From the beginning of working on this I had the idea that supporting relative assertions (e.g. max increase of 1%) would be really cool, but semantics and implementation is not clear to me yet:

  • Compare the current size to what?
    • previous commit? (useless with a git style of having many small commits)
    • master branch
    • previous release (git tag matching /v\d+\.\d+\.\d+/)
  • how to get that previous size?
    • recalculate each and every time by checkout out the old git commit and running the build again (slow)
    • somehow persist the history of calculated sizes?
      • but where? In git, but how to automate that this gets checked in? Somewhere externally? (don't want to operate any kind of infrastructure for it, eventually privacy issues)
      • would allow some even cooler features, like a complete size history / charts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions