Skip to content

feat: pull e2e tests into bash script target#102

Merged
anson627 merged 3 commits intomainfrom
hbc/e2e
Feb 28, 2026
Merged

feat: pull e2e tests into bash script target#102
anson627 merged 3 commits intomainfrom
hbc/e2e

Conversation

@bcho
Copy link
Copy Markdown
Member

@bcho bcho commented Feb 28, 2026

This pull request introduces a comprehensive end-to-end (E2E) testing framework for the AKS Flex Node project. It adds infrastructure-as-code for test environments, a reusable bash test orchestrator, Makefile targets for E2E workflows, and a GitHub Actions workflow for automated E2E testing. These changes enable automated validation of both authentication modes (MSI and bootstrap token) in CI and provide tools for local development and debugging of the E2E process.

E2E Testing Infrastructure and Workflow:

  • Added a new Bicep template (hack/e2e/infra/main.bicep) that provisions an AKS cluster and two Ubuntu VMs—one with managed identity (MSI) and one with bootstrap token auth—for E2E testing scenarios. The template outputs resource details for downstream automation.
  • Introduced a GitHub Actions workflow (.github/workflows/e2e-tests.yml) to automate E2E tests on PRs and tagged pushes, including resource provisioning, test execution, log collection, and cleanup, with support for skipping cleanup for debugging.

Developer and CI Tooling:

  • Added new Makefile targets (e2e, e2e-infra, e2e-cleanup) to simplify running E2E tests and managing test infrastructure locally; updated the help target to document these. [1] [2]
  • Added a detailed hack/e2e/README.md with setup instructions, command reference, environment variables, troubleshooting, and project layout to help developers run and debug E2E tests locally.

Test Orchestration and Cleanup:

  • Added hack/e2e/lib/cleanup.sh, providing robust log collection from both VMs and the cluster, as well as a cleanup routine for Azure resources, supporting both manual and automated E2E runs.
@bcho bcho marked this pull request as ready for review February 28, 2026 01:53
@anson627 anson627 merged commit 0eeebeb into main Feb 28, 2026
9 checks passed
@bcho bcho deleted the hbc/e2e branch February 28, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants