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

Enable datadog chart EKS E2E tests in CI #1320

Merged
merged 19 commits into from
Feb 21, 2024
Merged

Conversation

fanny-jiang
Copy link
Contributor

@fanny-jiang fanny-jiang commented Feb 13, 2024

What this PR does / why we need it:

Enable Datadog E2E in EKS tests in CI. E2E tests run when a branch is merged to main (ignores docs changes). E2E tests can be run manually if a commit is made to a non-main branch.

  • Update test-infra-definitions runner image
  • Update go dependencies
  • Cleanup TODOs and remove extraneous code
  • Update tests to use testing.Run() so that each subtest is printed in the go test summary

Test run: https://gitlab.ddbuild.io/DataDog/helm-charts/-/jobs/436459182

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • fixes #

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • Chart Version bumped
  • Documentation has been updated with helm-docs (run: .github/helm-docs.sh)
  • CHANGELOG.md has been updated
  • Variables are documented in the README.md
  • For Datadog Operator chart or value changes update the test baselines (run: make update-test-baselines)

@@ -1,7 +1,3 @@
variables:
# Do not modify this - must be the repository name for Kubernetes gitlab runners to run
KUBERNETES_SERVICE_ACCOUNT_OVERWRITE: helm-charts
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines -20 to -26
# Update awscli v2
- aws --version
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
- unzip awscliv2.zip
- ./aws/install --update
- aws --version
# Setup AWS Credentials
Copy link
Contributor Author

@fanny-jiang fanny-jiang Feb 15, 2024

Choose a reason for hiding this comment

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

Updated test-infra-definitions runner image uses newer awscli v2, so we don't need to update the version in the job

@fanny-jiang fanny-jiang changed the title test e2e in ci Enable datadog chart E2E tests in CI Feb 16, 2024
@fanny-jiang fanny-jiang added the chart/datadog This issue or pull request is related to the datadog chart label Feb 16, 2024
@fanny-jiang fanny-jiang marked this pull request as ready for review February 16, 2024 19:02
@fanny-jiang fanny-jiang requested a review from a team as a code owner February 16, 2024 19:02
@fanny-jiang fanny-jiang changed the title Enable datadog chart E2E tests in CI Enable datadog chart EKS E2E tests in CI Feb 16, 2024
}
} else {
err = fmt.Errorf("could not create Kubernetes client, cluster kubeconfig is nil")
}
}
if err != nil {
t.Skipf("Skipping test. Encountered problem creating or updating E2E stack: %s", err)
t.Errorf("Skipping tests. Encountered problem creating or updating E2E stack: %s", err)
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 the job fail if there's an issue creating the E2E environment.

@fanny-jiang fanny-jiang requested a review from levan-m February 20, 2024 20:03
@fanny-jiang fanny-jiang merged commit 96399e1 into main Feb 21, 2024
10 checks passed
@fanny-jiang fanny-jiang deleted the fanny/CECO-509/e2e-ci branch February 21, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chart/datadog This issue or pull request is related to the datadog chart tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants