-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Update elastic-agent-client and rename control proto package to cproto #39586
Update elastic-agent-client and rename control proto package to cproto #39586
Conversation
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
|
||
option cc_enable_arenas = true; | ||
option go_package = "pkg/agent/control/proto;proto"; | ||
option go_package = "pkg/agent/control/cproto;cproto"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you still upgrade 7.17.x->7.17.x with this change?
In the 8.x agent we maintain two copies of the file but I can't remember if the concern there applies here as well. https://github.com/elastic/elastic-agent/blob/fd0d1bb164dd5dbd0f64c7a2d0e727cf7b13e777/control_v1.proto#L7-L11
…astic#39224) * Update elastic-agent-client used in 7.17 releases
Rename control proto package to cproto so it does not conflict with elastic-agent-client import
0430043
to
0902e38
Compare
39ce18b
to
c4ecb92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I have the same question as Craig: Does it break any compatibility with older/newer versions that will need to communicate with this agent?
I was able to upgrade successfully from 7.17.21-SNAPSHOT to 7.17.22-SNAPSHOT on a standalone install. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
elastic#39586) Update elastic-agent-client to a tagged release (v7.8.1), and rename control proto package to cproto so it does not conflict with elastic-agent-client import
* Update elastic-agent-client and rename control proto package to cproto (#39586) Update elastic-agent-client to a tagged release (v7.8.1), and rename control proto package to cproto so it does not conflict with elastic-agent-client import * backport mage cloud:* targets * fix errors.Is comparison * review feedback
Proposed commit message
cherry-pick the commit to update the elastic-agent-client to a more recent version. The PR was reverted because the resulting binary failed to start due to a proto namespace collision.
Rename control proto package to cproto so it does not conflict with elastic-agent-client import
Upgrade integration test found that we had an error when upgrading from the latest 7.17.x snapshots.
Investigation found that while the binary could compile and all tests pass, attempting to run it would cause a panic when the imports executed their
init
functions as the protobuf namespaces collided.Checklist
I have commented my code, particularly in hard-to-understand areasI have made corresponding changes to the documentationCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
compile the agent binary and attempt to run any command, i.e.,
elastic-agent version
Related issues