Online view of HTML artifacts is broken?
Summary
10.1.0rc1-ee is now deployed on GitLab.com so I thought I'd try out the "online view of HTML artifacts" feature we worked on in #34102 (closed) .
I identified a HTML artifact and browsed through to a HTML file, which we can see here: index.html - https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/36481002/artifacts/browse/coverage/
That link "opens in a new window", which sounds promising, but it doesn't work
Steps to reproduce
Click the "index.html" link
What is the current bug behavior?
Takes you to a 404 page - https://gitlab-org.gitlab.io/gitlab-ce/-/jobs/36481002/artifacts/file/coverage/index.html
What is the expected correct behavior?
It should take you to https://gitlab-org.gitlab.io/-/gitlab-ce/-/jobs/36481002/artifacts/coverage/index.html (I think). However, navigating there manually gives you a 502 error anyway.
Pages should be converting that URL into an API request to https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-ce/jobs/36481002/artifacts/coverage/index.html - downloading that link manually does seem to work, but time to first byte (using curl -I
) is 18 seconds. The vast majority of that must be the pages daemon waiting for the API server to send its first byte, since we stream the response straight back to the client
Perhaps it's faster with smaller artifacts? I've just noticed that file is 27MiB!
/cc @bikebilly @ayufan @zj