diff --git a/.github/workflows/branch-e2e-matrix-trigger.yaml b/.github/workflows/branch-e2e-matrix-trigger.yaml new file mode 100644 index 000000000..5170caf96 --- /dev/null +++ b/.github/workflows/branch-e2e-matrix-trigger.yaml @@ -0,0 +1,18 @@ +name: BranchE2EMatrixTrigger +on: + pull_request_review: + types: [submitted] +permissions: + id-token: write # This is required for requesting the JWT + contents: read # This is required for actions/checkout + statuses: write # ./.github/actions/commit-status/* +jobs: + e2e-matrix: + if: startsWith(github.event.review.body, '/branch-e2e') + uses: ./.github/workflows/e2e-matrix.yaml + with: + git_ref: ${{ github.event.review.commit_id }} + secrets: + E2E_CLIENT_ID: ${{ secrets.E2E_CLIENT_ID }} + E2E_TENANT_ID: ${{ secrets.E2E_TENANT_ID }} + E2E_SUBSCRIPTION_ID: ${{ secrets.E2E_SUBSCRIPTION_ID }} diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index f8c8a113e..44873a1b7 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -37,7 +37,7 @@ jobs: - uses: actions/checkout@v4 with: ref: ${{ inputs.git_ref }} - - if: always() && github.event_name == 'workflow_run' + - if: always() && (github.event_name == 'workflow_run' || github.event_name == 'pull_request_review') uses: ./.github/actions/commit-status/start with: name: ${{ github.workflow }} / e2e (${{ inputs.suite }}) @@ -135,7 +135,7 @@ jobs: cluster_name: ${{ env.CLUSTER_NAME }} acr_name: ${{ env.ACR_NAME }} git_ref: ${{ inputs.git_ref }} - - if: always() && github.event_name == 'workflow_run' + - if: always() && (github.event_name == 'workflow_run' || github.event_name == 'pull_request_review') uses: ./.github/actions/commit-status/end with: name: ${{ github.workflow }} / e2e (${{ inputs.suite }}) diff --git a/test/suites/drift/suite_test.go b/test/suites/drift/suite_test.go index de8f6b127..3261c4923 100644 --- a/test/suites/drift/suite_test.go +++ b/test/suites/drift/suite_test.go @@ -63,6 +63,7 @@ var _ = Describe("Drift", func() { BeforeEach(func() { env.ExpectSettingsOverridden(v1.EnvVar{Name: "FEATURE_GATES", Value: "Drift=true"}) + panic("test should fail") nodePool.Spec.Template.Spec.Requirements = []v1.NodeSelectorRequirement{{ Key: v1.LabelInstanceTypeStable, Operator: v1.NodeSelectorOpIn,