Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: display build timings when all timings are loaded#15728

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

Merged
BrunoQuaresma merged 5 commits intomainfrombq/fix-timings-update
Dec 3, 2024

Conversation

BrunoQuaresma
Copy link
Collaborator

Copy link
Member

@ParkreinerParkreiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks good! Had one question to make sure I'm properly understanding something, but it's tiny and shouldn't cause any problems

Comment on lines 173 to 176
const expectedScriptTimingsCount = workspace.latest_build.resources
.flatMap((r) => r.agents)
.flatMap((a) => a?.scripts)
.filter((s) => s !== undefined).length;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Tiny nit, but I want to say this can be cleaned up as:

constexpectedScriptTimingsCount=workspace.latest_build.resources.flatMap((r)=>r.agents).flatMap((a)=>a?.scripts??[]).length;

BrunoQuaresma reacted with thumbs up emoji
"workspaceBuilds",
workspaceBuildId,
"timings",
{ readyAgentsCount },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

What was thereadyAgentCount value doing before? I see that we were only using it for the query key, and now it's gone

BrunoQuaresma reacted with thumbs up emoji
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It was to refetch the query when a new agent was marked as ready but it was very buggy and a bad decision on my end. The current refetch logic makes more sense and it is easier to follow.

@BrunoQuaresmaBrunoQuaresma merged commitebfc133 intomainDec 3, 2024
29 checks passed
@BrunoQuaresmaBrunoQuaresma deleted the bq/fix-timings-update branchDecember 3, 2024 16:28
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ParkreinerParkreinerParkreiner approved these changes

Assignees

@BrunoQuaresmaBrunoQuaresma

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Build timings: I have to refresh the page to see startup script timing
2 participants
@BrunoQuaresma@Parkreiner

[8]ページ先頭

©2009-2025 Movatter.jp