commit | f19e9283a36eebcd0e992f82df0799218948af33 | [log] [tgz] |
---|---|---|
author | Eli Lipsitz <elipsitz@google.com> | Fri Jan 27 22:47:59 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 27 22:47:59 2023 +0000 |
tree | fbcf974fb3c760b64860a4888b677593407833aa | |
parent | 5b53103e1076a700be79d7ed700b51f2077ccb0d [diff] |
pw_presubmit: Invoke ninja via pw-wrap-ninja, handle SIGTERM This commit switches the standard pw_presubmit 'ninja' helper to invoke Ninja via pw-wrap-ninja, and enable the flag to log action start/end times. Additionally, it adds (and uses) an option to the 'call' helper to propagate a SIGTERM to the subprocess. This is helpful because CI may terminate pw_presubmit with a SIGTERM if it times out, giving it a chance to do cleanup. When pw-wrap-ninja receives a SIGTERM, it prints out any actions it was running. Combined, this makes it easy to see what's running when a Ninja step in a CI job times out. Change-Id: Ia11515e71ac7044780aaaab7e77142cca903947e Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/126936 Commit-Queue: Eli Lipsitz <elipsitz@google.com> Pigweed-Auto-Submit: Eli Lipsitz <elipsitz@google.com> Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.