Spike Curtis
5d48122f12
fix: fix PG Coordinator to update when heartbeats (re)start ( #8178 )
...
* fix: fix PG Coordinator to update when heartbeats (re)start
Signed-off-by: Spike Curtis <spike@coder.com >
* rename resetExpiryTimer(WithLock)
Signed-off-by: Spike Curtis <spike@coder.com >
---------
Signed-off-by: Spike Curtis <spike@coder.com >
2023-06-23 10:38:58 +00:00
Spike Curtis
ba9d038d42
feat: add periodic cleanup of PG Coordinator state ( #8142 )
...
* PG Coordinator cleans orphaned state
Signed-off-by: Spike Curtis <spike@coder.com >
* Don't need pubsub
Signed-off-by: Spike Curtis <spike@coder.com >
---------
Signed-off-by: Spike Curtis <spike@coder.com >
2023-06-23 13:23:28 +04:00
Rodrigo Maia
c594f02948
fix(site): display correct user_limit on license ui ( #8118 )
2023-06-23 08:38:36 +02:00
Steven Masley
797e91d4c6
feat: add flag for Windows to create unix compatible filepaths ( #8164 )
...
* feat: add flag for Windows to create unix compatible filepaths
2023-06-22 17:08:12 -05:00
Marcin Tojek
5d45218a5d
docs: application logs ( #8166 )
2023-06-22 23:25:17 +02:00
Mathias Fredriksson and Marcin Tojek
3b9b06fe5a
feat(codersdk/agentsdk): add StartupLogsSender and StartupLogsWriter ( #8129 )
...
This commit adds two new `agentsdk` functions, `StartupLogsSender` and
`StartupLogsWriter` that can be used by any client looking to send
startup logs to coderd.
We also refactor the `agent` to use these new functions.
As a bonus, agent startup logs are separated into "info" and "error"
levels to separate stdout and stderr.
---------
Co-authored-by: Marcin Tojek <mtojek@users.noreply.github.com >
2023-06-22 23:28:59 +03:00
Steven Masley
f56db1b41b
feat: add user search query param on last_seen ( #8139 )
...
* feat: add sql filter for before/after on last_seen column
2023-06-22 15:24:48 -05:00
Colin Adler
97945ae272
fix(scripts): properly shift for --build-base option ( #8167 )
2023-06-22 15:24:03 -05:00
Colin Adler
41e7216df7
chore: upgrade terraform to 1.5.1 ( #8160 )
2023-06-22 19:08:40 +00:00
Marcin Tojek
8e2422d42c
feat: use named loggers in coderd ( #8148 )
2023-06-22 20:09:33 +02:00
Muhammad Atif Ali
1417c12229
ci: get PR number correctly from pull_request event ( #8158 )
2023-06-22 17:19:14 +00:00
Muhammad Atif Ali
2c046ef475
ci: use single quotes when we have backticks in title ( #8159 )
2023-06-22 16:57:44 +00:00
Muhammad Atif Ali
f4a712b271
ci: delete old workflow runs for pr-cleanup.yaml( #8146 )
2023-06-22 19:16:06 +03:00
Muhammad Atif Ali
ea4b9a4354
ci: fix syntax issue in pr-deploy.yaml ( #8154 )
2023-06-22 16:06:15 +00:00
Muhammad Atif Ali
eee4f835ec
ci: fix wrong trigger pr-deploy.yaml ( #8151 )
2023-06-22 18:29:27 +03:00
Muhammad Atif Ali
1ffc8058c2
ci: deploy automatic PR deployments on request ( #8121 )
2023-06-22 14:35:58 +00:00
Spike Curtis
e856491476
feat: enable PG Coordinator as experiment ( #8144 )
...
Signed-off-by: Spike Curtis <spike@coder.com >
2023-06-22 13:12:29 +04:00
Spike Curtis
e738123a9c
chore: log ssh connection disconnects with errors ( #8143 )
...
Signed-off-by: Spike Curtis <spike@coder.com >
2023-06-22 11:37:50 +04:00
Jon Ayers
1b0124ecdb
feat: automatically stop workspaces based on failure_ttl ( #7989 )
2023-06-22 00:33:22 -04:00
Kyle Carberry
d434181941
feat: add cohesive e2e tests for the web terminal, apps, and workspaces ( #8140 )
...
* feat: add cohesive e2e tests for the web terminal, apps, and workspaces
* Fix web terminal flake
2023-06-22 00:21:40 +00:00
Kyle Carberry
2a492b7008
chore: improve the setup experience with various fixes ( #8130 )
...
* Move updatecheck logs to debug mode
This was causing logs to be emitted immediately after
initial setup, which seemed odd for the user.
* Fix setup page text to say "Create" instead of "Setup" account
* Improve copy on the empty workspaces page
- This view can be seen after the user creates their first workspace, so saying first is bad.
- It should describe what a workspace is, so I modified the description.
- The create from template button wasn't helpful!
* Improve the copy for the empty templates view
- This didn't describe what a template actually is.
- The title had the same problem as workspaces, where first makes no sense.
* Improve text consistency on the Create Template page
* Fix "View activity" displaying for non-Enterprise users
This was causing an exception to be thrown.
* Improve messaging of empty groups view
* Appropriately capitalize Workspace and Template
* Improve Docker template taglines
* Fix types
2023-06-21 18:23:59 -05:00
Dean Sheather
a28d422c35
feat: add flag to disable all direct connections ( #7936 )
2023-06-21 22:02:05 +00:00
Asher
96f9e61ca1
Strip CORS headers from applications ( #8057 )
...
The problem is that the headers get doubled up (not overwritten) and
browsers do not like multiple values for the allowed origin even though
it appears the spec allows for it.
We could prefer the application's headers instead of ours but since we
control OPTIONS I think preferring ours will by the more consistent
experience and also aligns with the original RFC.
2023-06-21 13:41:27 -08:00
Dean Sheather
24b95e16c4
feat: add --disable-direct flag to CLI ( #8131 )
2023-06-21 20:22:43 +00:00
Colin Adler
bc739bdfce
feat(cli): add hidden netcheck command ( #8136 )
2023-06-21 14:33:19 -05:00
Colin Adler
7703bb77a7
ci: update sqlc version in security scan ( #8135 )
2023-06-21 13:53:41 -05:00
Eric Paulsen
a0d0e0e72d
docs: add coder ping example for troubleshooting ( #8133 )
2023-06-21 18:07:24 +00:00
Bruno Quaresma
1faed639c4
fix(site): show error when parameter is invalid ( #8125 )
2023-06-21 11:39:28 -03:00
Bruno Quaresma
bce8a983fe
chore(site): remove new filter from experimental ( #8112 )
2023-06-21 10:20:37 -03:00
Spike Curtis
cc17d2feea
refactor: add postgres tailnet coordinator ( #8044 )
...
* postgres tailnet coordinator
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix db migration; tests
Signed-off-by: Spike Curtis <spike@coder.com >
* Add fixture, regenerate
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix fixtures
Signed-off-by: Spike Curtis <spike@coder.com >
* review comments, run clean gen
Signed-off-by: Spike Curtis <spike@coder.com >
* Rename waitForConn -> cleanupConn
Signed-off-by: Spike Curtis <spike@coder.com >
* code review updates
Signed-off-by: Spike Curtis <spike@coder.com >
* db migration order
Signed-off-by: Spike Curtis <spike@coder.com >
* fix log field name last_heartbeat
Signed-off-by: Spike Curtis <spike@coder.com >
* fix heartbeat_from log field
Signed-off-by: Spike Curtis <spike@coder.com >
* fix slog fields for linting
Signed-off-by: Spike Curtis <spike@coder.com >
---------
Signed-off-by: Spike Curtis <spike@coder.com >
2023-06-21 16:20:58 +04:00
Marcin Tojek
4fb4c9b270
chore: add more rules to ensure logs consistency ( #8104 )
2023-06-21 12:00:38 +02:00
Spike Curtis
1c8f564fdb
feat: add logging of ssh connections to agent ( #8096 )
...
* feat: adds logging of ssh connections to agent
Signed-off-by: Spike Curtis <spike@coder.com >
* code review improvements
Signed-off-by: Spike Curtis <spike@coder.com >
---------
Signed-off-by: Spike Curtis <spike@coder.com >
2023-06-21 13:49:58 +04:00
Colin Adler
4a431b6eb8
feat(helm): add coder.command to control pod command ( #8116 )
2023-06-20 22:59:01 +00:00
Colin Adler
15cba05dfc
ci: scan images with sysdig ( #8037 )
2023-06-20 22:58:17 +00:00
Eric Paulsen
b398814ab0
docs: add prometheus scrape_config example ( #8113 )
...
* docs: add prometheus scrape_config example
* make: fmt
* add: label
* fix: spelling
* scheme: http
2023-06-20 21:09:35 +00:00
Colin Adler
7d43f4ceee
chore: update dogfood image ( #8114 )
2023-06-20 15:08:15 -05:00
Kyle Carberry
69f911dfd5
feat: add queue_position and queue_size to provisioner jobs ( #8074 )
2023-06-20 15:07:18 -05:00
Kyle Carberry
bbb0fab1de
chore: merge database gen scripts ( #8073 )
...
* chore: merge database gen scripts
* Fix type params gen
* Merge enum into dbgen
2023-06-20 16:24:33 +00:00
Kyle Carberry
f3b2009499
chore: reorder helm chart to improve ux ( #8108 )
...
It makes no sense that the primary option `env` was so far
below infrequently used options.
2023-06-20 16:23:56 +00:00
Kyle Carberry
467b0a1004
chore: restyle provisioner job output format ( #8106 )
...
Reduce colors and formatting to reduce bugs and increase UNIX-feel.
2023-06-20 16:16:27 +00:00
Colin Adler
823127e761
feat: add healthcheck database section ( #8060 )
2023-06-20 15:13:22 +00:00
Bruno Quaresma
2db4488337
fix(site): fix filters errors display ( #8103 )
2023-06-20 12:08:05 -03:00
Mathias Fredriksson
ea4b7d60d7
fix(agent): refactor trackScriptLogs to avoid deadlock ( #8084 )
...
During agent close it was possible for the startup script logs consumer
to enter a deadlock state where by agent close was waiting via
`a.trackConnGoroutine` and the log reader for a flush event.
This refactor removes the mutex in favor of channel communication and
relies on two goroutines without shared state.
2023-06-20 18:05:11 +03:00
Colin Adler
adf14f1917
chore(cli): warn on template push or create when no lockfile present ( #8059 )
2023-06-20 15:02:44 +00:00
Bruno Quaresma
a47a9b1cfe
fix(site): prevent filter input update when focused ( #8102 )
2023-06-20 13:46:04 +00:00
Mathias Fredriksson
b8ba287128
fix: disable websocket compression for startup logs in Safari ( #8087 )
2023-06-20 16:29:32 +03:00
Bruno Quaresma
c3781d95b4
fix(site): fix build logs route ( #8100 )
2023-06-20 13:24:48 +00:00
Cian Johnston
eb0783ff24
chore(cli): do not assert non-zero host cpu usage ( #8097 )
2023-06-20 13:03:56 +00:00
Cian Johnston
0f754f0bb9
fix(clistat): do not include buffers/cache for host memory used ( #8095 )
2023-06-20 13:29:27 +01:00
Marcin Tojek
06a5e24f5b
skip: TestStatCPUCmd/JSON ( #8093 )
2023-06-20 12:08:11 +00:00