Skip to content

Fix securityservices.proto compilation issue and add CI protoc check - #31

Merged
gmacf merged 2 commits into
openconfig:mainfrom
henrymitchellhibbert-lab:main
Oct 6, 2026
Merged

gmacf merged 2 commits into
openconfig:mainfrom
henrymitchellhibbert-lab:main

Conversation

@henrymitchellhibbert-lab

Copy link
Copy Markdown
Contributor

The current file fails to compile: securityservices.proto:249:5: Fields in oneofs must not have labels (required / optional / repeated).

This PR fixes this by wrapping the repeated field in a new message type, and adds a Github Action to catch this category of issue in future.

protoc rejects repeated fields inside a oneof:

  securityservices.proto:249:5: Fields in oneofs must not have labels
  (required / optional / repeated).

Move the model list into a nested ImageIdentifier.HardwareModelList
message and use it as the oneof member.
Runs protoc on every proto under proto/ for pushes and pull requests to
main, so changes that break compilation are caught before merge.
@henrymitchellhibbert-lab

Copy link
Copy Markdown
Contributor Author

@henrymitchellhibbert-lab
henrymitchellhibbert-lab marked this pull request as ready for review October 6, 2026 03:10
@henrymitchellhibbert-lab
henrymitchellhibbert-lab requested a review from a team as a code owner October 6, 2026 03:10

@mihirpitale-googler mihirpitale-googler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gmacf
gmacf merged commit f0d2447 into openconfig:main Oct 6, 2026
15 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