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: e2e deployment integration test #109

Open
wants to merge 14 commits into
base: e2e-integration-test
Choose a base branch
from

Conversation

eeaton
Copy link
Contributor

@eeaton eeaton commented Oct 15, 2024

Enable e2e integration testing.

This creates a test in Cloud Build that must pass the following before a PR can merge to a major version branch:

  • create a test project on internal CI org
  • run the pre_tf_deploy.sh script to prepare environment and service accounts
  • run terraform apply
  • delete the test project

This does not yet add functional tests for the outcomes of specific processors, but the terratest framework enables us to add those tests in future PRs.

Note on Cloud Build config outside of this repo: I will configure the Cloud Build GitHub app to target only specific test branches in this repo, so as to not interrupt other PR merging to rc1.3.
Once this is ready to merge to rc1.3, I will update the Cloud Build config to also target rc1.3.
We'll also need to evaluate in the future whether/when to extend the checks to main and other version branches (today, main and versions 1.2 / 1.1 aren't automatable)

* squashed commit from forked testing environment. Cloud Build e2e test runs successfully, but some LINT and cleanup issues still to address.
---------
@eeaton eeaton changed the title CI: e2e deployment integration test ci: e2e deployment integration test Oct 15, 2024
@eeaton eeaton marked this pull request as draft October 15, 2024 15:48
… usually works, but last run did have a flaky error about waiting for instance primary state
…ner, use that container image for each step of e2e test, remove extra steps to download gcloud library within the terraform-google-gcloud module, fix the debug disabling of tf dependencies in pre_tf_setup
…ected to run as a highly privileged account, so disable scanning the image and hitting issues with CKV_DOCKER_3
…mail, and ensure it is used consistently across modules
1: "yes | gcloud auth" has some different behavior across Cloud Shell vs local terminal, so it's safer to prompt the user and get a consistent result.
2: update logic to not change ADC if a service account is already in use, but give a warning to set ADC separately
@eeaton eeaton marked this pull request as ready for review October 16, 2024 16:03
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.

1 participant