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

wip: basic test for peerpods #990

Draft
wants to merge 3 commits into
base: burgerdev/pp-test-base
Choose a base branch
from

Conversation

burgerdev
Copy link
Contributor

No description provided.

@burgerdev burgerdev added the no changelog PRs not listed in the release notes label Nov 11, 2024
@burgerdev burgerdev force-pushed the burgerdev/pp-test branch 2 times, most recently from f06eefc to b8abf02 Compare November 11, 2024 15:49
Comment on lines +27 to +28
export azure_resource_group=contrast-ci
export azure_location=germanywestcentral
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should these values come from repository vars?

@@ -201,7 +200,7 @@ create platform=default_platform:
echo "subscription_id = \"$azure_subscription_id\"" >> infra/azure-peerpods/just.auto.tfvars

nix run -L .#terraform -- -chdir=infra/azure-peerpods init
nix run -L .#terraform -- -chdir=infra/azure-peerpods apply
nix run -L .#terraform -- -chdir=infra/azure-peerpods apply --auto-approve
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Credit @jmxnzo

Comment on lines +8 to +13
true || nix run -L .#scripts.upload-image -- \
--subscription-id="${azure_subscription_id:?}" \
--location="${azure_location:?}" \
--resource-group="${azure_resource_group:?}"
image_id=/subscriptions/0d202bbb-4fa7-4af8-8125-58c269a05435/resourceGroups/contrast-ci/providers/Microsoft.Compute/galleries/contrast_ci_contrast/images/contrast/versions/0.0.1730981348
echo "image_id = \"${image_id}\"" > infra/azure-peerpods/image_id.auto.tfvars
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Make building the image optional by allowing an override input image id.

Comment on lines +19 to +21
tenant_id = "${azure_tenant_id:?}"
client_id = "${azure_client_id:?}"
client_secret = "${azure_client_secret:?}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should these be justfile.env vars?

echo "image_id = \"${image_id}\"" > infra/azure-peerpods/image_id.auto.tfvars

cat >infra/azure-peerpods/testrun.auto.tfvars <<EOF
name_prefix = "${azure_resource_group:?}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be randomized.

@katexochen katexochen added the do not merge This shouldn't be merged at this point label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge This shouldn't be merged at this point no changelog PRs not listed in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants