commit | 32908fc354ea25f7d1f19c1141d022a798cd6627 | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Fri Aug 25 15:01:54 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 25 15:01:54 2023 +0000 |
tree | 81797d263cbd284b31fd44cf3035bd9eac88a68e | |
parent | 7fafae0f3d68b0a57a4532f7e2bd0fed7a2a1bf3 [diff] |
[resultdb] Truncate failure reason text ... to the server-imposed limit of 1024 bytes, otherwise some check crashes will fail to propagate to ResultDB and cause red herring errors. Example failure: https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket/8772137186636755425/+/u/shac_check/stdout Change-Id: I083db13e8d12607a0b12cf510e138a8a7df3176c Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/907802 Reviewed-by: Marc-Antoine Ruel <maruel@google.com> Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
Shac (Scalable Hermetic Analysis and Checks) is a unified and ergonomic tool and framework for writing and running static analysis checks.
Shac checks are written in Starlark.
go install go.fuchsia.dev/shac-project/shac@latest shac check shac doc shac.star | less
Planned features/changes, in descending order by priority:
shac.textproto
shac.star
files.shac
cache directory that checks can write toctx.scm
glob
arguments to ctx.scm.{all,affected}_files()
functions for easier filtering⚠ The source of truth is at https://fuchsia.googlesource.com/shac-project/shac.git and uses Gerrit for code review.
See CONTRIBUTING.md to submit changes.