Running with gitlab-runner 14.1.0 (8925d9a0)  on gitlab-runners-bigbang-gl-packages-privileged-gitlab-runneb7dvc L_wAsvdS section_start:1630338543:resolve_secrets Resolving secrets section_end:1630338543:resolve_secrets section_start:1630338543:prepare_executor Preparing the "kubernetes" executor Using Kubernetes namespace: gitlab-runners Using Kubernetes executor with image registry.dso.mil/platform-one/big-bang/pipeline-templates/pipeline-templates/k3d-builder:0.0.5 ... Using attach strategy to execute scripts... section_end:1630338543:prepare_executor section_start:1630338543:prepare_script Preparing environment Waiting for pod gitlab-runners/runner-lwasvds-project-2317-concurrent-082zm6 to be running, status is Pending Running on runner-lwasvds-project-2317-concurrent-082zm6 via gitlab-runners-bigbang-gl-packages-privileged-gitlab-runneb7dvc... section_end:1630338551:prepare_script section_start:1630338551:get_sources Getting source from Git repository Fetching changes with git depth set to 50... Initialized empty Git repository in /builds/L_wAsvdS/0/platform-one/big-bang/apps/developer-tools/sonarqube/.git/ Created fresh repository. Checking out 7d969ac7 as refs/merge-requests/39/head... Skipping Git submodules setup section_end:1630338552:get_sources section_start:1630338552:step_script Executing "step_script" stage of the job script $ echo -e "\e[0Ksection_start:`date +%s`:cluster_setup[collapsed=true]\r\e[0KCluster Setup" section_start:1630338552:cluster_setup[collapsed=true] Cluster Setup $ if [ -z ${PIPELINE_REPO_BRANCH} ]; then # collapsed multi-line command $ git clone -b ${PIPELINE_REPO_BRANCH} ${PIPELINE_REPO} ${PIPELINE_REPO_DESTINATION} Cloning into '../pipeline-repo'... $ source ${WAIT_PATH} $ i=0; while [ "$i" -lt 12 ]; do docker info &>/dev/null && break; sleep 5; i=$(( i + 1 )) ; done $ docker network create ${CI_JOB_ID} --driver=bridge -o "com.docker.network.driver.mtu"="1450" 81142f3e58aac11e6f2ec55fb9c209ecc47d0f12d5a53d3e9bac4af4eeea13c9 $ k3d cluster create ${CI_JOB_ID} --config ${K3D_CONFIG_PATH} --network ${CI_JOB_ID} INFO[0000] Using config file ../pipeline-repo/jobs/k3d-ci/config.yaml INFO[0000] Prep: Network INFO[0000] Network with name '6078875' already exists with ID '81142f3e58aac11e6f2ec55fb9c209ecc47d0f12d5a53d3e9bac4af4eeea13c9' INFO[0000] Created volume 'k3d-6078875-images' INFO[0001] Creating node 'k3d-6078875-server-0' INFO[0002] Pulling image 'docker.io/rancher/k3s:v1.20.4-k3s1' INFO[0004] Creating LoadBalancer 'k3d-6078875-serverlb' INFO[0005] Pulling image 'docker.io/rancher/k3d-proxy:v4.3.0' INFO[0007] Starting cluster '6078875' INFO[0007] Starting servers... INFO[0007] Starting Node 'k3d-6078875-server-0' INFO[0012] Starting agents... INFO[0012] Starting helpers... INFO[0012] Starting Node 'k3d-6078875-serverlb' INFO[0012] (Optional) Trying to get IP of the docker host and inject it into the cluster as 'host.k3d.internal' for easy access INFO[0016] Successfully added host record to /etc/hosts in 2/2 nodes and to the CoreDNS ConfigMap INFO[0016] Cluster '6078875' created successfully! INFO[0016] --kubeconfig-update-default=false --> sets --kubeconfig-switch-context=false INFO[0016] You can now use it like this: kubectl config use-context k3d-6078875 kubectl cluster-info $ until kubectl get deployment coredns -n kube-system -o go-template='{{.status.availableReplicas}}' | grep -v -e ''; do sleep 1s; done 1 $ if [ ! -z ${PROJECT_NAME} ]; then # collapsed multi-line command namespace/sonarqube created secret/private-registry created secret/private-registry-mil created $ echo -e "\e[0Ksection_end:`date +%s`:cluster_setup\r\e[0K" section_end:1630338591:cluster_setup  $ echo "Installing ${CI_PROJECT_NAME} from ${CI_DEFAULT_BRANCH}" Installing sonarqube from main $ echo -e "\e[0Ksection_start:`date +%s`:package_checkout1[collapsed=true]\r\e[0KPackage Checkout" section_start:1630338591:package_checkout1[collapsed=true] Package Checkout $ git fetch && git checkout ${CI_DEFAULT_BRANCH} From https://repo1.dso.mil/platform-one/big-bang/apps/developer-tools/sonarqube * [new branch] main -> origin/main * [new branch] partybus-sonarqube -> origin/partybus-sonarqube * [new branch] sonarsource-helm-chart -> origin/sonarsource-helm-chart * [new branch] update-init-resources -> origin/update-init-resources Previous HEAD position was 7d969ac updated init containers resources Switched to a new branch 'main' Branch 'main' set up to track remote branch 'main' from 'origin'. $ echo -e "\e[0Ksection_end:`date +%s`:package_checkout1\r\e[0K" section_end:1630338591:package_checkout1  $ echo -e "\e[0Ksection_start:`date +%s`:dependency_up1[collapsed=true]\r\e[0KDependency Install and Wait" section_start:1630338591:dependency_up1[collapsed=true] Dependency Install and Wait $ if [ -f "tests/dependencies.yaml" ]; then # collapsed multi-line command $ if [ -f "tests/dependencies.yaml" ]; then # collapsed multi-line command $ echo -e "\e[0Ksection_end:`date +%s`:dependency_up1\r\e[0K" section_end:1630338591:dependency_up1  $ if [ ! -z ${PROJECT_NAME} ]; then # collapsed multi-line command Helm installing sonarqube/chart into sonarqube namespace using sonarqube/tests/test-values.yaml for values Release "sonarqube" does not exist. Installing it now. NAME: sonarqube LAST DEPLOYED: Mon Aug 30 15:49:51 2021 NAMESPACE: sonarqube STATUS: deployed REVISION: 1 NOTES: 1. Get the application URL by running these commands: export POD_NAME=$(kubectl get pods --namespace sonarqube -l "app=sonarqube,release=sonarqube" -o jsonpath="{.items[0].metadata.name}") echo "Visit http://127.0.0.1:8080 to use your application" kubectl port-forward $POD_NAME 8080:9000 -n sonarqube $ sleep 10 # collapsed multi-line command $ if [ -d "chart/templates/tests" ]; then # collapsed multi-line command NAME: sonarqube LAST DEPLOYED: Mon Aug 30 15:49:51 2021 NAMESPACE: sonarqube STATUS: deployed REVISION: 1 TEST SUITE: sonarqube-cypress-sa Last Started: Mon Aug 30 15:51:46 2021 Last Completed: Mon Aug 30 15:51:46 2021 Phase: Succeeded TEST SUITE: sonarqube-cypress-config Last Started: Mon Aug 30 15:51:46 2021 Last Completed: Mon Aug 30 15:51:46 2021 Phase: Succeeded TEST SUITE: sonarqube-cypress-role Last Started: Mon Aug 30 15:51:46 2021 Last Completed: Mon Aug 30 15:51:46 2021 Phase: Succeeded TEST SUITE: sonarqube-cypress-rolebinding Last Started: Mon Aug 30 15:51:46 2021 Last Completed: Mon Aug 30 15:51:46 2021 Phase: Succeeded TEST SUITE: sonarqube-cypress-test Last Started: Mon Aug 30 15:51:46 2021 Last Completed: Mon Aug 30 15:52:25 2021 Phase: Succeeded NOTES: 1. Get the application URL by running these commands: export POD_NAME=$(kubectl get pods --namespace sonarqube -l "app=sonarqube,release=sonarqube" -o jsonpath="{.items[0].metadata.name}") echo "Visit http://127.0.0.1:8080 to use your application" kubectl port-forward $POD_NAME 8080:9000 -n sonarqube ***** Start Helm Test Logs ***** ====================================================================================================  (Run Starting)  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ Cypress: 5.0.0 │  │ Browser: Chrome 83 (headless) │  │ Specs: 1 found (sonarqube-health.spec.js) │  └────────────────────────────────────────────────────────────────────────────────────────────────┘ ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: sonarqube-health.spec.js (1 of 1) Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db   Basic Sonarqube  ✓ Check Sonarqube is accessible (3913ms)   1 passing (5s)  (Results)  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ Tests: 1 │  │ Passing: 1 │  │ Failing: 0 │  │ Pending: 0 │  │ Skipped: 0 │  │ Screenshots: 0 │  │ Video: true │  │ Duration: 4 seconds │  │ Spec Ran: sonarqube-health.spec.js │  └────────────────────────────────────────────────────────────────────────────────────────────────┘  (Video)   - Started processing: Compressing to 32 CRF   - Finished processing: /test/cypress/videos/sonarqube-health.spec.js.mp4 (0 seconds) ====================================================================================================  (Run Finished)   Spec Tests Passing Failing Pending Skipped    ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ ✔ sonarqube-health.spec.js 00:04 1 1 - - - │  └────────────────────────────────────────────────────────────────────────────────────────────────┘   ✔ All specs passed! 00:04 1 1 - - -   tar: Removing leading `/' from member names configmap/cypress-videos created ***** End Helm Test Logs ***** $ echo "Upgrading ${CI_PROJECT_NAME} to ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}" Upgrading sonarqube to update-init-resources $ echo -e "\e[0Ksection_start:`date +%s`:package_checkout2[collapsed=true]\r\e[0KPackage Upgrade Checkout" section_start:1630338746:package_checkout2[collapsed=true] Package Upgrade Checkout $ git reset --hard && git clean -fd HEAD is now at ac801c3 Merge branch 'resource-request-qos' into 'main' Removing cypress-artifacts/ Removing cypress-videos.tar.gz Removing cypress-videos.tar.gz.b64 $ git checkout ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME} Switched to a new branch 'update-init-resources' Branch 'update-init-resources' set up to track remote branch 'update-init-resources' from 'origin'. $ echo -e "\e[0Ksection_end:`date +%s`:package_checkout2\r\e[0K" section_end:1630338746:package_checkout2  $ echo -e "\e[0Ksection_start:`date +%s`:dependency_up2[collapsed=true]\r\e[0KDependency Upgrade and Wait" section_start:1630338746:dependency_up2[collapsed=true] Dependency Upgrade and Wait $ if [ -f "tests/dependencies.yaml" ]; then # collapsed multi-line command $ if [ -f "tests/dependencies.yaml" ]; then # collapsed multi-line command $ echo -e "\e[0Ksection_end:`date +%s`:dependency_up2\r\e[0K" section_end:1630338746:dependency_up2  $ if [ ! -z ${PROJECT_NAME} ]; then # collapsed multi-line command Helm installing sonarqube/chart into sonarqube namespace using sonarqube/tests/test-values.yaml for values Release "sonarqube" has been upgraded. Happy Helming! NAME: sonarqube LAST DEPLOYED: Mon Aug 30 15:52:26 2021 NAMESPACE: sonarqube STATUS: deployed REVISION: 2 NOTES: 1. Get the application URL by running these commands: export POD_NAME=$(kubectl get pods --namespace sonarqube -l "app=sonarqube,release=sonarqube" -o jsonpath="{.items[0].metadata.name}") echo "Visit http://127.0.0.1:8080 to use your application" kubectl port-forward $POD_NAME 8080:9000 -n sonarqube $ sleep 10 # collapsed multi-line command $ if [ -d "chart/templates/tests" ]; then # collapsed multi-line command NAME: sonarqube LAST DEPLOYED: Mon Aug 30 15:52:26 2021 NAMESPACE: sonarqube STATUS: deployed REVISION: 2 TEST SUITE: sonarqube-cypress-sa Last Started: Mon Aug 30 15:54:01 2021 Last Completed: Mon Aug 30 15:54:01 2021 Phase: Succeeded TEST SUITE: sonarqube-cypress-config Last Started: Mon Aug 30 15:54:01 2021 Last Completed: Mon Aug 30 15:54:01 2021 Phase: Succeeded TEST SUITE: sonarqube-cypress-role Last Started: Mon Aug 30 15:54:01 2021 Last Completed: Mon Aug 30 15:54:01 2021 Phase: Succeeded TEST SUITE: sonarqube-cypress-rolebinding Last Started: Mon Aug 30 15:54:01 2021 Last Completed: Mon Aug 30 15:54:01 2021 Phase: Succeeded TEST SUITE: sonarqube-cypress-test Last Started: Mon Aug 30 15:54:01 2021 Last Completed: Mon Aug 30 15:54:14 2021 Phase: Failed NOTES: 1. Get the application URL by running these commands: export POD_NAME=$(kubectl get pods --namespace sonarqube -l "app=sonarqube,release=sonarqube" -o jsonpath="{.items[0].metadata.name}") echo "Visit http://127.0.0.1:8080 to use your application" kubectl port-forward $POD_NAME 8080:9000 -n sonarqube Error: pod sonarqube-cypress-test failed ***** Start Helm Test Logs ***** ====================================================================================================  (Run Starting)  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ Cypress: 5.0.0 │  │ Browser: Chrome 83 (headless) │  │ Specs: 1 found (sonarqube-health.spec.js) │  └────────────────────────────────────────────────────────────────────────────────────────────────┘ ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: sonarqube-health.spec.js (1 of 1) Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db   Basic Sonarqube  1) Check Sonarqube is accessible   0 passing (6s)  1 failing  1) Basic Sonarqube Check Sonarqube is accessible:  AssertionError: Timed out retrying: Expected to find content: 'Update your password' but never did. at Context.eval (http://sonarqube-sonarqube:9000/__cypress/tests?p=cypress/integration/sonarqube-health.spec.js:106:8)   (Results)  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ Tests: 1 │  │ Passing: 0 │  │ Failing: 1 │  │ Pending: 0 │  │ Skipped: 0 │  │ Screenshots: 1 │  │ Video: true │  │ Duration: 5 seconds │  │ Spec Ran: sonarqube-health.spec.js │  └────────────────────────────────────────────────────────────────────────────────────────────────┘  (Screenshots)   - /test/cypress/screenshots/sonarqube-health.spec.js/Basic Sonarqube -- Check Sona (1280x720)   rqube is accessible (failed).png  (Video)   - Started processing: Compressing to 32 CRF   - Finished processing: /test/cypress/videos/sonarqube-health.spec.js.mp4 (0 seconds) ====================================================================================================  (Run Finished)   Spec Tests Passing Failing Pending Skipped    ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ ✖ sonarqube-health.spec.js 00:05 1 - 1 - - │  └────────────────────────────────────────────────────────────────────────────────────────────────┘   ✖ 1 of 1 failed (100%) 00:05 1 - 1 - -   tar: Removing leading `/' from member names configmap/cypress-screenshots created tar: Removing leading `/' from member names configmap "cypress-videos" deleted configmap/cypress-videos created ***** End Helm Test Logs ***** NOTICE to MR creators/reviewers: There were errors on upgrade testing. If this package's tests are expected to fail when run twice in a row, please open a ticket to resolve this for the future. Otherwise, take note of artifacts and testing results and ensure that the upgrade path is functional before approving/merging. section_end:1630338855:step_script section_start:1630338855:after_script Running after_script Running after script... $ if [ -e success ]; then # collapsed multi-line command Job Failed, cluster status: NAMESPACE NAME READY STATUS RESTARTS AGE kube-system pod/local-path-provisioner-5ff76fc89d-dt98g 1/1 Running 0 4m34s kube-system pod/metrics-server-86cbb8457f-dwv2n 1/1 Running 0 4m34s kube-system pod/coredns-854c77959c-2fkvm 1/1 Running 0 4m34s sonarqube pod/sonarqube-postgresql-0 1/1 Running 0 4m24s sonarqube pod/sonarqube-sonarqube-658f5db98c-sbddv 1/1 Running 0 109s sonarqube pod/sonarqube-cypress-test 0/1 Error 0 14s NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE default service/kubernetes ClusterIP 10.43.0.1 443/TCP 4m51s kube-system service/kube-dns ClusterIP 10.43.0.10 53/UDP,53/TCP,9153/TCP 4m49s kube-system service/metrics-server ClusterIP 10.43.92.73 443/TCP 4m49s sonarqube service/sonarqube-postgresql-headless ClusterIP None 5432/TCP 4m24s sonarqube service/sonarqube-postgresql ClusterIP 10.43.80.226 5432/TCP 4m24s sonarqube service/sonarqube-sonarqube ClusterIP 10.43.115.210 9000/TCP 4m24s NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE kube-system deployment.apps/local-path-provisioner 1/1 1 1 4m49s kube-system deployment.apps/metrics-server 1/1 1 1 4m49s kube-system deployment.apps/coredns 1/1 1 1 4m49s sonarqube deployment.apps/sonarqube-sonarqube 1/1 1 1 4m24s NAMESPACE NAME DESIRED CURRENT READY AGE kube-system replicaset.apps/local-path-provisioner-5ff76fc89d 1 1 1 4m34s kube-system replicaset.apps/metrics-server-86cbb8457f 1 1 1 4m34s kube-system replicaset.apps/coredns-854c77959c 1 1 1 4m34s sonarqube replicaset.apps/sonarqube-sonarqube-658f5db98c 1 1 1 109s sonarqube replicaset.apps/sonarqube-sonarqube-75c594f6d8 0 0 0 4m24s NAMESPACE NAME READY AGE sonarqube statefulset.apps/sonarqube-postgresql 1/1 4m24s $ echo -e "\e[0Ksection_start:`date +%s`:cluster_clean[collapsed=true]\r\e[0KCluster Cleanup" section_start:1630338855:cluster_clean[collapsed=true] Cluster Cleanup $ k3d cluster delete ${CI_JOB_ID} INFO[0000] Deleting cluster '6078875' INFO[0000] Deleted k3d-6078875-serverlb INFO[0004] Deleted k3d-6078875-server-0 INFO[0004] Deleting image volume 'k3d-6078875-images' INFO[0004] Removing cluster details from default kubeconfig... INFO[0004] Removing standalone kubeconfig file (if there is one)... INFO[0004] Successfully deleted cluster 6078875! $ docker network rm ${CI_JOB_ID} 6078875 $ echo -e "\e[0Ksection_end:`date +%s`:cluster_clean\r\e[0K" section_end:1630338860:cluster_clean  section_end:1630338860:after_script section_start:1630338860:upload_artifacts_on_failure Uploading artifacts for failed job Uploading artifacts... WARNING: images.txt: no matching files  WARNING: tests/cypress/screenshots: no matching files WARNING: tests/cypress/videos: no matching files  cypress-artifacts: found 6 matching files and directories Uploading artifacts as "archive" to coordinator... ok id=6078875 responseStatus=201 Created token=gYKRGSNi section_end:1630338861:upload_artifacts_on_failure section_start:1630338861:cleanup_file_variables Cleaning up file based variables section_end:1630338862:cleanup_file_variables ERROR: Job failed: command terminated with exit code 123