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

ci: change name of ci environment to 'ci-branch-main' to avoid terraform issues #301

Merged
merged 2 commits into from
Apr 12, 2023

Conversation

hessjcg
Copy link
Collaborator

@hessjcg hessjcg commented Apr 12, 2023

Terraform has a hard time tearing down and recreating whole environments when they are
too far out of date. Instead, this starts a brand new environment named 'ci-daily'.

I will manually delete the old environment 'ci-main' to free up cloud resources.

@hessjcg hessjcg requested a review from a team as a code owner April 12, 2023 21:05
@@ -69,7 +69,7 @@ jobs:
name: 'Run E2E Tests'
run: "./tools/e2e_test_job.sh"
env:
ENVIRONMENT_NAME: "ci-main"
ENVIRONMENT_NAME: "ci-daily"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This also runs on push events right? We should probably think of a better name that incapsulates periodic and continuous builds because daily isn't fully accurate.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have to change the name from 'ci-main' to something else, or else it will break. Google Cloud can't fully delete all the resources with 'ci-main' in the name - some networking components take a day or two to fully disappear.

What about 'ci-branch-main'?

@hessjcg hessjcg requested a review from jackwotherspoon April 12, 2023 21:29
@jackwotherspoon jackwotherspoon changed the title ci: change name of ci environment to 'ci-nightly' to avoid terraform issues ci: change name of ci environment to 'ci-branch-main' to avoid terraform issues Apr 12, 2023
@jackwotherspoon
Copy link
Collaborator

Changing name as short-term fix, long-term fix we will want to dynamically change the env name and work will be tracked by #302

@hessjcg hessjcg merged commit cf01c26 into main Apr 12, 2023
@hessjcg hessjcg deleted the fix-e2e-main branch April 12, 2023 21:32
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.

2 participants