Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix random build failures due to syntax error in sonic_internal.proto #157

Merged

Conversation

sachinholla
Copy link
Contributor

Why I did it

PR #139 introduced a syntax error in sonic_internal.proto file. Looks like sonic_internal.pb.go was manually updated and not re-generated from the proto file. Hence the syntax error went unnoticed.

Now sonic_internal.pb.go re-generation is getting triggered randomly in some clones during docker build causing build failure. This build includes a make target that compiles gotest binary for gnmi_server package. All go files are prerequisites for this target. This triggers sonic_internal.pb.go target if sonic_internal.proto got a higher timestamp than sonic_internal.pb.go during git clone. Hence the random failure.

This gotest binary is never used now. Pipeline builds run the go tests directly on source packages. Hence we can remove this makefile target.

How I did it

  • Fixed the syntax error in "delete" field definition in sonic_internal.proto file
  • Removed the makefile target to compile gnmi_server test binary

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

1) Fixed the syntax error in sonic_internal.proto file (introduced by
commit 58a7b20). It appears that sonic_internal.pb.go was manually
updated earlier; hence this syntax error went unnoticed.

2) Removed the makefile target to compile gnmi_server test binary. It
is not used now as 'make check_gotest' runs the go tests directly on
source files. Prevents unnecessary trigger of proto file compilations
@anand-kumar-subramanian anand-kumar-subramanian merged commit 8e13400 into sonic-net:master Oct 10, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants