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

chore(cdk-build-tools): print build times for all packages #10681

Merged
merged 3 commits into from
Oct 5, 2020

Conversation

nija-at
Copy link
Contributor

@nija-at nija-at commented Oct 4, 2020

Print the build times for all packages, irrespective of their success or
failure.

The motivation is to gather package build times and their contribution
to the total build time of the repo.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Print the build times for all packages, irrespective of their success or
failure.

The motivation is to gather package build times and their contribution
to the total build time of the repo.
@nija-at nija-at requested review from rix0rrr and a team October 4, 2020 17:55
@nija-at nija-at self-assigned this Oct 4, 2020
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Oct 4, 2020
@mergify
Copy link
Contributor

mergify bot commented Oct 5, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@NetaNir NetaNir added the pr/do-not-merge This PR should not be merged at this time. label Oct 5, 2020
@NetaNir
Copy link
Contributor

NetaNir commented Oct 5, 2020

It will be nice to have in the logs, but not ideal to do analysis of the build time. How about we collect the times as and report as cloudwatch metrics?

process.stderr.write('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n');
process.exit(1);
}).finally(() => {
buildTimer.end();
process.stdout.write(`Build times for ${currentPackageJson().name}: ${timers.display()}\n`);
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make more sense to accumulate (eg in a file) and print a summary report at the end of the full build?

Otherwise I can't really see how this is usable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Otherwise I can't really see how this is usable

Download the build log and run a grep on 'Build times ' ?

@nija-at
Copy link
Contributor Author

nija-at commented Oct 5, 2020

How about we collect the times as and report as cloudwatch metrics?

Maybe yes, but that's more than what I need right now. This is very simple at the moment. I just want to get a single snapshot of which packages consume how much time.

@nija-at nija-at requested review from eladb and NetaNir October 5, 2020 10:09
@nija-at nija-at removed the pr/do-not-merge This PR should not be merged at this time. label Oct 5, 2020
@mergify
Copy link
Contributor

mergify bot commented Oct 5, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 980ca5e
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Oct 5, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 3da6420 into master Oct 5, 2020
@mergify mergify bot deleted the nija-at/print-build-times branch October 5, 2020 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants