Skip to content

ci: parallelize docker RUN builds whenver possible#7060

Merged
devjgm merged 2 commits intogoogleapis:mainfrom
devjgm:demo-parallel
Jul 26, 2021
Merged

ci: parallelize docker RUN builds whenver possible#7060
devjgm merged 2 commits intogoogleapis:mainfrom
devjgm:demo-parallel

Conversation

@devjgm
Copy link
Copy Markdown
Contributor

@devjgm devjgm commented Jul 26, 2021

I used ${NCPU:-4} (with a default value) in all the demo-* files. I used ${NCPU} in the non-demo files, because its always set in our builds.


This change is Reviewable

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 26, 2021
@google-cloud-cpp-bot
Copy link
Copy Markdown
Contributor

Google Cloud Build Logs
For commit: b5c75f146e699888a44e3df39e413c805d284e86

ℹ️ NOTE: Kokoro logs are linked from "Details" below.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 26, 2021

Codecov Report

Merging #7060 (9d0926c) into main (04b9b79) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #7060      +/-   ##
==========================================
- Coverage   94.49%   94.48%   -0.02%     
==========================================
  Files        1304     1304              
  Lines      112327   112327              
==========================================
- Hits       106147   106134      -13     
- Misses       6180     6193      +13     
Impacted Files Coverage Δ
google/cloud/bigtable/internal/common_client.h 92.53% <0.00%> (-5.98%) ⬇️
google/cloud/pubsub/subscriber_connection_test.cc 97.20% <0.00%> (-0.70%) ⬇️
google/cloud/bigtable/async_read_stream_test.cc 97.32% <0.00%> (-0.67%) ⬇️
.../cloud/storage/benchmarks/throughput_experiment.cc 74.37% <0.00%> (-0.51%) ⬇️
...le/cloud/spanner/database_admin_connection_test.cc 99.20% <0.00%> (-0.50%) ⬇️
google/cloud/pubsub/samples/samples.cc 91.75% <0.00%> (+0.07%) ⬆️

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 04b9b79...9d0926c. Read the comment docs.

@devjgm devjgm marked this pull request as ready for review July 26, 2021 19:39
@devjgm devjgm requested a review from a team July 26, 2021 19:39
Copy link
Copy Markdown
Contributor

@coryan coryan left a comment

Choose a reason for hiding this comment

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

Some inconsistencies that you may want to fix.

-DCRC32C_USE_GLOG=OFF \
-H. -Bcmake-out -GNinja && \
cmake --build cmake-out --target install && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
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.

I thought you wanted "${NCPU}" in non-demo files?

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.

Oops. Fixed. Re-testing.

-DCMAKE_CXX_STANDARD=11 \
-H. -Bcmake-out -GNinja && \
cmake --build cmake-out --target install && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
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.

Ditto.

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.

Fixed.

@google-cloud-cpp-bot
Copy link
Copy Markdown
Contributor

Google Cloud Build Logs
For commit: 9d0926c13088870969a04f7c58e31b1725fdf21d

ℹ️ NOTE: Kokoro logs are linked from "Details" below.

@devjgm devjgm merged commit b10aadd into googleapis:main Jul 26, 2021
@devjgm devjgm deleted the demo-parallel branch July 26, 2021 20:27
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants