Skip to content

Before PR merging, run advance e2e test #423

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/advance-e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: advance-e2e-suite

on:
pull_request:
types: [labeled]

jobs:
e2e-before-merge:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ready-for-merge') }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Install ginkgo
run: go get github.com/onsi/ginkgo/[email protected]

- name: turn off swap
run: sudo swapoff -a

- name: Set netfilter conntrack max
run: sudo sysctl -w net.netfilter.nf_conntrack_max=131072

- name: Run Before-PR-Merging e2e tests
run: yes | GINKGO_FOCUS="\[Before-PR-Merging\]" make test-e2e
2 changes: 1 addition & 1 deletion test/e2e/byohost_reuse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
dockerClient *client.Client
)

var _ = Describe("When BYO Host rejoins the capacity pool", func() {
var _ = Describe("When BYO Host rejoins the capacity pool [Before-PR-Merging]", func() {

var (
ctx context.Context
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/md_scale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"sigs.k8s.io/cluster-api/util"
)

var _ = Describe("When testing MachineDeployment scale out/in", func() {
var _ = Describe("When testing MachineDeployment scale out/in [Before-PR-Merging]", func() {

var (
ctx context.Context
Expand Down