Duplicate "Job succeeded" line when viewing job logs
In https://gitlab.com/gitlab-org/omnibus-gitlab/-/jobs/6482554598, I see these duplicate Job succeeded
lines if I keep my window open:
If we look at the Network activity, we see the following requests:
- GET
https://gitlab.com/gitlab-org/omnibus-gitlab/-/jobs/6482554598/trace
The lines
part of the response shows that the Job succeeded
starts at offset 590050:
The response returns a state
of eyJvZmZzZXQiOjU5MDA3Niwic3R5bGUiOnsiZmciOm51bGwsImJnIjpudWxsLCJtYXNrIjowfSwib3Blbl9zZWN0aW9ucyI6e319--12963339c94091a1500f31d79fefe8d0d7c171d7eafb9e4b739cf7472143f1f3
, which base64 decodes:
{"offset":590076,"style":{"fg":null,"bg":null,"mask":0},"open_sections":{}}
The state
value gets passed to the next GET request, which appears to request the last 80 bytes:
- GET
https://gitlab.com/gitlab-org/omnibus-gitlab/-/jobs/6482554598/trace?state=eyJvZmZzZXQiOjU5MDA3Niwic3R5bGUiOnsiZmciOm51bGwsImJnIjpudWxsLCJtYXNrIjowfSwib3Blbl9zZWN0aW9ucyI6e319--12963339c94091a1500f31d79fefe8d0d7c171d7eafb9e4b739cf7472143f1f3
Somehow Job succeeded
moved to offset 590080 instead of 590050?
state
of eyJvZmZzZXQiOjU5MDEwNiwic3R5bGUiOnsiZmciOm51bGwsImJnIjpudWxsLCJtYXNrIjowfSwib3Blbl9zZWN0aW9ucyI6e319--e81801b0c2770145862fd2bd60b313d0b806f401c78de458a0e1977255508c02
base64 decodes:
{"offset":590106,"style":{"fg":null,"bg":null,"mask":0},"open_sections":{}}
- GET
https://gitlab.com/gitlab-org/omnibus-gitlab/-/jobs/6482554598/trace?state=eyJvZmZzZXQiOjU5MDEwNiwic3R5bGUiOnsiZmciOm51bGwsImJnIjpudWxsLCJtYXNrIjowfSwib3Blbl9zZWN0aW9ucyI6e319--e81801b0c2770145862fd2bd60b313d0b806f401c78de458a0e1977255508c02
Here Job succeeded
moved to offset 590106:
In this last request, the state
has an offset that equals the size of the log:
{"offset":590156,"style":{"fg":null,"bg":null,"mask":0},"open_sections":{}}