-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deps: update axe-core to 3.4.1 #10056
deps: update axe-core to 3.4.1 #10056
Conversation
Upgrading the dependency here pushes the Error snippets from the build log:
|
lighthouse-cli/test/smokehouse/test-definitions/a11y/expectations.js
Outdated
Show resolved
Hide resolved
@brendankenny @patrickhulce From the test failures in this PR, upgrading I'm not going to push any commits which change build limits, so was wondering if there's a good way to resolve the failure in order to unblock the version bump? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much for the PR @jayaddison!
Hm, that's a fairly substantial increase for 3.4.0, an extra ~60KB minified script (13KB gzipped) :/
Is there something in this release particularly compelling to warrant the increase? If not, I'd be inclined to skip and see if we can require in smaller pieces or work to find some bundle size wins in axe-core for the next version.
Just noting we also need to mark aria-roledescription
as unused or create an audit for it before landing.
lighthouse-cli/test/smokehouse/test-definitions/a11y/expectations.js
Outdated
Show resolved
Hide resolved
@patrickhulce Thanks for the quick response! For the use case I'm looking at, it fixes an accessibility false-positive (dequelabs/axe-core#1688). The aria spec considers a I hadn't noticed that the size increase was so significant; let me dig around and see if I can figure out what happened there. |
@patrickhulce It looks like the majority of the bundle size increase is from locale data, much of which is new in 3.4.0. From a slightly unscientific dir-by-dir diff and sort:
(identical file sizes omitted) Let me see if the additional locale data would benefit |
@patrickhulce FWIW, another line of possibility is a change in one of https://github.com/dequelabs/axe-core/blob/v3.3.0/package.json#L89 This seems to result in a good chunk of extra code (basically an inlined import) in the output |
(didn't find anything conclusive on either of those, so some |
Ok, my mistake earlier - in fact it is dequelabs/axe-core#1829 that lead to the marked size increase in I'm still doing a little more investigation into the precise cause within that PR, and the value of the change to |
@patrickhulce Alright, yep - I've confirmed locally that it's the introduction of core-js in Taking some time out here, but glad to help with any further investigation. |
FWIW I don't think 60KB is a dealbreaker, I just want to make sure we're getting something out of this tradeoff. The higher priority issue IMO is the now never-failing audit, really appreciate the investigation though we'd always like to help axe folks out with perf when we can :) FYI @exterkamp apparently axe has a decent amount of locale data these days we might want to figure out how to leverage in our i18n'ing efforts. |
@patrickhulce All makes sense, yep. I think IIRC sometimes lighthouse displays grayed out advisory items which need to be checked manually? If it's reasonably possible to transform the I didn't find any functional references to the |
@jayaddison Incomplete can also mean the rule threw an error, in which case we report the error in the message of the incomplete result (using the properties |
@straker Neat, thanks for the context. Sounds like there's larger scope for comprehensively handling |
alright this should be unblocked now with #10072 merging! a simple rebase and we should be good to go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks so much for sticking with this @jayaddison I know it was a slog! 🎉 💯
@patrickhulce Sometimes felt like I've been aiming for a record commit-to-line-diff ratio :) Just one more
Looking into this currently. |
I believe #10270 should resolve the type check failures. I'm leaning on CI a little, having run some but not all tests locally. |
Summary
Updates
axe-core==3.4.1
following its release on 2019-12-18 (release tag).