- Notifications
You must be signed in to change notification settings - Fork1k
fix(site): watch build logs while job is pending or running#15341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This stack of pull requests is managed by Graphite.Learn more about stacking. Join@ethanndickson and the rest of your teammates on |
8910f3b
to37f1016
Comparecalls+=1; | ||
returnHttpResponse.json( | ||
calls>1 ?MockRunningTemplateVersion :MockPendingTemplateVersion, | ||
running ?MockRunningTemplateVersion :MockPendingTemplateVersion, |
ethanndicksonNov 4, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This test was failing because as we end up queryingversions/{id}
an extra time with this change. I think we should just manually update the status instead of relying on a specific number of api calls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Can you please leave a comment in the code about why we are usingrunning
? I can see my self not remembering this in two months.
37f1016
to9a2fc63
Compare9a2fc63
toc8662c6
Compare8b5a18c
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Closes#15292.
Currently, if the frontend never sees a build job enter 'running', it'll never end up watching the logs. If we start watching the logs earlier we're able to catch cases where the job goes
pending
->failed
, such as when the build fails immediately.