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

ci: Update 1% payload size test #20524

Closed
wants to merge 1 commit into from

Conversation

tinayuangao
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ x] CI related changes
[ ] Documentation content changes
[ ] angular.io application / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Current 1% payload size check fetch data from firebase, when the change exceed 1% there's no way to fix/approve it.

What is the new behavior?

Save payload size data locally and when change > 1%, we can update the payload_limits.log file to change the payload size limits.

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

// Get branch and project name from command line arguments
const limitFile = process.argv[2];
const project = process.argv[3];
const branch = process.argv[4];
Copy link
Contributor

Choose a reason for hiding this comment

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

What about const [, , limitFile, project, branch] = process.argv? :)

Copy link
Member

@gkalpak gkalpak left a comment

Choose a reason for hiding this comment

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

Renaming _payload-limits.sh to _payload-limits.log while keeping them executable is unexpected. Since the files are consumed as JSON, they should probably be converted to JSON (and renamed to .json) 😁

@vicb
Copy link
Contributor

vicb commented Nov 20, 2017

question: is there a place where we can see a graph of size vs time out of firebase ?

@tinayuangao
Copy link
Contributor Author

You can view the graph here: https://angular-payload-size.firebaseapp.com/

@mary-poppins
Copy link

You can preview bd8103d at https://pr20524-bd8103d.ngbuilds.io/.

@mhevery
Copy link
Contributor

mhevery commented Nov 21, 2017

please add merge and target as needed.

@mhevery mhevery added the area: core Issues related to the framework runtime label Nov 21, 2017
@tinayuangao tinayuangao added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release and removed state: WIP labels Nov 21, 2017
@IgorMinar
Copy link
Contributor

@tinayuangao please add the correct target label in the future. in general for docs, bug fixes and infrastructure changes we should always try to cherrypick the commit to the stable branch.

@IgorMinar IgorMinar added target: patch This PR is targeted for the next patch release and removed target: major This PR is targeted for the next major release labels Nov 21, 2017
@mhevery mhevery closed this in ac93f12 Nov 22, 2017
mhevery pushed a commit that referenced this pull request Nov 22, 2017
gkalpak added a commit to gkalpak/angular that referenced this pull request Nov 29, 2017
The scripts were accidentally broken in angular#20524. More specifically, when a limit
was exceeded the script would break while trying to log an error message due to
a missing `commit` variable.
This commit fixes it and also does some minor clean-up (improve docs, use more
descriptive variable names, remove dead code, etc).
gkalpak added a commit to gkalpak/angular that referenced this pull request Nov 29, 2017
The scripts were accidentally broken in angular#20524. More specifically, when a limit
was exceeded the script would break while trying to log an error message due to
a missing `commit` variable.
This commit fixes it and also does some minor clean-up (improve docs, use more
descriptive variable names, remove dead code, etc).
gkalpak added a commit to gkalpak/angular that referenced this pull request Dec 1, 2017
The scripts were accidentally broken in angular#20524. More specifically, when a limit
was exceeded the script would break while trying to log an error message due to
a missing `commit` variable.
This commit fixes it and also does some minor clean-up (improve docs, use more
descriptive variable names, remove dead code, etc).
wKoza pushed a commit to wKoza/angular that referenced this pull request Dec 2, 2017
vicb pushed a commit to vicb/angular that referenced this pull request Dec 4, 2017
The scripts were accidentally broken in angular#20524. More specifically, when a limit
was exceeded the script would break while trying to log an error message due to
a missing `commit` variable.
This commit fixes it and also does some minor clean-up (improve docs, use more
descriptive variable names, remove dead code, etc).
IgorMinar pushed a commit that referenced this pull request Dec 4, 2017
The scripts were accidentally broken in #20524. More specifically, when a limit
was exceeded the script would break while trying to log an error message due to
a missing `commit` variable.
This commit fixes it and also does some minor clean-up (improve docs, use more
descriptive variable names, remove dead code, etc).

PR Close #20683
IgorMinar pushed a commit that referenced this pull request Dec 4, 2017
The scripts were accidentally broken in #20524. More specifically, when a limit
was exceeded the script would break while trying to log an error message due to
a missing `commit` variable.
This commit fixes it and also does some minor clean-up (improve docs, use more
descriptive variable names, remove dead code, etc).

PR Close #20683
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime cla: yes target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants