Ammar Bandukwala
761ed7bf63
fix: rm pull request template ( #6533 )
...
It doesn't seem like this was helping anything.
2023-03-10 03:53:48 +10:00
Steven Masley
2abae42cec
feat: Ignore agent pprof port in listening ports ( #6515 )
...
* feat: Ignore agent pprof port in listening ports
2023-03-09 10:53:00 -06:00
Steven Masley
3de29307b5
chore: Remove some of the external enum comments in typescript ( #6530 )
...
* chore: Remove some of the external enum comments in typescript
handle clibase types manually
2023-03-09 10:46:23 -06:00
Marcin Tojek and Cian Johnston
c2787e3a8e
docs: describe rich parameters ( #6527 )
...
* WIP
* WIP
* docs: describe rich parameters
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Strip migration
* Fix
---------
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
2023-03-09 17:19:48 +01:00
Kyle Carberry
70b093ff2a
fix: filter session count sums by created_at ( #6529 )
...
Fixes the session totals being waaaaay too high!
2023-03-09 17:08:41 +02:00
Kyle Carberry
1cc10f2ffb
fix: only sum connection latencies when they are set ( #6524 )
...
This was producing a median that didn't make sense.
2023-03-09 03:53:09 +00:00
Ben Potter
1199a9330a
chore: add fly.io install source ( #6509 )
2023-03-09 03:16:55 +00:00
Kyle Carberry
a78786119d
chore: resolve race when running load tests with logs ( #6523 )
...
See https://github.com/coder/coder/actions/runs/4370166746/jobs/7644793277
2023-03-08 21:12:20 -06:00
Kyle Carberry
5304b4e483
feat: add connection statistics for workspace agents ( #6469 )
...
* fix: don't make session counts cumulative
This made for some weird tracking... we want the point-in-time
number of counts!
* Add databasefake query for getting agent stats
* Add deployment stats endpoint
* The query... works?!?
* Fix aggregation query
* Select from multiple tables instead
* Fix continuous stats
* Increase period of stat refreshes
* Add workspace counts to deployment stats
* fmt
* Add a slight bit of responsiveness
* Fix template version editor overflow
* Add refresh button
* Fix font family on button
* Fix latest stat being reported
* Revert agent conn stats
* Fix linting error
* Fix tests
* Fix gen
* Fix migrations
* Block on sending stat updates
* Add test fixtures
* Fix response structure
* make gen
2023-03-08 21:05:45 -06:00
Kyle Carberry
9d40d2ffdc
fix: remove create first user from the cli message ( #6493 )
...
This adjusts our setup to just show the Web UI, since you
can now create everything from there!
2023-03-09 02:54:46 +00:00
Kyle Carberry
db2bdd1cab
fix: pass sdk header transport to websocket connections ( #6521 )
...
Fixes #6520 .
2023-03-09 02:29:02 +00:00
Kyle Carberry
d67552f852
fix: add more cached certificates to azure instance identity ( #6519 )
...
This was failing for GovCloud. Now it falls back to fetch, and a test
has been added to notify when certificates are becoming outdated.
2023-03-08 19:32:10 -06:00
Bruno Quaresma
54bbed8c3c
chore: Fix default password and add more docs about scripts/develop.sh ( #6514 )
2023-03-08 21:50:55 +00:00
Kyle Carberry
7df1e3bdd6
fix: centralize deployment config blocks to resolve race ( #6512 )
...
See https://github.com/coder/coder/actions/runs/4365865438/jobs/7635236079
2023-03-08 16:55:52 +00:00
Ammar Bandukwala
95626d2076
fix: use correct LOG env names ( #6511 )
2023-03-08 16:27:32 +00:00
Marcin Tojek
3b87316ad7
feat: propagate job error codes ( #6507 )
...
* feat: propagate job error_code
* fix
* Fix
* Fix
* Fix
* add errors to typesGenerated
* Address PR comments
* Fix
2023-03-08 16:32:00 +01:00
Kyle Carberry
524b14adbc
fix: fetch provisioner logs after end of logs message ( #6495 )
...
I think this should _actually_ fix it. See
https://github.com/coder/coder/actions/runs/4358242625/jobs/7618562167
The problem was that this loop is ran async so even though
messages are sent in order, we were processing too slowly and
the end of logs was published first.
2023-03-09 01:13:08 +10:00
Cian Johnston
26a725f86d
fix: provisionerd: add more context to logs emitted, fix log level ( #6508 )
...
- Previously, we were logging all provision response logs at level INFO, regardless of the log level of the log streamed from the provisioner. We now log these at the original level (defaulting to INFO).
- Now logging "provision failed" message at level ERROR WARN and including the error field in the message.
2023-03-08 15:12:52 +00:00
Bruno Quaresma
89008125c0
refactor(site): Highlight immutable parameters and do a few tweaks ( #6490 )
2023-03-08 10:52:42 -03:00
Cian Johnston
fe10ba1157
fix: add audit information for WorkspaceBuild.MaxDeadilne ( #6504 )
...
* fix: add audit information for WorkspaceBuild.MaxDeadilne
* make gen
2023-03-08 12:41:57 +00:00
Ammar Bandukwala
3b73321a6c
feat: refactor deployment config ( #6347 )
2023-03-07 15:10:01 -06:00
Kyle Carberry
bb0a996fc2
chore: fix buffered provisioner job logs close flake ( #6492 )
...
See https://github.com/coder/coder/actions/runs/4357599919/jobs/7617111287
2023-03-07 20:08:13 +00:00
Dean Sheather
1bdd2abed7
feat: use JWT ticket to avoid DB queries on apps ( #6148 )
...
Issue a JWT ticket on the first request with a short expiry that
contains details about which workspace/agent/app combo the ticket is
valid for.
2023-03-07 19:38:11 +00:00
Hannes Rehburg
f8494d2bac
Update binary.md ( #6415 )
...
Fixed broken Link to release archive
2023-03-07 12:30:50 -06:00
Kyle Carberry
f287889cd7
chore: move client pubsub for HA coordinator after register ( #6487 )
...
Similar fix that happened for the agent. See:
https://github.com/coder/coder/actions/runs/4356099388/jobs/7613634277
2023-03-07 16:46:54 +00:00
Kyle Carberry
4c204fc348
chore: ensure auto-approve-docs has a deep enough depth ( #6484 )
...
* chore: ensure auto-approve-docs has a deep enough depth
This was failing on numerous PRs.
* Remove check because it isn't working
2023-03-07 10:05:00 -06:00
Kyle Carberry
23bebb40e2
fix: bump migration to resolve duplicate id ( #6486 )
...
This happened because two PRs with different migrations
merged at the same time!
2023-03-07 10:04:06 -06:00
Marcin Tojek
2d4706ac33
feat: mark coder_parameter as "required" ( #6433 )
...
* Add required column
* Pass through providerd
* Pass the required property down
* Optional
* Fix
* Fix
* Fix
* fix
* CLI create: support for optional fields
* Use HTML API to mark fields required
* Fix
* Improve validation
* more fixes
* make fmt
* Fix
* WIP
* Fix: test
* CLI update tets
* OptionalParameterAdded
* Fix: migration
2023-03-07 16:38:31 +01:00
Kyle Carberry
f19076cf06
chore: fix coordinator flake by moving pubsub below register ( #6482 )
...
After making the in-memory pubsub conform to the expectations of
PostgreSQL, this flake started appearing.
This fixes it because the agent socket is registered when a message
is received.
2023-03-07 09:38:18 -06:00
Kira Pilot
ef2e86f309
increase default max-token-duration ( #6467 )
2023-03-07 06:35:48 -08:00
Kyle Carberry
87ed7a7dba
chore: use nil map on agent stats to check if report interval should be returned ( #6479 )
...
See https://github.com/coder/coder/actions/runs/4350638262/jobs/7601537088
2023-03-07 14:25:04 +00:00
Dean Sheather and Bruno Quaresma
66a6b590a1
feat: add template max_ttl ( #6114 )
...
Co-authored-by: Bruno Quaresma <bruno@coder.com >
2023-03-07 14:14:58 +00:00
Cian Johnston
248c53d68d
fix: install terraform in base Docker image ( #6263 )
...
Updates the base Docker image to install Terraform version 1.3.4 (max supported version) by default.
Also updates documentation to reflect this change.
2023-03-07 13:52:45 +00:00
Mathias Fredriksson
0c2b432c1b
feat: Add migration fixer script (for branches) ( #6466 )
2023-03-07 14:47:33 +02:00
Kyle Carberry
fd02f73708
chore: ensure pubsub messages are delivered in order for in-memory variant ( #6474 )
...
PostgreSQL provides this guarantee, which led to some flakes in tests.
See: https://github.com/coder/coder/actions/runs/4350034299/jobs/7600478096
2023-03-07 04:36:25 +00:00
Kyle Carberry
74632e460c
fix: adjust build state permission to require template update ( #6472 )
2023-03-07 04:24:32 +00:00
Kyle Carberry
29ced72cda
chore: fix stats leaking in tests ( #6478 )
...
See https://github.com/coder/coder/actions/runs/4350254306/jobs/7601134509
2023-03-07 04:09:02 +00:00
Kyle Carberry
034641dc77
chore: migrate security checks to run on a cron ( #6477 )
...
They were taking a long time and seemed to be reducing concurrency
for our other CI actions.
2023-03-06 21:46:40 -06:00
Kyle Carberry
7a8ccda40e
chore: copy forced derp websockets to fix flake ( #6475 )
...
See: https://github.com/coder/coder/actions/runs/4350034299/jobs/7600478389
2023-03-06 21:29:41 -06:00
Kyle Carberry
964032d783
chore: ignore query cancel error in activitybump ( #6476 )
...
See https://github.com/coder/coder/actions/runs/4350254306/jobs/7600782432
It's fine to ignore this, because workspace agent stats happen async
and might occur when shutting down.
2023-03-06 21:27:21 -06:00
Kyle Carberry
09f87d1df1
chore: remove empty case for metricscache ( #6473 )
...
This wasn't necessary to test and just caused flakes.
See: https://github.com/coder/coder/actions/runs/4350034299/jobs/7600340648
2023-03-06 21:13:08 -06:00
Kyle Carberry
cf75d7e1fb
fix: clean up idle http conns on wsconncache close ( #6471 )
...
See https://github.com/coder/coder/actions/runs/4346769070/jobs/7593243836
2023-03-06 20:45:49 -06:00
Kyle Carberry
e0137bcff1
fix: ensure tailnet websockets are closed ( #6470 )
...
See: https://github.com/coder/tailscale/pull/10
2023-03-06 20:45:24 -06:00
sharkymark
d8abe37cd7
docs: AWS EKS sessionAffinity for LB external IP to be issued ( #6425 )
2023-03-06 23:40:05 +00:00
Steven Masley
8a6635bf5f
chore: Never run v2 migrations on v1 database ( #6438 )
2023-03-06 13:49:03 -06:00
Mathias Fredriksson and Marcin Tojek
22e3ff96be
feat(agent): Add shutdown lifecycle states and shutdown_script support ( #6139 )
...
* feat(api): Add agent shutdown lifecycle states
* feat(agent): Add shutdown_script support
* feat(agent): Add shutdown_script timeout
* feat(site): Support new agent lifecycle states
---
Co-authored-by: Marcin Tojek <marcin@coder.com >
2023-03-06 21:34:00 +02:00
Ben Potter
02100c64b5
fix: docs auto-approval ( #6450 )
...
* fix: docs auto-approval
* empty commit
2023-03-06 13:31:07 -06:00
Bruno Quaresma
136f23fb4c
refactor(site): Suport template version variables on template creation ( #6434 )
2023-03-06 18:36:19 +00:00
Steven Masley
84dd59ecc2
fix: 'coder update' should always start a workspace ( #6437 )
...
* fix: 'coder update' should always start a workspace
2023-03-06 08:37:11 -06:00
Steven Masley
260b2b2333
fix: 404 template shows error page ( #6441 )
2023-03-06 13:58:36 +00:00