mirror of
				https://github.com/Telecominfraproject/wlan-testing.git
				synced 2025-10-31 02:48:11 +00:00 
			
		
		
		
	Merge remote-tracking branch 'origin/WIFI-9227' into WIFI-9227
# Conflicts: # .github/workflows/interop.yml # .github/workflows/quali.yml
This commit is contained in:
		
							
								
								
									
										274
									
								
								.github/workflows/quali.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										274
									
								
								.github/workflows/quali.yml
									
									
									
									
										vendored
									
									
								
							| @@ -22,11 +22,11 @@ on: | ||||
|         description: "revision of the Open Wifi Helm chart" | ||||
|       ap_models: | ||||
|         required: true | ||||
|         default: "Wallys_DR6018,hfcl_ion4xe,edgecore_eap101,edgecore_ecw5211,cig_wf188n,edgecore_eap102,liteon_wpx8324,hfcl_ion4,indio_um-305ac,hfcl_ion4xi,udaya_a5-id2,cig_wf196" | ||||
|         default: "wallys_dr40x9,hfcl_ion4xe,edgecore_eap101,tp-link_ec420-g1,edgecore_ecw5211,cig_wf188n,edgecore_eap102,cig_wf194c,hfcl_ion4,indio_um-305ac,hfcl_ion4xi,udaya_a5-id2,cig_wf196" | ||||
|         description: "the AP models to test" | ||||
|       ap_version: | ||||
|         required: true | ||||
|         default: "release-latest" | ||||
|         default: "next-latest" | ||||
|         description: "revision of firmware to flash on AP, <branch>-<commit>" | ||||
|       marker_expression: | ||||
|         required: true | ||||
| @@ -37,7 +37,7 @@ on: | ||||
|         default: "" | ||||
|         description: "Use an existing cloud controller, e.g. like qa01 instead of dynamic one" | ||||
|   schedule: | ||||
|     - cron: "35 20 * * 0-4" | ||||
|     - cron: "30 20 * * 0-4" | ||||
|  | ||||
| jobs: | ||||
|   # Set vars | ||||
| @@ -55,23 +55,11 @@ jobs: | ||||
|         id: vars | ||||
|         run: | | ||||
|           echo ::set-output name=openwifi::$(echo "${{ github.event.inputs.openwifi_revision || 'main' }}") | ||||
|           echo ::set-output name=ap_version::$(echo "${{ github.event.inputs.ap_version || 'release-latest' }}") | ||||
|           echo ::set-output name=ap_version::$(echo "${{ github.event.inputs.ap_version || 'next-latest' }}") | ||||
|           echo ::set-output name=marker_expression::$(echo "${{ github.event.inputs.marker_expression || 'ow_sanity_lf' }}") | ||||
|           echo ::set-output name=existing_controller::$(echo "${{ github.event.inputs.existing_controller || 'qa01' }}") | ||||
|  | ||||
|           DOW=$(date +%u) | ||||
|           SLOT=$(( 10#$DOW % 7 % 2 )) # 0 - slot 1, 1 - slot 2 | ||||
|           echo "Current date is $(date --iso-8601=s)" | ||||
|           echo "Current date of week is $DOW which is $(( 10#$DOW % 7 )) in cron notation" | ||||
|           echo "Current slot is $SLOT" | ||||
|           if [[ "$SLOT" -eq "0" ]]; then | ||||
|             echo "Choosing first slot since $SLOT == 0" | ||||
|             AP_MODELS="${{ github.event.inputs.ap_models || 'hfcl_ion4,indio_um-305ac,hfcl_ion4xe,cig_wf188n,edgecore_ecw5211,edgecore_eap101,udaya_a5-id2' }}" | ||||
|           else | ||||
|             echo "Choosing second slot since $SLOT != 0" | ||||
|             AP_MODELS="${{ github.event.inputs.ap_models || 'Wallys_DR6018,hfcl_ion4xi,edgecore_eap102,liteon_wpx8324,cig_wf196' }}" | ||||
|           fi | ||||
|           echo "List of AP models to test - $AP_MODELS" | ||||
|           AP_MODELS="${{ github.event.inputs.ap_models || 'wallys_dr40x9,hfcl_ion4xe,edgecore_eap101,tp-link_ec420-g1,edgecore_ecw5211,cig_wf188n,edgecore_eap102,cig_wf194c,hfcl_ion4,indio_um-305ac,hfcl_ion4xi,udaya_a5-id2,cig_wf196' }}" | ||||
|           AP_MODELS=$(echo $AP_MODELS | sed "s/,/\",\"/g" | sed 's/^/[\"/g' | sed 's/$/\"]/g') | ||||
|           echo "::set-output name=ap_models::${AP_MODELS}" | ||||
|  | ||||
| @@ -84,19 +72,19 @@ jobs: | ||||
|         uses: ./.github/actions/build-and-push-docker | ||||
|         with: | ||||
|           registry: tip-tip-wlan-cloud-docker-repo.jfrog.io | ||||
|           registry_user: ${{ secrets.DOCKER_USER_NAME }} | ||||
|           registry_user: wlan-testing-cicd | ||||
|           registry_password: ${{ secrets.DOCKER_USER_PASSWORD }} | ||||
|  | ||||
|   # Run tests on APs | ||||
|   test-wallys-DR6018: | ||||
|   test-wallys-dr40x9: | ||||
|     needs: [ "vars", "build" ] | ||||
|     runs-on: ubuntu-latest | ||||
|     if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'Wallys_DR6018')" | ||||
|     if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'wallys_dr40x9')" | ||||
|     env: | ||||
|       CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build | ||||
|       CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} | ||||
|       CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} | ||||
|       AP_MODEL: Wallys_DR6018 | ||||
|       AP_MODEL: wallys_dr40x9 | ||||
|     steps: | ||||
|       - name: Set AP model output | ||||
|         id: ap_model | ||||
| @@ -175,17 +163,7 @@ jobs: | ||||
|           allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" | ||||
|           dns_records_to_resolve: "sec-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build gw-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build fms-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build" | ||||
|  | ||||
|       # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: get tests logs | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           kubectl get pods -n ${{ steps.namespace.outputs.name }} | ||||
|           kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///" | ||||
|           podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") | ||||
|           echo $podname | ||||
|           kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true | ||||
|  | ||||
|         # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: delete namespace | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
| @@ -245,8 +223,6 @@ jobs: | ||||
|  | ||||
|       - name: start reservation | ||||
|         run: | | ||||
|           echo ${{ steps.ap_model.outputs.model }} | ||||
|           echo ${{ needs.vars.outputs.openwifi_revision }} | ||||
|           if [ ${{ needs.vars.outputs.existing_controller }} != '' ] | ||||
|           then | ||||
|             python .quali/start_reservation.py --global-inputs '{"Chart Version":"${{ needs.vars.outputs.openwifi_revision }}","AP Model":"${{ steps.ap_model.outputs.model }}","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}"}' "Basic Lab" | ||||
| @@ -308,14 +284,7 @@ jobs: | ||||
|           allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" | ||||
|           dns_records_to_resolve: "sec-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build gw-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build fms-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build" | ||||
|  | ||||
|       # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: get tests logs | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") | ||||
|           kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true | ||||
|  | ||||
|         # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: delete namespace | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
| @@ -436,14 +405,128 @@ jobs: | ||||
|           allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" | ||||
|           dns_records_to_resolve: "sec-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build gw-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build fms-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build" | ||||
|  | ||||
|       # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: get tests logs | ||||
|         # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: delete namespace | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") | ||||
|           kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true | ||||
|         run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }} | ||||
|  | ||||
|       - name: show gw logs | ||||
|         if: failure() | ||||
|         run: kubectl -n openwifi-${{ steps.reservation.outputs.namespace }} logs deployment/owgw | ||||
|  | ||||
|       - name: show fms logs | ||||
|         if: failure() | ||||
|         run: kubectl -n openwifi-${{ steps.reservation.outputs.namespace }} logs deployment/owfms | ||||
|  | ||||
|       - name: show prov logs | ||||
|         if: failure() | ||||
|         run: kubectl -n openwifi-${{ steps.reservation.outputs.namespace }} logs deployment/owprov | ||||
|  | ||||
|       - name: show analytics logs | ||||
|         if: failure() | ||||
|         run: kubectl -n openwifi-${{ steps.reservation.outputs.namespace }} logs deployment/owanalytics | ||||
|  | ||||
|       - name: show subscription (userportal) logs | ||||
|         if: failure() | ||||
|         run: kubectl -n openwifi-${{ steps.reservation.outputs.namespace }} logs deployment/owsub | ||||
|  | ||||
|       - name: show sec logs | ||||
|         if: failure() | ||||
|         run: kubectl -n openwifi-${{ steps.reservation.outputs.namespace }} logs deployment/owsec | ||||
|  | ||||
|       - name: stop reservation | ||||
|         if: always() | ||||
|         run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} | ||||
|  | ||||
|   test-tp-link-ec420-g1: | ||||
|     needs: ["vars", "build"] | ||||
|     runs-on: ubuntu-latest | ||||
|     if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'tp-link_ec420-g1')" | ||||
|     env: | ||||
|       CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build | ||||
|       CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} | ||||
|       CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} | ||||
|       AP_MODEL: tp-link_ec420-g1 | ||||
|     steps: | ||||
|       - name: Set AP model output | ||||
|         id: ap_model | ||||
|         run: | | ||||
|           echo "::set-output name=model::${AP_MODEL}" | ||||
|  | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Set up Python | ||||
|         uses: actions/setup-python@v2 | ||||
|         with: | ||||
|           python-version: "3.8" | ||||
|  | ||||
|       - name: install dependencies | ||||
|         run: pip install -r .quali/requirements.txt | ||||
|  | ||||
|       - name: start reservation | ||||
|         run: | | ||||
|           if [ ${{ needs.vars.outputs.existing_controller }} != '' ] | ||||
|           then | ||||
|             python .quali/start_reservation.py --global-inputs '{"Chart Version":"${{ needs.vars.outputs.openwifi_revision }}","AP Model":"${{ steps.ap_model.outputs.model }}","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}"}' "Basic Lab" | ||||
|           else | ||||
|             python .quali/start_reservation.py --global-inputs '{"Chart Version":"${{ needs.vars.outputs.openwifi_revision }}","AP Model":"${{ steps.ap_model.outputs.model }}"}' "Basic Lab" | ||||
|           fi | ||||
|  | ||||
|       - name: set reservation outputs | ||||
|         if: always() | ||||
|         id: reservation | ||||
|         run: | | ||||
|           echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" | ||||
|           if [ ${{ needs.vars.outputs.existing_controller }} != '' ] | ||||
|           then | ||||
|             echo ::set-output name=namespace::"${{ needs.vars.outputs.existing_controller }}" | ||||
|           else | ||||
|             echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" | ||||
|           fi | ||||
|  | ||||
|       # TODO WIFI-7839 delete when issue is resolved on AWS CLI side | ||||
|       - name: install kubectl | ||||
|         run: | | ||||
|           curl -LO "https://dl.k8s.io/release/v1.23.6/bin/linux/amd64/kubectl" | ||||
|           sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | ||||
|  | ||||
|       - name: get EKS access credentials | ||||
|         run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} | ||||
|  | ||||
|       - name: prepare namespace name | ||||
|         id: namespace | ||||
|         run: | | ||||
|           NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')" | ||||
|           echo "::set-output name=name::${NAMESPACE}" | ||||
|  | ||||
|       - name: prepare configuration | ||||
|         run: | | ||||
|           cat << EOF > lab_info.json | ||||
|           ${{ secrets.LAB_CONFIGURATION_JSON }} | ||||
|           EOF | ||||
|  | ||||
|           DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" | ||||
|           jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json | ||||
|  | ||||
|           # overwrite configuration value from Quali | ||||
|           if [ ${{ needs.vars.outputs.existing_controller }} != '' ] | ||||
|           then | ||||
|             jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json | ||||
|           fi | ||||
|  | ||||
|       - name: run tests | ||||
|         uses: ./.github/actions/run-tests | ||||
|         with: | ||||
|           namespace: ${{ steps.namespace.outputs.name }} | ||||
|           testbed: basic | ||||
|           marker_expression: "${{ needs.vars.outputs.marker_expression }}" | ||||
|           configuration_file: "./lab_info.json" | ||||
|           testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} | ||||
|           additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"' | ||||
|           allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" | ||||
|           dns_records_to_resolve: "sec-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build gw-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build fms-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build" | ||||
|  | ||||
|         # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: delete namespace | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
| @@ -564,14 +647,7 @@ jobs: | ||||
|           allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" | ||||
|           dns_records_to_resolve: "sec-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build gw-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build fms-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build" | ||||
|  | ||||
|       # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: get tests logs | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") | ||||
|           kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true | ||||
|  | ||||
|         # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: delete namespace | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
| @@ -692,14 +768,7 @@ jobs: | ||||
|           allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" | ||||
|           dns_records_to_resolve: "sec-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build gw-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build fms-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build" | ||||
|  | ||||
|       # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: get tests logs | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") | ||||
|           kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true | ||||
|  | ||||
|         # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: delete namespace | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
| @@ -820,14 +889,7 @@ jobs: | ||||
|           allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" | ||||
|           dns_records_to_resolve: "sec-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build gw-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build fms-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build" | ||||
|  | ||||
|       # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: get tests logs | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") | ||||
|           kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true | ||||
|  | ||||
|         # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: delete namespace | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
| @@ -861,15 +923,15 @@ jobs: | ||||
|         if: always() | ||||
|         run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} | ||||
|  | ||||
|   test-liteon-wpx8324: | ||||
|   test-cig-wf194c: | ||||
|     needs: ["vars", "build"] | ||||
|     runs-on: ubuntu-latest | ||||
|     if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'liteon_wpx8324')" | ||||
|     if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'cig_wf194c')" | ||||
|     env: | ||||
|       CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build | ||||
|       CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} | ||||
|       CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} | ||||
|       AP_MODEL: liteon_wpx8324 | ||||
|       AP_MODEL: cig_wf194c | ||||
|     steps: | ||||
|       - name: Set AP model output | ||||
|         id: ap_model | ||||
| @@ -948,14 +1010,7 @@ jobs: | ||||
|           allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" | ||||
|           dns_records_to_resolve: "sec-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build gw-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build fms-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build" | ||||
|  | ||||
|       # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: get tests logs | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") | ||||
|           kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true | ||||
|  | ||||
|         # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: delete namespace | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
| @@ -1076,14 +1131,7 @@ jobs: | ||||
|           allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" | ||||
|           dns_records_to_resolve: "sec-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build gw-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build fms-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build" | ||||
|  | ||||
|       # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: get tests logs | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") | ||||
|           kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true | ||||
|  | ||||
|         # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: delete namespace | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
| @@ -1118,7 +1166,7 @@ jobs: | ||||
|         run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} | ||||
|  | ||||
|   test-indio-um-305ac: | ||||
|     needs: ["vars", "build"] | ||||
|     needs: ["vars", "build", "test-tp-link-ec420-g1"] | ||||
|     runs-on: ubuntu-latest | ||||
|     if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'indio_um-305ac')" | ||||
|     env: | ||||
| @@ -1204,14 +1252,7 @@ jobs: | ||||
|           allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" | ||||
|           dns_records_to_resolve: "sec-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build gw-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build fms-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build" | ||||
|  | ||||
|       # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: get tests logs | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") | ||||
|           kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true | ||||
|  | ||||
|         # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: delete namespace | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
| @@ -1333,14 +1374,7 @@ jobs: | ||||
|           allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" | ||||
|           dns_records_to_resolve: "sec-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build gw-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build fms-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build" | ||||
|  | ||||
|       # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: get tests logs | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") | ||||
|           kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true | ||||
|  | ||||
|         # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: delete namespace | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
| @@ -1376,7 +1410,7 @@ jobs: | ||||
|  | ||||
|   # Test for udaya_a5-id2 | ||||
|   test-udaya-a5-id2: | ||||
|     needs: [ "vars", "build", "test-liteon-wpx8324" ] | ||||
|     needs: [ "vars", "build", "test-cig-wf194c" ] | ||||
|     runs-on: ubuntu-latest | ||||
|     if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'udaya_a5-id2')" | ||||
|     env: | ||||
| @@ -1462,14 +1496,7 @@ jobs: | ||||
|           allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" | ||||
|           dns_records_to_resolve: "sec-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build gw-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build fms-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build" | ||||
|  | ||||
|       # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: get tests logs | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") | ||||
|           kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true | ||||
|  | ||||
|         # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: delete namespace | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
| @@ -1591,14 +1618,7 @@ jobs: | ||||
|           allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" | ||||
|           dns_records_to_resolve: "sec-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build gw-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build fms-${{ steps.reservation.outputs.namespace }}.cicd.lab.wlan.tip.build" | ||||
|  | ||||
|       # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: get tests logs | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") | ||||
|           kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true | ||||
|  | ||||
|         # necessary because if conditionals in composite actions are currently not respected | ||||
|       - name: delete namespace | ||||
|         if: always() | ||||
|         continue-on-error: true | ||||
| @@ -1637,7 +1657,7 @@ jobs: | ||||
|   report: | ||||
|     if: "!cancelled()" | ||||
|     runs-on: ubuntu-latest | ||||
|     needs: [vars, test-wallys-DR6018, test-hfcl-ion4xe, test-edgecore-eap101, test-edgecore-ecw5211, test-cig-wf188n, test-edgecore-eap102, test-liteon-wpx8324, test-hfcl-ion4, test-indio-um-305ac, test-hfcl-ion4xi, test-udaya-a5-id2, test-cig_wf196] | ||||
|     needs: [vars, test-wallys-dr40x9, test-hfcl-ion4xe, test-edgecore-eap101, test-tp-link-ec420-g1, test-edgecore-ecw5211, test-cig-wf188n, test-edgecore-eap102, test-cig-wf194c, test-hfcl-ion4, test-indio-um-305ac, test-hfcl-ion4xi, test-udaya-a5-id2, test-cig_wf196] | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
| @@ -1688,7 +1708,7 @@ jobs: | ||||
|  | ||||
|   # Cleanup | ||||
|   cleanup: | ||||
|     needs: [test-wallys-DR6018, test-hfcl-ion4xe, test-edgecore-eap101, test-edgecore-ecw5211, test-cig-wf188n, test-edgecore-eap102, test-liteon-wpx8324, test-hfcl-ion4, test-indio-um-305ac, test-hfcl-ion4xi, test-udaya-a5-id2, test-cig_wf196] | ||||
|     needs: [test-wallys-dr40x9, test-hfcl-ion4xe, test-edgecore-eap101, test-tp-link-ec420-g1, test-edgecore-ecw5211, test-cig-wf188n, test-edgecore-eap102, test-cig-wf194c, test-hfcl-ion4, test-indio-um-305ac, test-hfcl-ion4xi, test-udaya-a5-id2, test-cig_wf196] | ||||
|     runs-on: ubuntu-latest | ||||
|     if: always() | ||||
|     steps: | ||||
| @@ -1696,5 +1716,5 @@ jobs: | ||||
|       - name: cleanup Docker image | ||||
|         uses: ./.github/actions/cleanup-docker | ||||
|         with: | ||||
|           registry_user: ${{ secrets.DOCKER_USER_NAME }} | ||||
|           registry_user: wlan-testing-cicd | ||||
|           registry_password: ${{ secrets.DOCKER_USER_PASSWORD }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 dutta-rohan
					dutta-rohan