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

e2e: add smoke test for peer pods #1005

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

burgerdev
Copy link
Contributor

No description provided.

@burgerdev burgerdev added the no changelog PRs not listed in the release notes label Nov 17, 2024
@burgerdev burgerdev force-pushed the burgerdev/pp-test-rebased branch 2 times, most recently from ad1d30c to f6ee5bb Compare November 18, 2024 07:08
justfile Outdated Show resolved Hide resolved
@burgerdev burgerdev force-pushed the burgerdev/pp-test-rebased branch 2 times, most recently from dbe36b0 to d1f4a31 Compare November 18, 2024 11:03
}

resource "azurerm_resource_group" "rg" {
name = var.resource_group
Copy link
Member

Choose a reason for hiding this comment

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

We should still add a suffix somewhere to make this azure/peerpod specific. Otherwise rg might collide with aks/nested setup.

Also, upload-image step still expects a the _caa_cluster suffix.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I added the _caa_cluster suffix back. Original reason for using the literal group was so that I can reuse contrast-ci, but now that the RG is owned by create-pre it does not matter anymore.

Comment on lines +5 to 8
variable "resource_group" {
type = string
}
Copy link
Member

Choose a reason for hiding this comment

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

Maybee we can just derive this from name_prefix?

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 wanted the prefix to be randomizable while using a shared group (e.g. contrast-ci). Do you think it makes sense to do this within Terraform? It's currently in test-peerpods.sh.

Copy link
Member

Choose a reason for hiding this comment

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

no, we cannot do this in terraform as it should not happen for developers. Maybe we can do this via justfile.env (azure_resource_group)?

Copy link
Member

@katexochen katexochen Nov 18, 2024

Choose a reason for hiding this comment

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

Maybe we want to even get rid of azure_resource_group and namespace_suffix and instead have a single source for naming, like base_name. Then everything is just basename + suffix.

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 decided to make name_prefix optional, as it's not that useful on Azure where we're using groups anyway. Developers now get simply named resources without additional configuration, while the CI prefixes resources to make them unique.

Comment on lines 24 to 25
nix run -L .#terraform -- -chdir=infra/azure-peerpods init
nix run -L .#terraform -- -chdir=infra/azure-peerpods apply --auto-approve
Copy link
Member

Choose a reason for hiding this comment

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

Could we now run just create instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just create still includes just upload-image, but wanted to be able to use an existing image in the test. If we drop that, we only need to solve the resource group naming.

Copy link
Member

Choose a reason for hiding this comment

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

okay, let's postpone this to a future pr.

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 moved just upload-image to create-pre for now to simplify the logic here. However, the YAML handling should be refactored eventually so that infra/azure-peerpods does not depend on upload-image.

@katexochen
Copy link
Member

otherwise lgtm

@katexochen katexochen self-assigned this Nov 18, 2024
@burgerdev burgerdev force-pushed the burgerdev/pp-test-rebased branch 3 times, most recently from 1ac578e to b8938f3 Compare November 18, 2024 15:06
@burgerdev burgerdev marked this pull request as ready for review November 18, 2024 16:25
@burgerdev burgerdev force-pushed the burgerdev/pp-test-rebased branch from b8938f3 to a754c53 Compare November 19, 2024 06:55
@burgerdev burgerdev force-pushed the burgerdev/pp-test-rebased branch from a754c53 to 3e96b98 Compare November 19, 2024 07:52
@katexochen katexochen merged commit dd18dc4 into p/revert-node-installer Nov 19, 2024
11 checks passed
@katexochen katexochen deleted the burgerdev/pp-test-rebased branch November 19, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog PRs not listed in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants