Kyle Carberry
7698cfda72
chore: remove unnecessary extraction library ( #12847 )
...
This was allocating ~256KB on init.
2024-04-02 11:19:54 -04:00
Kyle Carberry
895df54051
fix: separate signals for passive, active, and forced shutdown ( #12358 )
...
* fix: separate signals for passive, active, and forced shutdown
`SIGTERM`: Passive shutdown stopping provisioner daemons from accepting new
jobs but waiting for existing jobs to successfully complete.
`SIGINT` (old existing behavior): Notify provisioner daemons to cancel in-flight jobs, wait 5s for jobs to be exited, then force quit.
`SIGKILL`: Untouched from before, will force-quit.
* Revert dramatic signal changes
* Rename
* Fix shutdown behavior for provisioner daemons
* Add test for graceful shutdown
2024-03-15 13:16:36 +00:00
Danny Kopping
14130deb07
fix: clean template destination path for `pull` ( #12559 )
2024-03-14 12:41:23 +00:00
Marcin Tojek
3f04e98cfa
feat(cli): pull templates in zip format ( #12032 )
2024-02-06 19:17:29 +01:00
Colin Adler
00589d6422
chore: fix lint failures
2023-10-10 11:26:53 -05:00
Colin Adler
c11f241622
feat: add `--version` flag to `coder templates pull`, default to active version ( #10153 )
...
Fixes https://github.com/coder/coder/issues/9837
2023-10-10 10:20:31 -05:00
Cian Johnston
c83af5e627
chore(cli): add linter to detect potential spurious usage of owner user in cli tests ( #10133 )
...
* Detects the following pattern where the CLI is initialized with a client authenticated as the "first user":
client := coderdtest.New(t, ...)
[...]
user := coderdtest.CreateFirstUser(t, client)
[...]
clitest.SetupConfig(t, client, root)
* Updates documentation regarding role permissions on workspaces.
2023-10-10 11:14:20 +01:00
Kayla Washburn
c194119689
chore: rename `AwaitTemplateVersionJobCompleted` and `AwaitWorkspaceBuildJobCompleted` ( #10003 )
2023-10-03 11:02:56 -06:00
Cian Johnston
fd17857095
fix(cli): template pull tests: await template version job before exiting ( #9430 )
2023-08-31 11:40:24 +01:00
Spike Curtis
aed891b4ff
fix: fix coder template pull on Windows ( #9327 )
...
* fix: fix coder template pull on Windows
Signed-off-by: Spike Curtis <spike@coder.com>
* appease linter
Signed-off-by: Spike Curtis <spike@coder.com>
* improvements from code review
Signed-off-by: Spike Curtis <spike@coder.com>
---------
Signed-off-by: Spike Curtis <spike@coder.com>
2023-08-25 10:58:13 +00:00
Spike Curtis
60d5002eb6
refactor: change template archive extraction to be on provisioner ( #9264 )
...
* refactor provisionersdk protocol
Signed-off-by: Spike Curtis <spike@coder.com>
* refactor provisioners to use new protocol
Signed-off-by: Spike Curtis <spike@coder.com>
* refactor provisionerd to use new protocol
Signed-off-by: Spike Curtis <spike@coder.com>
* refactor tests & proto renames
* Fixes from self-review
Signed-off-by: Spike Curtis <spike@coder.com>
* appease fmt & link
Signed-off-by: Spike Curtis <spike@coder.com>
* code review fixes & e2e fixes
Signed-off-by: Spike Curtis <spike@coder.com>
* More fmt
Signed-off-by: Spike Curtis <spike@coder.com>
* Code review fixes
Signed-off-by: Spike Curtis <spike@coder.com>
* new gen; use uuid for session workdir
Signed-off-by: Spike Curtis <spike@coder.com>
* Revert nix-based gen CI task until dogfood is on nix
Signed-off-by: Spike Curtis <spike@coder.com>
* revert deleting dogfood Docker stuff
Signed-off-by: Spike Curtis <spike@coder.com>
* Revert "revert deleting dogfood Docker stuff"
This reverts commit 9762158167
.
---------
Signed-off-by: Spike Curtis <spike@coder.com>
2023-08-25 06:10:15 +00:00
Kyle Carberry
22e781eced
chore: add /v2 to import module path ( #9072 )
...
* chore: add /v2 to import module path
go mod requires semantic versioning with versions greater than 1.x
This was a mechanical update by running:
```
go install github.com/marwan-at-work/mod/cmd/mod@latest
mod upgrade
```
Migrate generated files to import /v2
* Fix gen
2023-08-18 18:55:43 +00:00
Colin Adler
b5c17048c6
chore: upgrade `github.com/codeclysm/extract` to `v3.1.1` ( #8480 )
2023-07-12 14:33:46 -05:00
Ammar Bandukwala
2bd6d2908e
feat: convert entire CLI to clibase ( #6491 )
...
I'm sorry.
2023-03-23 17:42:20 -05:00
Ammar Bandukwala
7a52a9cfc8
fix: flake in template pull ( #6317 )
2023-02-23 04:59:07 +00:00
Ammar Bandukwala
f6a8c360e5
feat(docs): rework CLI docs ( #6312 )
2023-02-23 01:53:21 +00:00
Ammar Bandukwala
f7c10adb04
feat(cli): extract tar in template pull ( #6289 )
2023-02-22 19:29:51 +00:00
Ammar Bandukwala
f05609b4da
chore: format Go more aggressively
2023-02-18 18:32:09 -06:00
Ammar Bandukwala
95fb59696e
Refactor Provisioner to distinguish Plan and Apply ( #5036 )
2022-11-11 16:45:58 -06:00
Kyle Carberry
67c4605370
chore: Reduce test times ( #3856 )
...
* chore: Reduce test times
* Rename IncludeProvisionerD to IncludeProvisionerDaemon
* Make TestTemplateDAUs use Tailnet
2022-09-04 11:28:09 -05:00
Jon Ayers
4b6189c9e9
fix: fix panic in template pull ( #2710 )
2022-06-28 19:54:28 -05:00
Jon Ayers
9b3b6418a2
feat: Add template pull cmd ( #2329 )
2022-06-15 12:42:43 -05:00