Skip to content
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

Check package.json health #7100

Closed
wants to merge 1 commit into from
Closed

Check package.json health #7100

wants to merge 1 commit into from

Conversation

mxdvl
Copy link
Contributor

@mxdvl mxdvl commented Feb 1, 2023

What does this change?

Why?

We have started to see the issues related to dependencies:

Screenshots

image

See full run: https://github.com/guardian/dotcom-rendering/actions/runs/4063074923/jobs/6994876002

@mxdvl mxdvl added Dependencies Pull requests that update a dependency file Health labels Feb 1, 2023
@mxdvl mxdvl requested a review from a team as a code owner February 1, 2023 09:55
@mxdvl mxdvl force-pushed the mxdvl/better-package-json branch from 38e33ef to d8b2b62 Compare February 1, 2023 09:55
@github-actions
Copy link

github-actions bot commented Feb 1, 2023

Size Change: -3 B (0%)

Total Size: 506 kB

ℹ️ View Unchanged
Filename Size Change
dotcom-rendering/dist/116.modern.********************.js 3.84 kB 0 B
dotcom-rendering/dist/1917.modern.********************.js 2.53 kB 0 B
dotcom-rendering/dist/2136.modern.********************.js 3.11 kB 0 B
dotcom-rendering/dist/2153.modern.********************.js 1.89 kB 0 B
dotcom-rendering/dist/3033.modern.********************.js 3.16 kB 0 B
dotcom-rendering/dist/344.modern.********************.js 11.6 kB 0 B
dotcom-rendering/dist/397.modern.********************.js 2.65 kB 0 B
dotcom-rendering/dist/3993.modern.********************.js 6.21 kB 0 B
dotcom-rendering/dist/4180.modern.********************.js 5.13 kB 0 B
dotcom-rendering/dist/4235.modern.********************.js 8.77 kB 0 B
dotcom-rendering/dist/4331.modern.********************.js 3.36 kB 0 B
dotcom-rendering/dist/4730.modern.********************.js 3.62 kB 0 B
dotcom-rendering/dist/4946.modern.********************.js 3.56 kB 0 B
dotcom-rendering/dist/5153.modern.********************.js 2.28 kB 0 B
dotcom-rendering/dist/516.modern.********************.js 17.3 kB 0 B
dotcom-rendering/dist/5237.modern.********************.js 2.44 kB 0 B
dotcom-rendering/dist/6297.modern.********************.js 21.3 kB 0 B
dotcom-rendering/dist/6345.modern.********************.js 4.68 kB 0 B
dotcom-rendering/dist/6429.modern.********************.js 3.5 kB 0 B
dotcom-rendering/dist/6939.modern.********************.js 5.28 kB 0 B
dotcom-rendering/dist/729.modern.********************.js 4.26 kB 0 B
dotcom-rendering/dist/7392.modern.********************.js 2.49 kB 0 B
dotcom-rendering/dist/7679.modern.********************.js 4.36 kB 0 B
dotcom-rendering/dist/7864.modern.********************.js 23.3 kB 0 B
dotcom-rendering/dist/7872.modern.********************.js 1.89 kB 0 B
dotcom-rendering/dist/9861.modern.********************.js 3.5 kB 0 B
dotcom-rendering/dist/AlreadyVisited-importable.modern.********************.js 411 B 0 B
dotcom-rendering/dist/AnimatePulsingDots-importable.modern.********************.js 387 B 0 B
dotcom-rendering/dist/atomIframe.modern.********************.js 513 B 0 B
dotcom-rendering/dist/AudioAtomWrapper-importable.modern.********************.js 466 B 0 B
dotcom-rendering/dist/Branding-importable.modern.********************.js 2.18 kB 0 B
dotcom-rendering/dist/braze-web-sdk-core.modern.********************.js 36.9 kB 0 B
dotcom-rendering/dist/BrazeMessaging-importable.modern.********************.js 4.96 kB 0 B
dotcom-rendering/dist/CalloutBlockComponent-importable.modern.********************.js 6.05 kB 0 B
dotcom-rendering/dist/CalloutEmbedBlockComponent-importable.modern.********************.js 7.08 kB 0 B
dotcom-rendering/dist/Carousel-importable.modern.********************.js 5.26 kB 0 B
dotcom-rendering/dist/ChartAtomWrapper-importable.modern.********************.js 475 B 0 B
dotcom-rendering/dist/CommentCount-importable.modern.********************.js 2.81 kB 0 B
dotcom-rendering/dist/discussion.modern.********************.js 393 B 0 B
dotcom-rendering/dist/DiscussionContainer-importable.modern.********************.js 4.07 kB 0 B
dotcom-rendering/dist/DiscussionMeta-importable.modern.********************.js 3.34 kB 0 B
dotcom-rendering/dist/DocumentBlockComponent-importable.modern.********************.js 2.72 kB 0 B
dotcom-rendering/dist/EmbedBlockComponent-importable.modern.********************.js 3.25 kB 0 B
dotcom-rendering/dist/embedIframe.modern.********************.js 519 B 0 B
dotcom-rendering/dist/EnhancePinnedPost-importable.modern.********************.js 1.93 kB 0 B
dotcom-rendering/dist/FetchCommentCounts-importable.modern.********************.js 3 kB 0 B
dotcom-rendering/dist/FetchOnwardsData-importable.modern.********************.js 2.52 kB 0 B
dotcom-rendering/dist/FilterKeyEventsToggle-importable.modern.********************.js 3.41 kB 0 B
dotcom-rendering/dist/FocusStyles-importable.modern.********************.js 509 B -1 B (0%)
dotcom-rendering/dist/frameworks.modern.********************.js 20.3 kB 0 B
dotcom-rendering/dist/GetCricketScoreboard-importable.modern.********************.js 3.35 kB 0 B
dotcom-rendering/dist/GetMatchNav-importable.modern.********************.js 11.3 kB 0 B
dotcom-rendering/dist/GetMatchStats-importable.modern.********************.js 6.29 kB 0 B
dotcom-rendering/dist/GetMatchTabs-importable.modern.********************.js 2.41 kB 0 B
dotcom-rendering/dist/guardian-braze-components-banner.modern.********************.js 11.8 kB 0 B
dotcom-rendering/dist/guardian-braze-components-end-of-article.modern.********************.js 9.34 kB 0 B
dotcom-rendering/dist/GuideAtomWrapper-importable.modern.********************.js 477 B 0 B
dotcom-rendering/dist/HeaderTopBar-importable.modern.********************.js 10.8 kB 0 B
dotcom-rendering/dist/index.modern.********************.js 29.7 kB -2 B (0%)
dotcom-rendering/dist/InstagramBlockComponent-importable.modern.********************.js 2.79 kB 0 B
dotcom-rendering/dist/InteractiveBlockComponent-importable.modern.********************.js 5.8 kB 0 B
dotcom-rendering/dist/InteractiveContentsBlockComponent-importable.modern.********************.js 4.07 kB 0 B
dotcom-rendering/dist/KeyEventsCarousel-importable.modern.********************.js 2.94 kB 0 B
dotcom-rendering/dist/KnowledgeQuizAtomWrapper-importable.modern.********************.js 483 B 0 B
dotcom-rendering/dist/LabsHeader-importable.modern.********************.js 2.64 kB 0 B
dotcom-rendering/dist/LiveBlogEpic-importable.modern.********************.js 4.72 kB 0 B
dotcom-rendering/dist/Liveness-importable.modern.********************.js 5.51 kB 0 B
dotcom-rendering/dist/MapEmbedBlockComponent-importable.modern.********************.js 5.32 kB 0 B
dotcom-rendering/dist/Metrics-importable.modern.********************.js 2.18 kB 0 B
dotcom-rendering/dist/MostViewedFooter-importable.modern.********************.js 4.88 kB 0 B
dotcom-rendering/dist/MostViewedFooterData-importable.modern.********************.js 7.03 kB 0 B
dotcom-rendering/dist/MostViewedRightWrapper-importable.modern.********************.js 3.73 kB 0 B
dotcom-rendering/dist/newsletterEmbedIframe.modern.********************.js 621 B 0 B
dotcom-rendering/dist/OnwardsUpper-importable.modern.********************.js 8.19 kB 0 B
dotcom-rendering/dist/PersonalityQuizAtomWrapper-importable.modern.********************.js 483 B 0 B
dotcom-rendering/dist/ProfileAtomWrapper-importable.modern.********************.js 478 B 0 B
dotcom-rendering/dist/QandaAtomWrapper-importable.modern.********************.js 477 B 0 B
dotcom-rendering/dist/ReaderRevenueDev-importable.modern.********************.js 460 B 0 B
dotcom-rendering/dist/readerRevenueDevUtils.modern.********************.js 2.79 kB 0 B
dotcom-rendering/dist/ReaderRevenueLinks-importable.modern.********************.js 5.4 kB 0 B
dotcom-rendering/dist/RecipeMultiplier-importable.modern.********************.js 3.22 kB 0 B
dotcom-rendering/dist/relativeTime.modern.********************.js 971 B 0 B
dotcom-rendering/dist/RichLinkComponent-importable.modern.********************.js 5.05 kB 0 B
dotcom-rendering/dist/SecureSignupIframe-importable.modern.********************.js 2.52 kB 0 B
dotcom-rendering/dist/sentry.modern.********************.js 767 B 0 B
dotcom-rendering/dist/SetABTests-importable.modern.********************.js 4.96 kB 0 B
dotcom-rendering/dist/ShareCount-importable.modern.********************.js 2.94 kB 0 B
dotcom-rendering/dist/shimport.modern.********************.js 2.78 kB 0 B
dotcom-rendering/dist/ShowHideContainers-importable.modern.********************.js 728 B 0 B
dotcom-rendering/dist/ShowMore-importable.modern.********************.js 6.14 kB 0 B
dotcom-rendering/dist/SignInGateMain.modern.********************.js 2.94 kB 0 B
dotcom-rendering/dist/SignInGateSelector-importable.modern.********************.js 2.9 kB 0 B
dotcom-rendering/dist/SlotBodyEnd-importable.modern.********************.js 2.79 kB 0 B
dotcom-rendering/dist/Snow-importable.modern.********************.js 4.26 kB 0 B
dotcom-rendering/dist/SpotifyBlockComponent-importable.modern.********************.js 5.16 kB 0 B
dotcom-rendering/dist/StickyBottomBanner-importable.modern.********************.js 3.8 kB 0 B
dotcom-rendering/dist/SubNav-importable.modern.********************.js 2.79 kB 0 B
dotcom-rendering/dist/SupportTheG-importable.modern.********************.js 5.37 kB 0 B
dotcom-rendering/dist/TableOfContents-importable.modern.********************.js 3.07 kB 0 B
dotcom-rendering/dist/TimelineAtomWrapper-importable.modern.********************.js 477 B 0 B
dotcom-rendering/dist/TopRightAdSlot-importable.modern.********************.js 664 B 0 B
dotcom-rendering/dist/TweetBlockComponent-importable.modern.********************.js 999 B 0 B
dotcom-rendering/dist/UnsafeEmbedBlockComponent-importable.modern.********************.js 2.8 kB 0 B
dotcom-rendering/dist/VideoFacebookBlockComponent-importable.modern.********************.js 5.33 kB 0 B
dotcom-rendering/dist/VineBlockComponent-importable.modern.********************.js 2.64 kB 0 B
dotcom-rendering/dist/YoutubeBlockComponent-importable.modern.********************.js 4.05 kB 0 B

