Transient failure in browser_ui/3_create/merge_request/merge_merge_request_from_fork_spec.rb | Create Merge request creation from fork ... | Unable to find css ".flash-notice"
Summary
- Recent
master
failure: https://gitlab.com/gitlab-org/gitlab-qa-mirror/-/jobs/608109864 - First failure recorded in the testcases project is 3 months ago: https://gitlab.com/gitlab-org/gitlab-qa/-/jobs/479708152
Stack trace
1) Create Merge request creation from fork user forks a project, submits a merge request and maintainer merges it
Failure/Error:
merge_request = Resource::MergeRequestFromFork.fabricate_via_browser_ui! do |merge_request|
merge_request.fork_branch = 'feature-branch'
end
Capybara::ElementNotFound:
Unable to find css ".flash-notice"
# /usr/local/bundle/gems/capybara-3.29.0/lib/capybara/node/finders.rb:296:in `block in synced_resolve'
# /usr/local/bundle/gems/capybara-3.29.0/lib/capybara/node/base.rb:83:in `synchronize'
# /usr/local/bundle/gems/capybara-3.29.0/lib/capybara/node/finders.rb:287:in `synced_resolve'
# /usr/local/bundle/gems/capybara-3.29.0/lib/capybara/node/finders.rb:52:in `find'
# /usr/local/bundle/gems/capybara-3.29.0/lib/capybara/session.rb:749:in `block (2 levels) in <class:Session>'
# /usr/local/bundle/gems/capybara-3.29.0/lib/capybara/session.rb:340:in `within'
# ./qa/page/layout/banner.rb:12:in `has_notice?'
# ./qa/resource/fork.rb:50:in `block in fabricate!'
# ./qa/scenario/actable.rb:16:in `perform'
# ./qa/resource/fork.rb:49:in `fabricate!'
# ./qa/resource/base.rb:30:in `block (2 levels) in fabricate_via_browser_ui!'
# ./qa/resource/base.rb:135:in `log_fabrication'
# ./qa/resource/base.rb:30:in `block in fabricate_via_browser_ui!'
# ./qa/resource/base.rb:118:in `do_fabricate!'
# ./qa/resource/base.rb:29:in `fabricate_via_browser_ui!'
# ./qa/resource/merge_request_from_fork.rb:11:in `block in <class:MergeRequestFromFork>'
# ./qa/resource/base.rb:108:in `instance_exec'
# ./qa/resource/base.rb:108:in `attribute_value'
# ./qa/resource/base.rb:94:in `populate_attribute'
# ./qa/resource/base.rb:161:in `block (2 levels) in attribute'
# ./qa/resource/merge_request_from_fork.rb:16:in `block (2 levels) in <class:MergeRequestFromFork>'
# ./qa/resource/base.rb:116:in `do_fabricate!'
# ./qa/resource/base.rb:29:in `fabricate_via_browser_ui!'
# ./qa/resource/base.rb:21:in `rescue in fabricate!'
# ./qa/resource/base.rb:18:in `fabricate!'
# ./qa/resource/merge_request_from_fork.rb:15:in `block in <class:MergeRequestFromFork>'
# ./qa/resource/base.rb:108:in `instance_exec'
# ./qa/resource/base.rb:108:in `attribute_value'
# ./qa/resource/base.rb:94:in `populate_attribute'
# ./qa/resource/base.rb:161:in `block (2 levels) in attribute'
# ./qa/resource/base.rb:82:in `public_send'
# ./qa/resource/base.rb:82:in `each'
# ./qa/resource/base.rb:82:in `populate'
# ./qa/resource/merge_request_from_fork.rb:24:in `fabricate!'
# ./qa/resource/base.rb:30:in `block (2 levels) in fabricate_via_browser_ui!'
# ./qa/resource/base.rb:135:in `log_fabrication'
# ./qa/resource/base.rb:30:in `block in fabricate_via_browser_ui!'
# ./qa/resource/base.rb:118:in `do_fabricate!'
# ./qa/resource/base.rb:29:in `fabricate_via_browser_ui!'
# ./qa/specs/features/browser_ui/3_create/merge_request/merge_merge_request_from_fork_spec.rb:9:in `block (3 levels) in <module:QA>'
Screenshot / HTML page
Error 500
Logs
"method": "POST",
"path": "/gitlab-qa-sandbox-group/qa-test-2020-06-23-16-14-14-871ffb4373b4fbaa/project-with-code-3a71c43ff386b4e3/-/forks",
"format": "html",
"controller": "Projects::ForksController",
"action": "create",
"status": 302,
"location": "http://gitlab-ee-bd4b9e1e.test/qa-user-b1ae39345a992e43/project-with-code-3a71c43ff386b4e3/-/import",
And then
{
"method": "GET",
"path": "/qa-user-b1ae39345a992e43/project-with-code-3a71c43ff386b4e3/-/import",
"format": "html",
"controller": "Projects::ImportsController",
"action": "show",
"status": 500,
"time": "2020-06-23T16:16:33.460Z",
"params": [
{
"key": "namespace_id",
"value": "qa-user-b1ae39345a992e43"
},
{
"key": "project_id",
"value": "project-with-code-3a71c43ff386b4e3"
}
],
"remote_ip": "172.19.0.3",
"user_id": 5,
"username": "qa-user-b1ae39345a992e43",
"ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/83.0.4103.61 Safari/537.36",
"db_count": 48,
"db_write_count": 2,
"db_cached_count": 7,
"correlation_id": "Vj4XEyFn7D",
"meta.user": "qa-user-b1ae39345a992e43",
"meta.project": "qa-user-b1ae39345a992e43/project-with-code-3a71c43ff386b4e3",
"meta.root_namespace": "qa-user-b1ae39345a992e43",
"meta.caller_id": "Projects::ImportsController#show",
"gitaly_calls": 3,
"gitaly_duration_s": 0.022,
"redis_calls": 9,
"redis_duration_s": 0.003954,
"redis_read_bytes": 187,
"redis_write_bytes": 1613,
"redis_cache_calls": 8,
"redis_cache_duration_s": 0.003714,
"redis_cache_read_bytes": 6,
"redis_cache_write_bytes": 1028,
"redis_shared_state_calls": 1,
"redis_shared_state_duration_s": 0.00024,
"redis_shared_state_read_bytes": 181,
"redis_shared_state_write_bytes": 585,
"queue_duration_s": 0.005382,
"cpu_s": 0.13,
"exception.class": "ActionView::Template::Error",
"exception.message": "No route matches {:action=>\"show\", :controller=>\"projects/find_file\", :id=>nil, :namespace_id=>#<Namespace id: 7, name: \"QA User b1ae39345a992e43\", path: \"qa-user-b1ae39345a992e43\", owner_id: 5, created_at: \"2020-06-23 16:16:25\", updated_at: \"2020-06-23 16:16:25\", type: nil, description: [FILTERED], avatar: nil, membership_lock: false, share_with_group_lock: false, visibility_level: 20, request_access_enabled: true, ldap_sync_status: \"ready\", ldap_sync_error: nil, ldap_sync_last_update_at: nil, ldap_sync_last_successful_update_at: nil, ldap_sync_last_sync_at: nil, description_html: \"\", lfs_enabled: nil, parent_id: nil, shared_runners_minutes_limit: nil, repository_size_limit: nil, require_two_factor_authentication: false, two_factor_grace_period: 48, cached_markdown_version: 1441792, project_creation_level: nil, runners_token: nil, file_template_project_id: nil, saml_discovery_token: nil, runners_token_encrypted: nil, custom_project_templates_group_id: nil, auto_devops_enabled: nil, extra_shared_runners_minutes_limit: nil, last_ci_minutes_notification_at: nil, last_ci_minutes_usage_notification_level: nil, subgroup_creation_level: 1, emails_disabled: nil, max_pages_size: nil, max_artifacts_size: nil, mentions_disabled: nil, default_branch_protection: nil, unlock_membership_to_ldap: nil, max_personal_access_token_lifetime: nil, push_rule_id: nil>, :project_id=>#<Project id:9 qa-user-b1ae39345a992e43/project-with-code-3a71c43ff386b4e3>>}, possible unmatched constraints: [:id]",
"exception.backtrace": [
"config/application.rb:318:in `block (4 levels) in <class:Application>'",
"app/helpers/projects_helper.rb:638:in `find_file_path'",
"app/helpers/application_helper.rb:105:in `body_data'",
"app/views/layouts/application.html.haml:7",
"app/views/layouts/project.html.haml:14",
"app/controllers/application_controller.rb:133:in `render'",
"ee/lib/gitlab/ip_address_state.rb:10:in `with'",
"ee/app/controllers/ee/application_controller.rb:44:in `set_current_ip_address'",
"app/controllers/application_controller.rb:490:in `set_current_admin'",
"lib/gitlab/session.rb:11:in `with_session'",
"app/controllers/application_controller.rb:481:in `set_session_storage'",
"app/controllers/application_controller.rb:475:in `set_locale'",
"lib/gitlab/error_tracking.rb:51:in `with_context'",
"app/controllers/application_controller.rb:540:in `sentry_context'",
"app/controllers/application_controller.rb:468:in `block in set_current_context'",
"lib/gitlab/application_context.rb:52:in `block in use'",
"lib/gitlab/application_context.rb:52:in `use'",
"lib/gitlab/application_context.rb:20:in `with_context'",
"app/controllers/application_controller.rb:461:in `set_current_context'",
"ee/lib/gitlab/jira/middleware.rb:19:in `call'"
],
"db_duration_s": 0.02458,
"view_duration_s": 0.0,
"duration_s": 0.16066
}
Edited by Will Meek