- Notifications
You must be signed in to change notification settings - Fork929
feat: reinitialize agents when a prebuilt workspace is claimed#17475
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
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
49 commits Select commitHold shift + click to select a range
c09c9b9
WIP: agent reinitialization
SasSwart476fe71
fix assignment to nil map
SasSwart8c8bca6
fix: ensure prebuilt workspace agent tokens are reused when a prebuil…
SasSwart7ce4eea
test agent reinitialization
SasSwart52ac64e
remove defunct metric
SasSwart362db7c
Remove todo
SasSwartdcc7379
test that we trigger workspace agent reinitialization under the right…
SasSwartff66b3f
slight improvements to a test
SasSwartefff5d9
review notes to improve legibility
SasSwartcebd5db
add an integration test for prebuilt workspace agent reinitialization
SasSwart2679138
Merge remote-tracking branch 'origin/main' into jjs/prebuilds-agent-r…
SasSwart9feebef
enable the premium license in a prebuilds integration test
SasSwartb117b5c
encapsulate WaitForReinitLoop for easier testing
SasSwarta22b414
introduce unit testable abstraction layers
SasSwart9bbd2c7
test workspace claim pubsub
SasSwart5804201
add tests for agent reinitialization
SasSwart7e8dcee
review notes
SasSwart725f97b
Merge remote-tracking branch 'origin/main' into jjs/prebuilds-agent-r…
SasSwarta9b1567
make fmt lint
SasSwart21ee970
remove go mod replace
SasSwarte54d7e7
remove defunct logging
SasSwart2799858
update dependency on terraform-provider-coder
SasSwart1d93003
update dependency on terraform-provider-coder
SasSwart763fc12
go mod tidy
SasSwart0f879c7
make -B gen
SasSwart61784c9
dont require ids to InsertPresetParameters
SasSwart604eb27
dont require ids to InsertPresetParameters
SasSwartbf4d2cf
fix: set the running agent token
dannykopping38b4f0d
fix: use http client without timeout like we do in connectRPCVersion
dannykopping20df538
review notes
SasSwart4bb3b68
Merge remote-tracking branch 'origin/main' into jjs/prebuilds-agent-r…
SasSwart83972db
bump provisionerd proto version
SasSwart146b158
fix: fetch the previous agent when we need its token for prebuilt wor…
SasSwart5eb16cd
Merge remote-tracking branch 'origin/main' into jjs/prebuilds-agent-r…
SasSwart730d803
make -B lint
SasSwart150adc0
Test GetWorkspaceAgentsByBuildID
SasSwartb4ecf10
Rename GetWorkspaceAgentsByWorkspaceAndBuildNumber
SasSwart3fa3edf
make gen
SasSwart7e45919
fix a race condition
SasSwarta632508
Merge remote-tracking branch 'origin/main' into jjs/prebuilds-agent-r…
SasSwart72125ec
Merge remote-tracking branch 'origin/main' into jjs/prebuilds-agent-r…
SasSwartb65eea7
fix provisionerdserver test for prebuild claims
SasSwarte1339f3
fix race conditions
SasSwartc1a8ba6
Merge remote-tracking branch 'origin/main' into jjs/prebuilds-agent-r…
SasSwart5363dcc
Make TestReinitializeAgent more robust
SasSwart7ad9b6d
fix tests
SasSwart394571d
make -B gen
SasSwart890747b
remove a potential race in reinitialization testing in TestCompleteJob
SasSwartb3870db
fix a potential race in TestReinit
SasSwartFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Merge remote-tracking branch 'origin/main' into jjs/prebuilds-agent-r…
…einit
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitc1a8ba649570a2b9b04c19c3f695bafd0eb6696f
There are no files selected for viewing
1 change: 1 addition & 0 deletionscli/agent.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
You are viewing a condensed version of this merge commit. You can view thefull changes here.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.