compressed-size-action

@mxdvl mxdvl force-pushed the mxdvl/better-package-json branch from d8b2b62 to 93952ab Compare February 1, 2023 12:34
@mxdvl mxdvl mentioned this pull request Feb 1, 2023
@mxdvl mxdvl force-pushed the mxdvl/better-package-json branch from abc159e to c5d5597 Compare February 10, 2023 18:23
@bryophyta
Copy link
Contributor

@mxdvl it looks like the CI checks for this aren't passing at the moment and the branch hasn't been updated for a couple of weeks, so I'm going to add the prnouncer-ignore label to the PR. Please do remove the label whenever you want it to be reviewed though!

p.s. this looks like a really interesting project, I'm looking forward to reviewing it!

@bryophyta bryophyta added the prnouncer-ignore PRs with this label will be ignored by the prnouncer bot label Feb 23, 2023
@mxdvl mxdvl force-pushed the mxdvl/better-package-json branch from 1ea0c62 to b37be6e Compare February 23, 2023 11:01
@github-actions
Copy link

github-actions bot commented Feb 23, 2023

⚡️ Lighthouse report for the changes in this PR

Report for Article

⚠️ Budget exceeded for 1 of 6 audits.

tested url http://localhost:9000/Article/https://www.theguardian.com/commentisfree/2020/feb/08/hungary-now-for-the-new-right-what-venezuela-once-was-for-the-left#noads

