Page MenuHomePhabricator

[services] Clean up `proto_codegen.sh` using ShellCheck
ClosedPublic

Authored by abosh on Aug 2 2022, 10:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 11:38 AM
Unknown Object (File)
Fri, Nov 8, 8:36 PM
Unknown Object (File)
Fri, Nov 8, 8:36 PM
Unknown Object (File)
Fri, Nov 8, 8:36 PM
Unknown Object (File)
Tue, Nov 5, 2:06 AM
Unknown Object (File)
Sun, Nov 3, 2:25 PM
Unknown Object (File)
Oct 5 2024, 3:10 AM
Unknown Object (File)
Oct 5 2024, 3:10 AM

Details

Summary

Related Linear issue here. This is part of a set of diffs that will allow ShellCheck to be added to the CI. See inline comments for specific details of the ShellCheck error/warning output.

Test Plan

ShellCheck

Additionally, this script is run by build_service.sh, which is run during the Backup, Blob, and Tunnelbroker builds so if those workflows continue to pass CI we can reasonably assume that the script continues to work as expected.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Aug 2 2022, 10:06 AM
Harbormaster failed remote builds in B11064: Diff 15229!

Remove extraneous protos/ on line 8, since now that we are not using ls to loop through the protos directory we do not need to include it as a parent directory. Noticed this because the CI was failing, re-tested the Blob build CI locally and it worked with no errors.

I don't have much context on this script I think, and I'm a bad choice for a first-pass reviewer except for cases listed here

This revision is now accepted and ready to land.Aug 2 2022, 11:56 AM