turborepo
Send task summaries as tasks finish
#4913
Merged

Send task summaries as tasks finish #4913

mehulkar
Create spacesClient struct to make requests to spaces
5855a251
mehulkar Post run start at the beginning of the run
d3efd089
mehulkar Close/POST tasks as they finish
9c049876
mehulkar Remove wrapper method for PATCH request
f8bdc263
mehulkar Remove api client from runsummary struct, only used by spaces client
87647e0a
mehulkar Move constants to the file they are used in
d9e77750
mehulkar Put all errors in the same place, no need to distinguish
02bef6ab
vercel
turbo-orchestrator turbo-orchestrator added team: turborepo
github-actions
mehulkar Make requests via a goroutine and wait on all requests to be done
dcf3001c
mehulkar Add another error condition
195116e9
mehulkar Make unlinked error generic and consolidate to one place
ea92a70a
mehulkar Always decrement waitgroup counter if we're throwing away request
0d17035e
mehulkar Make error/help message for linking better
a1cc4da3
mehulkar Better error method
8e60c590
mehulkar Remove extranneous check
26480f36
mehulkar Move erorr making to req struct instance
dedb97ee
mehulkar Consistent error and debug messages
5f59f5d2
mehulkar Lazily compute req urls and set response on onDone handler
1601f992
mehulkar Block all requests on the first run POST request
39d7e89b
mehulkar Shuffle methods around for readability
d05ea232
mehulkar give spacesClient access to rsm
b67511b2
mehulkar Consolidate error msg when there is no spaceId
37a183c5
mehulkar Remove redundant check for runID when posting tasks
c7ee5b37
mehulkar Better comments
d96d4b15
mehulkar Standardized error message
50d1adfa
mehulkar check for run id first so error messages wont be duplicated
d24bec75
mehulkar Parallelize requests into 8 goroutines
be6c9cd5
mehulkar Use a single wait group
e3cb1448
mehulkar reduce diff
c98a04f8
mehulkar remove unnecessary wrapper method
d74acd86
mehulkar Move the signal internal to spaceRun
9722fe8d
mehulkar TODO notes
c6c44397
mehulkar wait for run create channel to close as new requests come in, not before
46382dce
mehulkar Use req.error for unmarshal error
ff223fe4
mehulkar Remove error return, we just log errors
2e912298
mehulkar rearrange
03f4d789
mehulkar make explicit start()
2260f6d3
mehulkar Make requests in goroutine so they are not blocking when they do star…
867e4c41
mehulkar comments
95a9c63c
mehulkar Use Duration method instead of manually calculating duration
73e354ab
mehulkar move spaceID into spacesClient struct
abeab8f4
mehulkar Skip all requests if there is no spaceId
0d41fea5
mehulkar mehulkar marked this pull request as ready for review 2 years ago
mehulkar mehulkar requested a review 2 years ago
mehulkar mehulkar requested a review from nathanhammond nathanhammond 2 years ago
mehulkar mehulkar requested a review from arlyon arlyon 2 years ago
mehulkar mehulkar requested a review from gsoltis gsoltis 2 years ago
mehulkar mehulkar requested a review from chris-olszewski chris-olszewski 2 years ago
mehulkar Merge branch 'main' into mehulkar/turbo-916-runs-send-task-summaries-…
72d1457d
gsoltis
gsoltis requested changes on 2023-05-12
mehulkar Remove bidirectional relationship
580255e8
mehulkar better comments
c1bb83a8
mehulkar Fix goroutine setup for async task requests (#4924)
0159de90
mehulkar mehulkar requested a review from gsoltis gsoltis 2 years ago
gsoltis
gsoltis requested changes on 2023-05-15
mehulkar Merge branch 'main' into mehulkar/turbo-916-runs-send-task-summaries-…
01a38609
mehulkar Wait for requests to complete before closing channel
62041c0c
mehulkar separate data from resources
6a454db8
mehulkar mehulkar requested a review from gsoltis gsoltis 2 years ago
mehulkar Improve code comments
7b3b6633
mehulkar Merge branch 'main' into mehulkar/turbo-916-runs-send-task-summaries-…
2f6521af
mehulkar Remove unused field
f771e8ba
mehulkar
mehulkar commented on 2023-05-16
gsoltis
gsoltis approved these changes on 2023-05-16
gsoltis gsoltis added pr: fixship
mehulkar Merge branch 'main' into mehulkar/turbo-916-runs-send-task-summaries-…
c9174ec8
mehulkar Check whether spaces is enabled earlier and fewer times
eb30ac35
mehulkar remove extranneous check for spaceId
682630fe
mehulkar use .enabled consistently
cf4e598a
mehulkar Check for linked repo once and disable client if no link
19376548
mehulkar Print errors when disabled
8e8085cd
mehulkar nothing
ae3d8d6f
mehulkar Handle edge case of channel being closed before the reuqest is done
1393df57
mehulkar only add error for missing link if spaces is enabled
110bcd83
mehulkar mehulkar merged 9cb5abc0 into main 2 years ago
mehulkar mehulkar deleted the mehulkar/turbo-916-runs-send-task-summaries-as-tasks-finish branch 2 years ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone