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

Remove pointless ENABLE_ACLK/ENABLE_CLOUD split. #17529

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ferroin
Copy link
Member

@Ferroin Ferroin commented Apr 26, 2024

Summary

The distinction is a holdover from years ago when we had multiple versions of the agent-cloud link in our code. These days, everything in the code cares only about ENABLE_ACLK, and ENABLE_CLOUD is just used in the claiming script.

This PR:

  • Removes the ENABLE_CLOUD check in the claiming script so that it looks at only the things that the agent code looks at to determine cloud support.
  • Removes the current ENABLE_CLOUD option and define as it now does nothing.
  • Renames the existing ENABLE_ACLK CMake option to ENABLE_CLOUD, because that is properly descriptive of what the option actually does.
Test Plan

Local testing is required for this PR.

@github-actions github-actions bot added area/packaging Packaging and operating systems support area/claim area/build Build system (autotools and cmake). labels Apr 26, 2024
@Ferroin Ferroin marked this pull request as ready for review April 26, 2024 09:53
@Ferroin Ferroin requested review from vkalintiris and a team as code owners April 26, 2024 09:53
thiagoftsm
thiagoftsm previously approved these changes May 1, 2024
Copy link
Contributor

@thiagoftsm thiagoftsm left a comment

Choose a reason for hiding this comment

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

This PR is also working as expected. I have normal access to cloud, LGTM!

@Ferroin
Copy link
Member Author

Ferroin commented May 1, 2024

Rebased to pick up latest changes, also added a bit more cleanup.

thiagoftsm
thiagoftsm previously approved these changes May 1, 2024
Copy link
Contributor

@thiagoftsm thiagoftsm left a comment

Choose a reason for hiding this comment

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

PR is working as expected after last commits!

@@ -156,6 +155,8 @@ mark_as_advanced(BUILD_FOR_PACKAGING)
cmake_dependent_option(FORCE_LEGACY_LIBBPF "Force usage of libbpf 0.0.9 instead of the latest version." False "ENABLE_PLUGIN_LIBBPF" False)
mark_as_advanced(FORCE_LEGACY_LIBBPF)

set(ENABLE_ACLK ${ENABLE_CLOUD})
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need this and simply not use ENABLE_CLOUD throughout?

Copy link
Member Author

Choose a reason for hiding this comment

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

My intent here was to avoid changing C code in this PR (we use ENABLE_ACLK in essentially all places in the C code at the moment) because changing it would have made the PR massive and much harder to review, and thus theoretically would have delayed getting it merged. I plan to do a followup to convert the C code once this is merged, which will get rid of this bit of the CMakeLists file as well.

This is a holdover from years ago when we had multiple versions of the
agent-cloud link in our code. These days, everything in the code cares
only about ENABLE_ACLK, and ENABLE_CLOUD is just used in the claiming
script.
@Ferroin
Copy link
Member Author

Ferroin commented May 17, 2024

Rebased to resolve merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build system (autotools and cmake). area/claim area/packaging Packaging and operating systems support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants