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

gradle: create a separate sub build for all connectors #11833

Merged
merged 3 commits into from
Apr 8, 2022

Conversation

alafanechere
Copy link
Contributor

What

The /test connectors=all command is selecting and running octavia-cli's integrationTest but it should not.

How

Create a separate sub-build for all connectors that is not including octavia-cli.

@alafanechere alafanechere temporarily deployed to more-secrets April 8, 2022 16:43 Inactive
Copy link
Contributor

@bleonard bleonard left a comment

Choose a reason for hiding this comment

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

Left a few comments. See what you think. Overall 👍

@@ -28,8 +28,8 @@ if (!System.getenv().containsKey("SUB_BUILD")) {
} else {
def subBuild = System.getenv().get("SUB_BUILD")
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that this is getting used in more places, it might be nice to move it up a level in visibility, so the below doesn't have to repeat itself much.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could you please clarify? This sub-build is only defined in this settings file and is already at top level of the file.

Copy link
Contributor

Choose a reason for hiding this comment

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

I meant you could have move the variable definition def subBuild = System.getenv().get("SUB_BUILD") to higher up in the file and then used it below instead of System.getenv().containsKey("SUB_BUILD") around line 79 below. Not a huge deal.

@@ -28,8 +28,8 @@ if (!System.getenv().containsKey("SUB_BUILD")) {
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment just above here is out of date now. Add ALL_CONNECTORS to the list. It's minor but I think just CONNECTORS would be fine too and maybe more intuitive.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I use ALL_CONNECTORS to distinguish it from CONNECTORS_BASE.

@alafanechere alafanechere temporarily deployed to more-secrets April 8, 2022 17:24 Inactive
@alafanechere alafanechere temporarily deployed to more-secrets April 8, 2022 17:24 Inactive
@alafanechere alafanechere temporarily deployed to more-secrets April 8, 2022 17:28 Inactive
@alafanechere alafanechere temporarily deployed to more-secrets April 8, 2022 17:28 Inactive
@benmoriceau
Copy link
Contributor

NIT: I think it worth sharing that in #dev after merging so the team know that they can a new alias once merge.

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