QA: create_project_with_auto_devops_spec.rb is failing on master
On master (7b4130d0), the kubernetes QA specs are currently failing:
Run options: include {:kubernetes=>true}
checking for gcloud... yes
checking for kubectl... yes
gcloud account found. Using: tkuah@gitlab.com
for creating K8s cluster.
Executing `gcloud container clusters create qa-cluster-8c167af2-20190304214336 --enable-basic-auth --zone australia-southeast1-c && gcloud container clusters get-credentials --zone australia-southeast1-c qa-cluster-8c167af2-20190304214336 `
WARNING: Starting in 1.12, new clusters will not have a client certificate issued. You can manually enable (or disable) the issuance of the client certificate using the `--[no-]issue-client-certificate` flag.
WARNING: Currently VPC-native is not the default mode during cluster creation. In the future, this will become the default mode and can be disabled using `--no-enable-ip-alias` flag. Use `--[no-]enable-ip-alias` flag to suppress this warning.
WARNING: Starting in 1.12, default node pools in new clusters will have their legacy Compute Engine instance metadata endpoints disabled by default. To create a cluster with legacy instance metadata endpoints disabled in the default node pool, run `clusters create` with the flag `--metadata disable-legacy-endpoints=true`.
This will enable the autorepair feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-auto-repair for more information on node autorepairs.
WARNING: Starting in Kubernetes v1.10, new clusters will no longer get compute-rw and storage-ro scopes added to what is specified in --scopes (though the latter will remain included in the default --scopes). To use these scopes, add them explicitly to --scopes. To use the new behavior, set container/new_scopes_behavior property (gcloud config set container/new_scopes_behavior true).
Creating cluster qa-cluster-8c167af2-20190304214336 in australia-southeast1-c...
.................................................................................................................................................................done.
Created [https://container.googleapis.com/v1/projects/gitlab-internal-153318/zones/australia-southeast1-c/clusters/qa-cluster-8c167af2-20190304214336].
To inspect the contents of your cluster, go to: https://console.cloud.google.com/kubernetes/workload_/gcloud/australia-southeast1-c/qa-cluster-8c167af2-20190304214336?project=gitlab-internal-153318
kubeconfig entry generated for qa-cluster-8c167af2-20190304214336.
NAME LOCATION MASTER_VERSION MASTER_IP MACHINE_TYPE NODE_VERSION NUM_NODES STATUS
qa-cluster-8c167af2-20190304214336 australia-southeast1-c 1.11.7-gke.4 35.197.176.111 n1-standard-1 1.11.7-gke.4 3 RUNNING
Fetching cluster endpoint and auth data.
kubeconfig entry generated for qa-cluster-8c167af2-20190304214336.
Executing `kubectl config set-credentials qa-cluster-8c167af2-20190304214336-admin --username admin --password meaPuXC2OE8EExrK `
User "qa-cluster-8c167af2-20190304214336-admin" set.
Executing `kubectl create -f -`
serviceaccount "gitlab-account" created
Executing `kubectl --user qa-cluster-8c167af2-20190304214336-admin create -f -`
clusterrolebinding.rbac.authorization.k8s.io "gitlab-account-binding" created
F HTML screenshot: /Users/tkuah/code/gdk-ce/gitlab/qa/tmp/qa-test-2019-03-05-10-42-50-fe51a4dd6b7d243c/./qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb_2019-03-05-10-55-57.128.html
Image screenshot: /Users/tkuah/code/gdk-ce/gitlab/qa/tmp/qa-test-2019-03-05-10-42-50-fe51a4dd6b7d243c/./qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb_2019-03-05-10-55-57.128.png
F HTML screenshot: /Users/tkuah/code/gdk-ce/gitlab/qa/tmp/qa-test-2019-03-05-10-42-50-fe51a4dd6b7d243c/./qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb_2019-03-05-10-56-03.808.html
Image screenshot: /Users/tkuah/code/gdk-ce/gitlab/qa/tmp/qa-test-2019-03-05-10-42-50-fe51a4dd6b7d243c/./qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb_2019-03-05-10-56-03.808.png
Executing `gcloud container clusters delete --zone australia-southeast1-c qa-cluster-8c167af2-20190304214336 --quiet --async `
Failures:
1) Configure Auto DevOps support when rbac is enabled runs auto devops
Failure/Error: pipeline.go_to_job('production')
Capybara::ElementNotFound:
Unable to find visible css ".qa-job-link" with text "production"
# ./qa/qa/page/base.rb:81:in `find_element'
# ./qa/qa/page/project/pipeline/show.rb:46:in `go_to_job'
# ./qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb:80:in `block (5 levels) in <module:QA>'
# ./qa/qa/scenario/actable.rb:14:in `perform'
# ./qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb:79:in `block (4 levels) in <module:QA>'
# ./qa/qa/specs/runner.rb:37:in `perform'
# ./qa/qa/scenario/template.rb:8:in `block in perform'
# ./qa/qa/scenario/template.rb:6:in `tap'
# ./qa/qa/scenario/template.rb:6:in `perform'
# ./qa/qa/scenario/template.rb:29:in `perform'
# ./qa/qa/scenario/template.rb:8:in `block in perform'
# ./qa/qa/scenario/template.rb:6:in `tap'
# ./qa/qa/scenario/template.rb:6:in `perform'
# ./qa/qa/scenario/bootable.rb:14:in `launch!'
2) Configure Auto DevOps support when rbac is enabled user sets application secret variable and Auto DevOps passes it to container
Failure/Error:
Resource::CiVariable.fabricate! do |resource|
resource.project = @project
resource.key = 'K8S_SECRET_OPTIONAL_MESSAGE'
resource.value = 'You can see this application secret'
end
Selenium::WebDriver::Error::UnknownError:
unknown error: Cannot read property 'scrollIntoView' of undefined
(Session info: headless chrome=72.0.3626.119)
(Driver info: chromedriver=2.45.615355 (d5698f682d8b2742017df6c81e0bd8e6a3063189),platform=Mac OS X 10.14.3 x86_64)
# ./qa/qa/page/base.rb:49:in `scroll_to'
# ./qa/qa/page/base.rb:145:in `scroll_to_element'
# ./qa/qa/page/project/sub_menus/settings.rb:51:in `block in hover_settings'
# ./qa/qa/page/project/sub_menus/common.rb:10:in `block in within_sidebar'
# ./qa/qa/page/project/sub_menus/common.rb:9:in `within_sidebar'
# ./qa/qa/page/project/sub_menus/settings.rb:50:in `hover_settings'
# ./qa/qa/page/project/sub_menus/settings.rb:18:in `click_ci_cd_settings'
# ./qa/qa/scenario/actable.rb:14:in `perform'
# ./qa/qa/resource/ci_variable.rb:18:in `fabricate!'
# ./qa/qa/resource/base.rb:70:in `block (2 levels) in fabricate_via_browser_ui!'
# ./qa/qa/resource/base.rb:101:in `log_fabrication'
# ./qa/qa/resource/base.rb:70:in `block in fabricate_via_browser_ui!'
# ./qa/qa/resource/base.rb:93:in `do_fabricate!'
# ./qa/qa/resource/base.rb:69:in `fabricate_via_browser_ui!'
# ./qa/qa/resource/base.rb:61:in `rescue in fabricate!'
# ./qa/qa/resource/base.rb:58:in `fabricate!'
# ./qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb:101:in `block (4 levels) in <module:QA>'
# ./qa/qa/specs/runner.rb:37:in `perform'
# ./qa/qa/scenario/template.rb:8:in `block in perform'
# ./qa/qa/scenario/template.rb:6:in `tap'
# ./qa/qa/scenario/template.rb:6:in `perform'
# ./qa/qa/scenario/template.rb:29:in `perform'
# ./qa/qa/scenario/template.rb:8:in `block in perform'
# ./qa/qa/scenario/template.rb:6:in `tap'
# ./qa/qa/scenario/template.rb:6:in `perform'
# ./qa/qa/scenario/bootable.rb:14:in `launch!'
# ------------------
# --- Caused by: ---
# NotImplementedError:
# NotImplementedError
# ./qa/qa/resource/base.rb:81:in `fabricate_via_api!'
Finished in 13 minutes 56 seconds (files took 6.52 seconds to load)
2 examples, 2 failures
Failed examples:
rspec ./qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb:56 # Configure Auto DevOps support when rbac is enabled runs auto devops
rspec ./qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb:99 # Configure Auto DevOps support when rbac is enabled user sets application secret variable and Auto DevOps passes it to container