Category Status Expected Actual
First Contentful Paint 1500 1204
Largest Contentful Paint 3000 1284
Time to Interactive 3500 1882
Cumulative Layout Shift ⚠️ 0.002 0.015523
Total Blocking Time 219 144
accessibility 0.98 0.980000

@github-actions
Copy link

github-actions bot commented Feb 23, 2023

⚡️ Lighthouse report for the changes in this PR

Report for Front

⚠️ Budget exceeded for 1 of 6 audits.

tested url http://localhost:9000/Front/https://www.theguardian.com/uk

Category Status Expected Actual
First Contentful Paint 1500 1353
Largest Contentful Paint 3000 2060
Time to Interactive 3500 2062
Cumulative Layout Shift ⚠️ 0.002 0.011139
Total Blocking Time 716 407
accessibility 0.98 0.980000

@mxdvl
Copy link
Contributor Author

mxdvl commented Feb 23, 2023

@mxdvl it looks like the CI checks for this aren't passing at the moment and the branch hasn't been updated for a couple of weeks, so I'm going to add the prnouncer-ignore label to the PR. Please do remove the label whenever you want it to be reviewed though!

p.s. this looks like a really interesting project, I'm looking forward to reviewing it!

I’ve rebased and fixed all the other tests, but there are some remaining issues with the actual checking. I don’t have too much bandwith to fix this at the minute, so happy to close if there’s not much interest from the team.

@mxdvl mxdvl force-pushed the mxdvl/better-package-json branch from b37be6e to 8354971 Compare February 23, 2023 12:04
@bryophyta
Copy link
Contributor

I’ve rebased and fixed all the other tests, but there are some remaining issues with the actual checking. I don’t have too much bandwith to fix this at the minute, so happy to close if there’s not much interest from the team.

Thanks for the update! Fwiw it seems like a really worthwhile check so I'd be very happy for it to be included at some point! I don't want to put more work on your plate though; is it something that would be useful to pair on at some point?

- missing peer dependencies are specified
- use tilde range for type dependencies
- enforce it with CI
- added list of known issues

- bump some dependencies:
  - dompurify to v2.4
@mxdvl mxdvl force-pushed the mxdvl/better-package-json branch from 8354971 to c74578e Compare February 23, 2023 12:45
@mxdvl
Copy link
Contributor Author

mxdvl commented Feb 23, 2023

There was a suggestion that this would be better suited in a place like CSNX, so closing in favour of getting this through instead: guardian/csnx#393

@mxdvl mxdvl closed this Feb 23, 2023
@mxdvl mxdvl deleted the mxdvl/better-package-json branch February 23, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Pull requests that update a dependency file dotcom-rendering prnouncer-ignore PRs with this label will be ignored by the prnouncer bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants