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
F2151847: D4721.diff
Sun, Jun 30, 1:35 PM
Unknown Object (File)
Fri, Jun 21, 4:06 PM
Unknown Object (File)
Fri, Jun 21, 4:06 PM
Unknown Object (File)
Fri, Jun 21, 4:06 PM
Unknown Object (File)
Fri, Jun 21, 4:05 PM
Unknown Object (File)
Fri, Jun 21, 3:54 PM
Unknown Object (File)
Sun, Jun 16, 8:48 AM
Unknown Object (File)
Sun, Jun 16, 12:40 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