Skip to content

ci: reintroduce logging of important build commands#6609

Merged
devbww merged 3 commits intogoogleapis:mainfrom
devbww:log-cmdline
May 18, 2021
Merged

ci: reintroduce logging of important build commands#6609
devbww merged 3 commits intogoogleapis:mainfrom
devbww:log-cmdline

Conversation

@devbww
Copy link
Copy Markdown
Contributor

@devbww devbww commented May 18, 2021

Rebrand io::log_cmdline as io::log_and_run, which, as the
name suggests, now also executes the command so as to eliminate
duplication at the call site. This version also adds quoting.

Introduce io::log_and_run into the ci/cloudbuild/build.sh
script. Additions to any of the ci/cloudbuild/builds/*.sh
scripts can be made as the need arises.


This change is Reviewable

devbww added 2 commits May 18, 2021 13:28
Rebrand `io::log_cmdline` as `io::log_and_run`, which, as the
name suggests, now also executes the command so as to eliminate
duplication at the call site.  This version also adds quoting.

Introduce `io::log_and_run` into the `ci/cloudbuild/build.sh`
script. Additions to any of the `ci/cloudbuild/builds/*.sh`
scripts can be made as the need arises.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 18, 2021
@google-cloud-cpp-bot
Copy link
Copy Markdown
Contributor

Google Cloud Build Logs
For commit: fcebd90cb8fd2a420b2048c3d0cd38d9edfee246

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

@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2021

Codecov Report

Merging #6609 (45a1527) into main (0edf9e5) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #6609   +/-   ##
=======================================
  Coverage   95.82%   95.82%           
=======================================
  Files        1211     1211           
  Lines      107401   107401           
=======================================
  Hits       102914   102914           
  Misses       4487     4487           

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 0edf9e5...45a1527. Read the comment docs.

Copy link
Copy Markdown
Contributor

@devjgm devjgm left a comment

Choose a reason for hiding this comment

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

LGTM as-is. I'd also be OK w/ a shorter name like io::run since the io:: part gives some hint that something will be logged also. But I'm happy w/ whatever you decide.

@devbww
Copy link
Copy Markdown
Contributor Author

devbww commented May 18, 2021

I'd also be OK w/ a shorter name like io::run

Done.

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

Google Cloud Build Logs
For commit: 45a1527ff794cde4c3e4d1f0e87d7825c8aa758b

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

@devbww devbww marked this pull request as ready for review May 18, 2021 21:24
@devbww devbww requested a review from a team May 18, 2021 21:24
@devbww devbww merged commit 04e1b3a into googleapis:main May 18, 2021
@devbww devbww deleted the log-cmdline branch May 18, 2021 22:52
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