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

feat(size-report): add proper size report check #2638

Merged
merged 46 commits into from Feb 11, 2020
Merged

feat(size-report): add proper size report check #2638

merged 46 commits into from Feb 11, 2020

Conversation

redallen
Copy link
Contributor

@redallen redallen commented Jan 29, 2020

Closes #2634

  • Adds proper size reporting vs version we cut branch off of from NPM.
    • Fails if file grows > 50% or dist/*.css grows > 10%
  • Leave PR comment after every reporting step (so one for preview, a11y, and CSS size report)

redallen and others added 9 commits January 29, 2020 11:13
some cleanup. a bit more organized this way I believe.
Only display changed values
fixed circleci config to call the correct size script
updated comment in bash script, make it a bit more clear what the script is doing.
added cli args to script for flex
package.json Outdated Show resolved Hide resolved
.circleci/css-size-report/sizeReport.js Outdated Show resolved Hide resolved
.circleci/css-size-report/sizeReport.js Outdated Show resolved Hide resolved
.circleci/css-size-report/sizeReport.js Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
ddonahue007 and others added 20 commits February 5, 2020 15:47
added some logic for new files
cleaned up table styles a bit
added in logic to handle fonts layouts and top level css files
    Added passing of args, we should be able to use this for other packages.
fix circleci exec call
small change to bash script so that we display usage if we pass in the command arg(will only except run or clean)
fixes to get artifacts loading in circleCI
fixes to get artifacts loading in circleCI (fishing...)
fixes to get artifacts loading in circleCI (again)
fixes to get artifacts loading in circleCI (maybe it's indentation)
fixes to get artifacts loading in circleCI (try loading artifacts differently...)
fixes to get artifacts loading in circleCI (try loading artifacts differently, one more time)
fixes to get artifacts loading in circleCI (try loading artifacts differently)
run test showing all files in report.
cleaned up html output a bit...
refactored a bit. We are now sorting...
Removed debug 'console.logs'
added back logic so we only display if there are changes...
Moved logic form bash script to JS script.
fixed percentage logic. we now display colors associated with neg\pos values.
Fixed a couple issues todo with exec paths
Fixed for circleci config.
Fixed for circleci repo pathing
debug circleCI comment push
additional debug lines
additional debug lines(again...)
removed debug lines
@patternfly patternfly deleted a comment from patternfly-build Feb 10, 2020
ddonahue007 and others added 4 commits February 10, 2020 11:05
removed all styling as it is not needed once posted to PR.
Add some console logging and try-catch to get more info from circleCI...
fixed location of artifacts...
@patternfly patternfly deleted a comment from patternfly-build Feb 10, 2020
ddonahue007 and others added 3 commits February 11, 2020 09:17
A few minor fixes, along with code that now updates the comment so we do not have multiple tables through out the PR.
@patternfly patternfly deleted a comment from patternfly-build Feb 11, 2020
@patternfly-build
Copy link

patternfly-build commented Feb 11, 2020

Doc preview: https://patternfly-next-pr-2638.surge.sh

A11y report: https://patternfly-next-pr-2638-coverage.surge.sh

Preview: https://patternfly-next-pr-2638.surge.sh

CSS Size Report
NameCurrentPreviousDiff %
There are no changes in CSS file sizes

@redallen redallen changed the title feat(size-report): start doug off feat(size-report): add proper size report check Feb 11, 2020
Copy link
Member

@ddonahue007 ddonahue007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@evwilkin evwilkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@evwilkin evwilkin merged commit 6062fe3 into patternfly:master Feb 11, 2020
@evwilkin evwilkin deleted the feat/size-report branch February 11, 2020 20:45
@redallen
Copy link
Contributor Author

🎉 This PR is included in version 2.61.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

None yet

4 participants