Kyle Carberry
8ac68c95a4
chore: lazily initialize find commands in makefile ( #8030 )
...
Improves make performance for small targets!
2023-06-14 13:17:16 -05:00
Kyle Carberry
7d54fd5e0d
chore: rename store to dbmock for consistency ( #8013 )
2023-06-13 13:57:43 -05:00
Kyle Carberry
28f35393e7
chore: generate and order dbfake funcs automatically ( #7986 )
...
* chore: rename `databasefake` to `dbfake`
* Remove unused method
* chore: add generation to dbfake
* Auto gen on make gen
* Fix preserving imports
* gen dbfake
* Add goimports
* Fix the makefile
* Make it panic instead of a comment
2023-06-12 17:40:58 -05:00
Kyle Carberry
6ac7d86c93
chore: prevent gen from rerunning every time ( #7985 )
2023-06-12 14:45:17 -05:00
Ammar Bandukwala
a540e629e5
ci: improve caching ( #7954 )
2023-06-12 12:09:54 -05:00
Ammar Bandukwala
71c908974c
ci: improve caching ( #7943 )
2023-06-09 16:46:44 -05:00
Steven Masley
065206345e
test: add golden files to enterprise cli ( #7924 )
...
* test: Add golden files to enterprise cli
2023-06-09 11:35:20 -05:00
Dean Sheather
c60ea38691
chore: use gcr.io for postgres image in CI ( #7935 )
2023-06-09 13:39:55 +00:00
Ammar Bandukwala
555ea64669
ci: deduplicate language setup ( #7753 )
...
* Deduplicate actions
* Split up go-race and go-pg
2023-06-01 08:20:49 +00:00
Spike Curtis
cd416c86dd
refactor: workspace builds ( #7541 )
...
* refactor workspace builds
Signed-off-by: Spike Curtis <spike@coder.com>
* make gen
Signed-off-by: Spike Curtis <spike@coder.com>
* Remove ParameterResolver from typescript
Signed-off-by: Spike Curtis <spike@coder.com>
* rename conversion -> database/db2sdk
Signed-off-by: Spike Curtis <spike@coder.com>
* tests for db2sdk
Signed-off-by: Spike Curtis <spike@coder.com>
* Tests for ParameterResolver
Signed-off-by: Spike Curtis <spike@coder.com>
* wsbuilder tests
Signed-off-by: Spike Curtis <spike@coder.com>
* Move parameter validation tests to richparameters_test.go
Signed-off-by: Spike Curtis <spike@coder.com>
* Fix CI generation; rename mock->dbmock
Signed-off-by: Spike Curtis <spike@coder.com>
* Fix test imports
Signed-off-by: Spike Curtis <spike@coder.com>
---------
Signed-off-by: Spike Curtis <spike@coder.com>
2023-05-23 12:06:33 +04:00
Kyle Carberry
a08e8a16ab
chore: switch `make test` to use the standard go format ( #7519 )
...
I find it easier to read.
2023-05-14 21:20:19 -05:00
Kyle Carberry
26490aecca
chore: improve postgres test time by removing cleanup ( #7522 )
...
We don't need to delete databases on cleanup... and we don't need to
always run without a cache either!
2023-05-14 15:32:44 -05:00
Dean Sheather
667d9a7557
chore: add workspaceProxy to helm chart ( #7398 )
2023-05-05 07:07:49 +10:00
Dean Sheather
fa5387ce07
chore: fix make gen ( #7190 )
2023-04-18 17:56:52 +00:00
Steven Masley
9d39371ee0
feat: Option to remove WorkspaceExec from `owner` role ( #7050 )
...
* chore: Add AllResources option for listing all RBAC objects
* Owners cannot do workspace exec site wide
* Fix FE authchecks to valid RBAC resources
2023-04-11 08:57:23 -05:00
Ammar Bandukwala
4b99e2d07e
feat: add YAML support to server ( #6934 )
2023-04-07 22:58:21 +00:00
Mathias Fredriksson
d9d44c1188
ci: Print go test stats ( #6855 )
...
Fixes #6676
2023-04-03 11:07:25 +00:00
Ammar Bandukwala
2bd6d2908e
feat: convert entire CLI to clibase ( #6491 )
...
I'm sorry.
2023-03-23 17:42:20 -05:00
Cian Johnston
9b2abf0952
chore(helm): add unit tests for helm chart ( #6557 )
...
This PR adds a minimum set of Helm tests for the Helm chart.
It's heavily based on the approach in [1], but uses a golden-files-based approach instead.
It also runs helm template directly instead of importing the entire Kubernetes API.
Golden files can be updated by running go test ./helm/tests -update or by running make update-golden-files.
[1] https://github.com/coder/enterprise-helm
Fixes #6552
2023-03-13 13:48:44 +00:00
Ammar Bandukwala
3b73321a6c
feat: refactor deployment config ( #6347 )
2023-03-07 15:10:01 -06:00
Kyle Carberry
8a4a179565
fix: use proper generated cli.md for deploy ( #6323 )
2023-02-23 11:07:57 -06:00
Ammar Bandukwala
f6a8c360e5
feat(docs): rework CLI docs ( #6312 )
2023-02-23 01:53:21 +00:00
Ammar Bandukwala
f05609b4da
chore: format Go more aggressively
2023-02-18 18:32:09 -06:00
Cian Johnston
571f5d0e02
chore: add log_statement=all for test-postgres-docker ( #6025 )
2023-02-03 18:58:31 +00:00
Mathias Fredriksson
981cac5e28
chore: Invert `delay_login_until_ready`, now `login_before_ready` ( #5893 )
2023-01-27 20:07:47 +00:00
Bruno Quaresma
e0d48e7d79
docs: Add CLI docs ( #5879 )
2023-01-27 18:10:40 +00:00
Kira Pilot
e2bea2d20f
chore: autogenerate audit log documentation ( #5862 )
...
* added script for table creation
* added tags to audit-logs.md
* removed log
* removed empty block line
* PR feedback
* modify check_unstaged
* third times the charm maybe
* spelling
* relative path
* excluding from the right script this time
* sorted resources to ensure table order
* running make cmd
* running make again
* ensuring order on subtable
2023-01-26 18:12:12 -05:00
Mathias Fredriksson
2ed70c7af9
chore: Fix make gen for docs/manifest.json ( #5792 )
2023-01-19 18:16:36 +00:00
Dean Sheather
b55cb0cc73
chore: add trivy vulnerability scanning ( #5729 )
2023-01-17 03:43:37 +10:00
Mathias Fredriksson
f3bbf627a3
chore: Update gotestsum to v1.9.0 and remove debugging ( #5726 )
...
* chore: Update gotestsum to v1.9.0 and remove debugging
* chore: Update cloud.google.gpg to fix dogfood build
2023-01-16 17:58:57 +02:00
Marcin Tojek
d9436fab69
docs: API enterprise ( #5625 )
...
* docs: audit, deploymentconfig, files, parameters
* Swagger comments in workspacebuilds.go
* structs in workspacebuilds.go
* workspaceagents: instance identity
* workspaceagents.go in progress
* workspaceagents.go in progress
* Agents
* workspacebuilds.go
* /workspaces
* templates.go, templateversions.go
* templateversion.go in progress
* cancel
* templateversions
* wip
* Merge
* x-apidocgen
* NullTime hack not needed anymore
* Fix: x-apidocgen
* Members
* Fixes
* Fix
* WIP
* WIP
* Users
* Logout
* User profile
* Status suspend activate
* User roles
* User tokens
* Keys
* SSH key
* All
* Typo
* Fix
* Entitlements
* Groups
* SCIM
* Fix
* Fix
* Clean templates
* Sort API pages
* Fix: HashedSecret
* General is first
2023-01-11 16:05:42 +01:00
Marcin Tojek
e67d131514
docs: audit, deploymentconfig, files, parameters ( #5506 )
...
* docs: audit, deploymentconfig, files, parameters
* Fix: mark as binary
* Fix: show format in docs
* Fix: use .swaggo
* Fix: swagger notice
* Swagger notice
2023-01-03 19:21:10 +01:00
Mathias Fredriksson
856f0ab6f5
chore: Improve project-wide prettier formatting and ignored files ( #5505 )
...
* chore: Improve project-wide prettier formatting and ignored files
* chore: `Run make fmt/prettier`
* Fix gitignore for `.vscode` folder so that ! works
* Add comment in `.prettierrc.yaml` to explain `.editorconfig`
* Remove scripts/apidocgen/markdown-template/README.md
* Use `yq` for processing prettierrc, update lib.sh dependency check
* Add `yq` to Dockerfile and Nix
2023-01-03 15:11:13 +02:00
Mathias Fredriksson
bae69df8f9
build: Fix site/bin tar/zstd build step in rare error cases ( #5495 )
2022-12-21 22:59:49 +02:00
Marcin Tojek
dc6d271293
feat: Build framework for generating API docs ( #5383 )
...
* WIP
* Gen
* WIP
* chi swagger
* WIP
* WIP
* WIP
* GetWorkspaces
* GetWorkspaces
* Markdown
* Use widdershins
* WIP
* WIP
* WIP
* Markdown template
* Fix: makefile
* fmt
* Fix: comment
* Enable swagger conditionally
* fix: site
* Default false
* Flag tests
* fix
* fix
* template fixes
* Fix
* Fix
* Fix
* WIP
* Formatted
* Cleanup
* Templates
* BEGIN END SECTION
* subshell exit code
* Fix
* Fix merge
* WIP
* Fix
* Fix fmt
* Fix
* Generic api.md page
* Fix merge
* Link pages
* Fix
* Fix
* Fix: links
* Add icon
* Write manifest file
* Fix fmt
* Fix: enterprise
* Fix: Swagger.Enable
* Fix: rename apidocs to apidoc
* Fix: find -not -prune
* Fix: json not available
* Fix: rename Coderd API to Coder API
* Fix: npm exec
* Fix: api dir
* Fix: by ID
* Fix: string uuid
* Fix: include deleted
* Fix: indirect go.mod
* Fix: source lib.sh
* Fix: shellcheck
* Fix: pushd popd
* Fix: fmt
* Fix: improve workspaces
* Fix: swagger-enable
* Fix
* Fix: mention only HTTP 200
* Fix: IDs
* Fix: https
* Fix: icon
* More APis
* Fix: format swagger.json
* Fix: SwaggerEndpoint
* Fix: SCRIPT_DIR
* Fix: PROJECT_ROOT
* Fix: use code tags in schemas.md
* Fix: examples
* Fix: examples
* Fix: improve format
* Fix: date-time,enums
* Fix: include_deleted
* Fix: array of
* Fix: parameter, response
* Fix: string time or null
* Workspaces: more docs
* Workspaces: more docs
* Fix: renderDisplayName
* Fix: ActiveUserCount
* Fix
* Fix: typo
* Templates: docs
* Notice: incomplete
2022-12-19 18:43:46 +01:00
Mathias Fredriksson
9983c07e13
build: Improve speed of `find` commands in Makefile ( #5463 )
2022-12-19 14:41:36 +02:00
Mathias Fredriksson
44c10bbe3c
build: Fix parallelism of make -j build ( #5438 )
2022-12-15 18:36:37 +02:00
Marcin Tojek
a973c35a02
chore: collect gotestsum TestEvents as workflow artifacts ( #5336 )
2022-12-07 15:04:39 +01:00
Marcin Tojek
cec667d309
fix: prettier misses docs directory ( #5285 )
...
* chore: keep admin/prometheus.md if make target fails
* Address PR comments
* Formatted
* fix: prettier misses docs
* make fmt
* More md files
2022-12-05 12:21:09 +01:00
Marcin Tojek
ee4f0fc592
chore: enable debug logging for gotestsum ( #5248 )
2022-12-02 12:35:14 +01:00
Marcin Tojek
38bdae7016
docs: Prometheus metrics + generator ( #5179 )
...
* docs: Prometheus metrics
* Fix
* Typo
* Typo
* Typo
* Fix: link
* Update docs/admin/prometheus.md
Co-authored-by: Dean Sheather <dean@deansheather.com>
* Update docs/admin/prometheus.md
Co-authored-by: Dean Sheather <dean@deansheather.com>
* Update docs/admin/prometheus.md
Co-authored-by: Dean Sheather <dean@deansheather.com>
* Update docs/admin/prometheus.md
Co-authored-by: Dean Sheather <dean@deansheather.com>
* Update docs/admin/prometheus.md
Co-authored-by: Dean Sheather <dean@deansheather.com>
* Rephrase
* notice
* use ```shell
* Generator
* gosec
* fix: lint
* PR comments
* not needed anymore
Co-authored-by: Dean Sheather <dean@deansheather.com>
Co-authored-by: Geoffrey Huntley <ghuntley@ghuntley.com>
2022-11-30 17:39:51 +01:00
Ammar Bandukwala
73f91e4690
ci: use big runners ( #4990 )
...
* chore: Close idle connections on test cleanup
It's possible that this was the source of a leak on Windows...
* ci: use big runners
* fix: Improve tailnet connections by reducing timeouts
This awaits connection ping before running a dial. Before,
we were hitting the TCP retransmission and handshake timeouts,
which could intermittently add 1 or 5 seconds to a connection
being initialized.
* Add logging to Startupscript test
* Add better logging
* Write startup script logs to fs dir
* Fix startup script test
* Fix startup script test
* Reduce test timeout
* Use central tmp dir in agent
* Adjust output
* Skip startup script test on Windows
Co-authored-by: Kyle Carberry <kyle@carberry.com>
2022-11-13 14:23:23 -06:00
Mathias Fredriksson
5592f85c11
chore: Find source files once in Makefile targets ( #4968 )
2022-11-09 18:39:42 +02:00
Mathias Fredriksson
587924fc42
feat: Add golden files to test cli help output ( #4897 )
2022-11-04 19:48:36 +02:00
Dean Sheather
067362cf31
feat: add windows amd64 installer ( #4719 )
2022-10-26 00:19:54 +10:00
Bruno Quaresma
2a7fe13397
chore: Remove extra typegen ( #4243 )
2022-09-28 16:58:50 +00:00
Dean Sheather
6deef06ad2
feat: secure and cross-domain subdomain-based proxying ( #4136 )
...
Co-authored-by: Kyle Carberry <kyle@carberry.com>
2022-09-22 22:30:32 +00:00
Kyle Carberry
714c366d16
chore: Remove WebRTC networking ( #3881 )
...
* chore: Remove WebRTC networking
* Fix race condition
* Fix WebSocket not closing
2022-09-19 19:46:29 -05:00
Dean Sheather
6e9c05f859
chore: use zstd -6 in dev ( #4092 )
2022-09-16 16:03:16 +00:00
Mathias Fredriksson
21664c5c58
fix: Revert change from zstd level 22 to level 6 compression ( #4086 )
2022-09-16 18:36:11 +03:00