Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Nov 4, 2024

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.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ethanndickson and the rest of your teammates on Graphite Graphite

@ethanndickson ethanndickson force-pushed the ethan/insta-fail-logs-fix branch 3 times, most recently from 8910f3b to 37f1016 Compare November 4, 2024 04:14
return HttpResponse.json(
calls > 1 ? MockRunningTemplateVersion : MockPendingTemplateVersion,
running ? MockRunningTemplateVersion : MockPendingTemplateVersion,
Copy link
Member Author

@ethanndickson ethanndickson Nov 4, 2024

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 querying versions/{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.

Copy link
Collaborator

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 using running? I can see my self not remembering this in two months.

@ethanndickson ethanndickson marked this pull request as ready for review November 4, 2024 04:15
@ethanndickson ethanndickson force-pushed the ethan/insta-fail-logs-fix branch from 37f1016 to 9a2fc63 Compare November 4, 2024 05:56
@ethanndickson ethanndickson changed the title fix: watch build logs while job is pending or running fix(site): watch build logs while job is pending or running Nov 4, 2024
@ethanndickson ethanndickson force-pushed the ethan/insta-fail-logs-fix branch from 9a2fc63 to c8662c6 Compare November 5, 2024 01:31
@ethanndickson ethanndickson merged commit 8b5a18c into main Nov 5, 2024
29 checks passed
@ethanndickson ethanndickson deleted the ethan/insta-fail-logs-fix branch November 5, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Web UI hangs on template plan failure
2 participants