Skip to content

Commit

Permalink
Changes for Flexible IPAM e2e tests (#6991)
Browse files Browse the repository at this point in the history
- add `--skip mode-irrelevant` flag for the Flexible IPAM Kind workflow
  in order to run fewer tests
- remove the Flexible-IPAM builder and job from Jenkins as they are no
  longer used

Signed-off-by: KMAnju-2021 <km074btcse18@igdtuw.ac.in>
  • Loading branch information
KMAnju-2021 authored Mar 3, 2025
1 parent c33622c commit b7e0c38
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 141 deletions.
1 change: 1 addition & 0 deletions .github/workflows/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ jobs:
ANTREA_LOG_DIR=$PWD/log ANTREA_COV_DIR=$PWD/test-ipam-e2e-coverage ./ci/kind/test-e2e-kind.sh \
--encap-mode noEncap \
--coverage \
--skip mode-irrelevant \
--multicast \
--flexible-ipam \
- name: Tar coverage files
Expand Down
2 changes: 0 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ Here are the trigger phrases for individual checks:
* `/test-ipv6-only-e2e`: Linux IPv6 only e2e tests
* `/test-ipv6-only-conformance`: Linux IPv6 only conformance tests
* `/test-ipv6-only-networkpolicy`: Linux IPv6 only networkpolicy tests
* `/test-flexible-ipam-e2e`: Flexible IPAM e2e tests
* `/test-multicast-e2e`: Multicast e2e tests
* `/test-multicluster-e2e`: Multicluster e2e tests
* `/test-vm-e2e`: ExternalNode e2e tests
Expand All @@ -192,7 +191,6 @@ Here are the trigger phrases for individual checks:
* `/test-kind-networkpolicy`: Linux IPv4 networkpolicy tests on Kind cluster.
* `/test-kind-ipv6-only-networkpolicy`: Linux IPv6 only networkpolicy tests on Kind cluster.
* `/test-kind-ipv6-networkpolicy`: Linux dual stack networkpolicy tests on Kind cluster.
* `/test-kind-flexible-ipam-e2e`: Flexible IPAM e2e tests on Kind clusters.
* `/test-kind-all-features-conformance`: Linux IPv4 conformance tests with all features enabled on Kind cluster.
* `/test-kind-whole-conformance`: Linux All conformance tests on Kind cluster.
Expand Down
9 changes: 0 additions & 9 deletions ci/jenkins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,6 @@ DOCKER_REGISTRY="$(head -n1 ci/docker-registry)"
./ci/jenkins/test.sh --testcase multicast-e2e --registry ${DOCKER_REGISTRY}
```

* Flexible-ipam e2e: e2e tests in a flexible-ipam cluster

```shell
#!/bin/bash
set -e
DOCKER_REGISTRY="$(head -n1 ci/docker-registry)"
./ci/jenkins/test.sh --testcase e2e --registry ${DOCKER_REGISTRY} --testbed-type "flexible-ipam"
```

* Kind conformance: conformance tests in a kind cluster

```shell
Expand Down
32 changes: 0 additions & 32 deletions ci/jenkins/jobs/macros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,6 @@
[ "$DOCKER_REGISTRY" != "docker.io" ] || ./ci/jenkins/docker_login.sh --docker-user ${{DOCKER_USERNAME}} --docker-password ${{DOCKER_PASSWORD}}
./ci/jenkins/test.sh --testcase '{conformance_type}' --registry ${{DOCKER_REGISTRY}} --docker-user ${{DOCKER_USERNAME}} --docker-password ${{DOCKER_PASSWORD}}
- builder:
name: builder-flexible-ipam-e2e
builders:
- shell: |-
#!/bin/bash
set -e
DOCKER_REGISTRY="$(head -n1 ci/docker-registry)"
[ "$DOCKER_REGISTRY" != "docker.io" ] || ./ci/jenkins/docker_login.sh --docker-user ${{DOCKER_USERNAME}} --docker-password ${{DOCKER_PASSWORD}}
./ci/jenkins/test.sh --testcase e2e --registry ${{DOCKER_REGISTRY}} --workdir "/home/ubuntu" --kubeconfig "/home/ubuntu/kube.conf" --testbed-type "flexible-ipam"
- builder:
name: builder-flow-visibility
builders:
Expand Down Expand Up @@ -254,28 +244,6 @@
./ci/kind/kind-setup.sh destroy "${{FULL_CLUSTER_NAME}}"
exit $return_code
- builder:
name: builder-kind-flexible-ipam-e2e
builders:
- shell: |-
#!/bin/bash
set -ex
DOCKER_REGISTRY="$(head -n1 ci/docker-registry)"
KIND_TIMEOUT=135
FIRST_VLAN_SUBNET='11=192.168.241.1/24'
SECOND_VLAN_SUBNET='12=192.168.242.1/24'
FULL_CLUSTER_NAME='{kind_cluster_name}'-"${{BUILD_NUMBER}}"
./ci/kind/kind-setup.sh destroy --all --until ${{KIND_TIMEOUT}}
./ci/kind/kind-install.sh
./ci/kind/kind-setup.sh --flexible-ipam create "${{FULL_CLUSTER_NAME}}" --vlan-subnets $FIRST_VLAN_SUBNET --vlan-subnets $SECOND_VLAN_SUBNET
kind export kubeconfig -n "${{FULL_CLUSTER_NAME}}" --kubeconfig ${{PWD}}/.kube/config
set +e
./ci/jenkins/test.sh --testcase e2e --registry ${{DOCKER_REGISTRY}} --kubeconfig ${{PWD}}/.kube/config --testbed-type "kind-flexible-ipam" --kind-cluster-name "${{FULL_CLUSTER_NAME}}"
return_code=$?
set -e
./ci/kind/kind-setup.sh destroy "${{FULL_CLUSTER_NAME}}"
exit $return_code
- builder:
name: builder-rancher-e2e
builders:
Expand Down
37 changes: 0 additions & 37 deletions ci/jenkins/jobs/projects-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1571,43 +1571,6 @@
default-excludes: true
fingerprint: false
only-if-success: false
- '{name}-{test_name}-for-pull-request':
test_name: kind-flexible-ipam-e2e
node: 'kind-flexible-ipam-testbed'
description: 'This is the {test_name} test for {name}.'
branches:
- ${{sha1}}
builders:
- builder-kind-flexible-ipam-e2e:
kind_cluster_name: '{test_name}'
trigger_phrase: ^(?!Thanks for your PR).*/test-kind-flexible-ipam-e2e.*
white_list_target_branches: []
allow_whitelist_orgs_as_admins: true
admin_list: '{antrea_admin_list}'
org_list: '{antrea_org_list}'
white_list: '{antrea_white_list}'
only_trigger_phrase: true
trigger_permit_all: true
status_context: jenkins-kind-flexible-ipam-e2e
status_url: null
success_status: Build finished.
failure_status: Failed. Add comment /test-kind-flexible-ipam-e2e to re-trigger.
error_status: Failed. Add comment /test-kind-flexible-ipam-e2e to re-trigger.
triggered_status: null
started_status: null
wrappers:
- timeout:
fail: true
timeout: 135
type: absolute
publishers:
- archive:
allow-empty: true
artifacts: 'antrea-test-logs.tar.gz'
case-sensitive: true
default-excludes: true
fingerprint: false
only-if-success: false
- 'cloud-{name}-{test_name}-aws-cleanup':
test_name: sriov-secondary-network
description: This is for deleting AWS resources for SRIOV secondary-network test.
Expand Down
60 changes: 0 additions & 60 deletions ci/jenkins/jobs/projects-lab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,66 +46,6 @@
- text:
credential-id: RDIFF_PATH
variable: RDIFF_PATH
- '{name}-{test_name}-no-scm':
test_name: flexible-ipam-e2e-pending-label
node: null
description: 'This is for marking PR as pending for e2e test.'
builders:
- builder-pending-label
trigger_phrase: null
white_list_target_branches: []
allow_whitelist_orgs_as_admins: true
admin_list: []
org_list: []
white_list: []
only_trigger_phrase: false
trigger_permit_all: true
throttle_concurrent_builds_category:
throttle_concurrent_builds_enabled: 'false'
status_context: jenkins-flexible-ipam-e2e
status_url: --none--
success_status: Pending test. Mark as failure. Add comment /test-flexible-ipam-e2e to trigger.
failure_status: Pending test. Mark as failure. Add comment /test-flexible-ipam-e2e to trigger.
error_status: Pending test. Mark as failure. Add comment /test-flexible-ipam-e2e to trigger.
triggered_status: null
started_status: null
wrappers: []
publishers: []
- '{name}-{test_name}-for-pull-request':
test_name: flexible-ipam-e2e
node: 'antrea-flexible-ipam-jumper'
description: 'This is the {test_name} test for {name}.'
branches:
- ${{sha1}}
builders:
- builder-flexible-ipam-e2e
trigger_phrase: ^(?!Thanks for your PR).*/test-flexible-ipam-e2e.*
white_list_target_branches: []
allow_whitelist_orgs_as_admins: true
admin_list: '{antrea_admin_list}'
org_list: '{antrea_org_list}'
white_list: '{antrea_white_list}'
only_trigger_phrase: true
trigger_permit_all: true
throttle_concurrent_builds_category:
- e2e-lock-per-testbed
throttle_concurrent_builds_enabled: 'true'
status_context: jenkins-flexible-ipam-e2e
status_url: --none--
success_status: Build finished.
failure_status: Failed. Add comment /test-flexible-ipam-e2e to re-trigger.
error_status: Failed. Add comment /test-flexible-ipam-e2e to re-trigger.
triggered_status: null
started_status: null
wrappers: []
publishers:
- archive:
allow-empty: true
artifacts: 'antrea-test-logs.tar.gz'
case-sensitive: true
default-excludes: true
fingerprint: false
only-if-success: false
- '{name}-{test_name}-no-scm':
test_name: ipv6-ds-e2e-pending-label
node: null
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/antreapolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5468,7 +5468,7 @@ func createPolicyForFQDNCacheMinTTL(t *testing.T, data *TestData, testFQDN strin

annp, err := data.CreateOrUpdateANNP(builder.Get())
require.NoError(t, err, "error while deploying Antrea policy")
require.NoError(t, data.waitForANNPRealized(t, annp.Namespace, annp.Name, 30*time.Second))
require.NoError(t, data.waitForANNPRealized(t, annp.Namespace, annp.Name, 10*time.Second))
}

// createHttpAgnhostPod creates an agnhost Pod that serves HTTP requests and returns the IP of Pod created.
Expand Down

0 comments on commit b7e0c38

Please sign in to comment.