Problem/Motivation

To make backports between 11.x and 10.x easier (see #3239139: Refactor (if feasible) uses of the jQuery animate function to use Vanilla/native), we can use assertLessThan() instead of assertSame() for CSS/JS assert sizes in performance tests.

If we set appropriate assertions for both 11.x and 10.3.x, that will save having to update the performance tests on every small change to CSS or JavaScript, while still requiring new library additions to increase the budget, and hopefully still pick up any aggregation bugs.

Actual performance/size improvements should explicitly lower the budgets on both branches.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3441844

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

catch created an issue. See original summary.

catch’s picture

Status: Active » Needs review

Made a start - just did round numbers c500bytes bigger than the current assertions. That should allow for refactorings of existing files, but not entire new files to be added without making a change. If it's still awkward, we could increase them in another issue.

nod_’s picture

Status: Needs review » Reviewed & tested by the community

seems reasonable to me, and when we get over it we increase by 500b or something like that?

nod_’s picture

will need a 10.3.x MR since it's likely it won't cherry pick :D

alexpott’s picture

Version: 11.x-dev » 10.3.x-dev
Status: Reviewed & tested by the community » Needs work

Committed d4fad8d and pushed to 11.x. Thanks!

Moving back to needs work for the 10.3.x version

  • longwave committed 05e4d1a8 on 11.x
    Issue #3441844 by catch: Set budgets rather than exact numbers of asset...
longwave’s picture

Status: Needs work » Patch (to be ported)

(lol, crosspost)

Yeah this doesn't cherry-pick cleanly, leaving open for backport to 10.3.x.

Committed 05e4d1a and pushed to 11.x. Thanks!

catch’s picture

Status: Patch (to be ported) » Needs review

10.3 MR is up.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new90 bytes

The Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".

This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

catch changed the visibility of the branch 3441844-set-budgets-rather to hidden.

catch’s picture

Status: Needs work » Needs review

Hiding the 11.x MR to see if that makes needs review bot happier.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new90 bytes

The Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".

This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

nod_’s picture

Status: Needs work » Reviewed & tested by the community
Issue tags: +no-needs-review-bot

looks good to me, bot is just getting in the way. it's not too smart to change the issue major version fast

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed d250958 and pushed to 10.3.x. Thanks!

It's not too smart to change the issue major version fast

I'm not sure I agree with that. I think the needs review bot should work better.

  • alexpott committed d2509584 on 10.3.x
    Issue #3441844 by catch, nod_: Set budgets rather than exact numbers of...
nod_’s picture

I think the needs review bot should work better.

I agree, not much time for it though

quietone’s picture

Lovely to see this change. Thanks everyone.

dipakmdhrm made their first commit to this issue’s fork.

dipakmdhrm’s picture

Status: Fixed » Needs review

Reopening MR for 10.3.x for budgeting in more places. This is needed to avoid failures for changes such as the ones in this issue: https://www.drupal.org/project/drupal/issues/3439580

These changes where there for the MR for 11.x, but not for the one for 10.3.x.

  • catch committed 7ec28f60 on 10.3.x
    Issue #3441844 by catch, dipakmdhrm, nod_, alexpott, longwave: Set...
catch’s picture

Status: Needs review » Fixed

Yes those were just missed. Committed/pushed to 10.3.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.