FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Make ccache bigger for coverage builds. by coryan · Pull Request #1567 · googleapis/google-cloud-cpp · GitHub

Make ccache bigger for coverage builds. - #1567

Merged
coryan merged 3 commits into
googleapis:masterfrom
coryan:need-larger-cache-for-coverage
Dec 4, 2018
Merged

Make ccache bigger for coverage builds.#1567
coryan merged 3 commits into
googleapis:masterfrom
coryan:need-larger-cache-for-coverage

Conversation

coryan commented Dec 1, 2018
edited
Loading

Copy link
Copy Markdown
Contributor

We need a bigger cache for the code coverage build. While most builds
take 500MiB, the code coverage build takes nearly 1.5GiB. This will slow
down all the builds by a few seconds, but speed up the coverage build
(the longest pole in the builds right now) from about 37 to about 30
minutes.


This change is 

coryan added the type: process A process-related concern. May include testing, release, or the like. label Dec 1, 2018
coryan requested review from dopiera and houglum December 1, 2018 03:11
googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 1, 2018

codecov Bot commented Dec 1, 2018
edited
Loading

Copy link
Copy Markdown

Codecov Report

Merging #1567 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1567   +/-   ##
=======================================
  Coverage   93.99%   93.99%           
=======================================
  Files         278      278           
  Lines       15398    15398           
=======================================
  Hits        14473    14473           
  Misses        925      925

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f82a8a5...1e1b716. Read the comment docs.

dopiera added the kokoro:run Add this label to force Kokoro to re-run the tests. label Dec 3, 2018

dopiera left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Two nits, but more importantly, why does it work at all?

ccache documentation says: "Normally, there is no need to initiate cleanup manually as ccache keeps the cache below the specified limits at runtime and keeps statistics up to date on each compilation". Shouldn't we append this flag to cached_cxx instead?

Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @coryan, @houglum, and @dopiera)


ci/travis/build-docker.sh, line 211 at r1 (raw file):

  echo
  echo "${COLOR_YELLOW}Print and clearing ccache stats: $(date)${COLOR_RESET}"
  ${ccache_command} --show-stats

Not a regression, but shouldn't ${ccache_command} be quoted?


ci/travis/build-docker.sh, line 212 at r1 (raw file):

1GiB

The documentation doesn't list GiB as a valid suffix (https://ccache.samba.org/manual/latest.html#_options). I think we should stick to Gi.

We need a bigger cache for the code coverage build. While most builds
take 500MiB, the code coverage build takes nearly 1.5GiB. This will slow
down all the builds by a few seconds, but speed up the coverage build
(the longest pole in the builds right now) by minutes.
coryan force-pushed the need-larger-cache-for-coverage branch from 0cfe9d5 to 1e1b716 Compare December 3, 2018 13:18
kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Dec 3, 2018

houglum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

coryan commented Dec 4, 2018

Copy link
Copy Markdown
Contributor Author

@dopiera is it good now?

coryan left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This was sitting in a draft, sorry:

ccache documentation says: "Normally, there is no need to initiate cleanup manually as ccache keeps the cache below the specified limits at runtime and keeps statistics up to date on each compilation". Shouldn't we append this flag to cached_cxx instead?

We could do that. That would not accomplish (a) print out the stats, which help me diagnose problems with the cache, and (b) we need to zero out the stats to avoid dirtying the cache on trivial builds. Admittedly I do not recall how important the latter thing is.

Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @dopiera)


ci/travis/build-docker.sh, line 211 at r1 (raw file):

Previously, dopiera (Marek Dopiera) wrote…

Not a regression, but shouldn't ${ccache_command} be quoted?

Done.


ci/travis/build-docker.sh, line 212 at r1 (raw file):

Previously, dopiera (Marek Dopiera) wrote…
1GiB

The documentation doesn't list GiB as a valid suffix (https://ccache.samba.org/manual/latest.html#_options). I think we should stick to Gi.

Done.

dopiera left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Reviewed 1 of 1 files at r2.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dopiera)

dopiera left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Sorry, my bad, I assumed that the default is lower than 2.5G

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dopiera)

coryan merged commit 135af98 into googleapis:master Dec 4, 2018
coryan deleted the need-larger-cache-for-coverage branch December 4, 2018 14:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement. type: process A process-related concern. May include testing, release, or the like.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL