[Bug] Performance bar fails to render in GitLab configured on relative URL due to assets issue | Failure in /qa/specs/features/browser_ui/non_devops/performance_bar_spec.rb
Summary
Performance bar fails to render in GitLab configured on relative URL (when external_url 'http://localhost/relative'
).
Steps to reproduce
- Configure GitLab using relative url.
- Used
registry.gitlab.com/gitlab-org/build/omnibus-gitlab-mirror/gitlab-ee:d7c2ed247508e72979fc290678bb1c98673a3cd5
to reproduce the issue
- Used
- Enable Performance bar
Actual Results
Performance bar fails to render - assets are not found:
assets/webpack/70.56d29207.chunk.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
assets/webpack/602.639dc27e.chunk.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
assets/webpack/613.2b7c37f7.chunk.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Updated E2E failure to the bug.
Failure on master https://gitlab.com/gitlab-org/gitlab-qa-mirror/-/jobs/1062915441, performance bar isn't appearing.
Stack trace
1) Non-devops Performance bar display when logged in as an admin user shows results for the original request and AJAX requests
Failure/Error: expect(bar_component).to have_performance_bar
expected #has_performance_bar? to return true, got false
# ./qa/specs/features/browser_ui/non_devops/performance_bar_spec.rb:30:in `block (5 levels) in <module:QA>'
# ./qa/scenario/actable.rb:16:in `perform'
# ./qa/specs/features/browser_ui/non_devops/performance_bar_spec.rb:29:in `block (4 levels) in <module:QA>'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
# ./spec/spec_helper.rb:78:in `block (2 levels) in <top (required)>'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
# ./qa/specs/runner.rb:73:in `perform'
# ./qa/scenario/template.rb:10:in `block in perform'
# ./qa/scenario/template.rb:8:in `tap'
# ./qa/scenario/template.rb:8:in `perform'
# ./qa/scenario/template.rb:35:in `perform'
# ./qa/scenario/template.rb:10:in `block in perform'
# ./qa/scenario/template.rb:8:in `tap'
# ./qa/scenario/template.rb:8:in `perform'
# ./qa/scenario/bootable.rb:28:in `launch!'
Screenshot
Edited by Nailia Iskhakova