How to run check_static_initializers.py locally?

4 views
Skip to first unread message

Colin Blundell

unread,
May 21, 2026, 5:30:50 AM (7 days ago) May 21
to infra-dev, geof...@chromium.org, Yuly Novikov, Brian Sheedy, Arthur Sonzogni
Hi folks,

Could anyone give me insight on how to run check_static_initializers.py locally? I have an invocation on a bot here that I'd like to repro locally, but I don't know what to pass for --args when running locally:

blundell:src(use_static_angle) $  ./testing/scripts/check_static_initializers.py --build-dir out/mac_release
Traceback (most recent call last):
  File "/usr/local/google/home/blundell/clankium/src/./testing/scripts/check_static_initializers.py", line 244, in <module>
    sys.exit(common.run_script(sys.argv[1:], funcs))
             ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/google/home/blundell/clankium/src/testing/scripts/common.py", line 152, in run_script
    return args.func(args)
           ^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'func'

Thanks,

Colin

Yuly Novikov

unread,
May 21, 2026, 1:20:04 PM (6 days ago) May 21
to Brian Sheedy, Colin Blundell, infra-dev, geof...@chromium.org, Yuly Novikov, Arthur Sonzogni

On Thu, May 21, 2026 at 7:01 PM Brian Sheedy <bsh...@chromium.org> wrote:
Based on the argument definition in the shared code and the one usage of args.args in the script, the file should contain a single list. The only relevant arg to potentially include is --allow-coverage-initializer. I can't tell if the bot sets that or not, though.

Brian Sheedy

unread,
May 21, 2026, 1:20:10 PM (6 days ago) May 21
to Colin Blundell, infra-dev, geof...@chromium.org, Yuly Novikov, Arthur Sonzogni
Based on the argument definition in the shared code and the one usage of args.args in the script, the file should contain a single list. The only relevant arg to potentially include is --allow-coverage-initializer. I can't tell if the bot sets that or not, though.

On Thu, May 21, 2026 at 2:30 AM Colin Blundell <blun...@chromium.org> wrote:

Colin Blundell

unread,
May 22, 2026, 5:48:47 AM (6 days ago) May 22
to Yuly Novikov, Brian Sheedy, Colin Blundell, infra-dev, geof...@chromium.org, Arthur Sonzogni
Thanks, both! I'll try out both your suggestions and loop back if I have any further questions.

Best,

Colin
Reply all
Reply to author
Forward
0 new messages