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
Dean Sheather
819622182b
chore: parallel makefile attempt 3 ( #3926 )
...
* Revert "chore: Revert parallel Makefile builds (#3918 )"
This reverts commit b077f71015
.
* fix: fix release workflow with parallel makefile
* fix: mark generated files as fresh during releases
2022-09-08 02:40:17 +10:00
Kyle Carberry
b077f71015
chore: Revert parallel Makefile builds ( #3918 )
...
This was breaking the release process. Namely it was running
the `gen` targets due to the dependency tree, which was failing
on macOS and Linux runners. This revert can be reverted once
we fix that up.
2022-09-07 01:56:51 +00:00
Dean Sheather
419d701927
chore: parallel builds with Makefile ( #3854 )
...
* Revert "revert: Makefile buff-ification (#3700 ) (#3848 )"
This reverts commit e490bdd531
.
* fix: fix slim targets in makefile
* fix: don't clobber slim binaries, make sure they're in the correct location
2022-09-06 17:27:06 +00:00
Kyle Carberry
e490bdd531
revert: Makefile buff-ification ( #3700 ) ( #3848 )
...
This caused the following issues:
- Slim binaries weren't being updated.
- The coder.tar.ztd was misplaced.
- There is no coder.sha1 file with proper filenames.
This should be reintroduced in a future change with those fixes.
2022-09-02 14:46:58 -05:00
Dean Sheather
e1a4f3a16b
Makefile buff-ification ( #3700 )
...
Remove old go_build_matrix and go_build_slim scripts in favor of full makefile-ification.
2022-09-02 12:58:23 +00:00
Ammar Bandukwala
30f8fd9b95
Daily Active User Metrics ( #3735 )
...
* agent: add StatsReporter
* Stabilize protoc
2022-09-01 14:58:23 -05:00
Mathias Fredriksson
dc9b4155e0
feat: Generate DB unique constraints as enums ( #3701 )
...
* feat: Generate DB unique constraints as enums
This fixes a TODO from #3409 .
2022-08-29 14:56:51 +03:00
Mathias Fredriksson
7a71180ae6
chore: Enable comments for database dump / models ( #3661 )
2022-08-24 12:44:30 +00:00
Spike Curtis
690e6c6585
Check AGPL code doesn't import enterprise ( #3602 )
...
* Check AGPL code doesn't import enterprise
Signed-off-by: Spike Curtis <spike@coder.com>
* use error/log instead of echo/exit
Signed-off-by: Spike Curtis <spike@coder.com>
Signed-off-by: Spike Curtis <spike@coder.com>
2022-08-19 17:49:08 +00:00
Joe Previte
aabb72783c
docs: update CONTRIBUTING requirements ( #3541 )
...
* docs: update CONTRIBUTING requirements
* Update docs/CONTRIBUTING.md
* refactor: remove dev from Makefile
* fixup: add linux section
2022-08-18 17:11:58 +00:00
Mathias Fredriksson
d7dee2c069
fix: Improve code coverage reporting in codecov ( #2715 )
...
* fix: Remove explicit coverpkg github.com/coder/coder/codersdk
This package is already covered by ./...
* fix: Ignore test utils in coverage (clitest, coderdtest, ptytest)
2022-07-25 19:55:19 +03:00
Mathias Fredriksson
75ff579051
fix: Decrease postgres test timeout (`make test-postgres`) ( #3108 )
...
This commit lowers the postgres test timeout from 30m to 20m, currently
our postgres tests seem to take 8-10m, a 2x factor should suffice.
Comments were updated in both places to reflect the reasoning and
necessity of keeping these values in sync.
They used to take longer but the `count` was lowered in
3d40cb85b7
.
The actual timeout value of `make test-postgres` got overlooked in
https://github.com/coder/coder/pull/3079 .
2022-07-22 12:47:03 +03:00
Kyle Carberry
3d40cb85b7
fix: Reduce count to 1 for PostgreSQL tests ( #2852 )
...
It's unnecessary for these to run twice. It increases CI times without
providing much additional assurance tests don't have race conditions.
This already runs with `-race` too.
2022-07-07 23:14:35 -05:00
Spike Curtis
cb2d1f488a
fix: ci uses a migrated DB template ( #2696 )
...
Signed-off-by: Spike Curtis <spike@coder.com>
2022-06-28 14:42:19 -07:00
Kyle Carberry
6429dfee1f
test: Use a template to prevent migrations from running for every test ( #2462 )
...
* test: Use a template to prevent migrations from running for every test
* Create a single makefile target
* Fix built-in race
* Extend timeout of built-in PostgreSQL fetch
2022-06-27 17:07:39 +00:00
Colin Adler
05b67ab1cf
feat: peer wireguard ( #2445 )
2022-06-24 10:25:01 -05:00
Cian Johnston
ac557e02b8
clean site/out and enforce make bin ( #2604 )
2022-06-23 15:16:27 +01:00
Cian Johnston
dc7d6def8e
improve develop.sh ( #2572 )
...
- Running make dev now prompts you to run ./scripts/develop.sh manually, as GNU make does not appear to pass SIGINT to subprocesses.
- Added checks to develop.sh to ensure that coderd is listening before running our initial setup steps
- Add some more troubleshooting/debugging output to develop.sh
2022-06-22 14:02:31 +01:00
Mathias Fredriksson
e2785ada5e
feat: Compress and extract slim binaries with zstd ( #2533 )
...
Fixes #2202
Co-authored-by: Dean Sheather <dean@deansheather.com>
2022-06-21 19:53:36 +03:00
Dean Sheather
075e891f28
Remove goreleaser in favor of build scripts ( #2143 )
2022-06-19 05:47:10 +10:00
Cian Johnston
0d2f0d7f8c
chore: apply non-durability settings to test postgres container ( #2479 )
...
This commit applies some recommended settings to sacrifice durability
for speed for our testing database:
- Mount PGDATA dir on a tmpfs (--tmpfs /tmp)
- Turn off fsync
- Turn off synchronous_commit
- Turn off full_page_writes
Ref: https://www.postgresql.org/docs/current/non-durability.html
2022-06-17 20:57:38 +01:00
Spike Curtis
a82c0eb560
Fix socket leak, clean up single use postgres databases ( #2413 )
...
* Fix socket leak, clean up single use postgres databases
Signed-off-by: Spike Curtis <spike@coder.com>
* Move migrate close defer until after we know it is not nil
Signed-off-by: Spike Curtis <spike@coder.com>
2022-06-16 09:01:33 -07:00
Kyle Carberry
5e673cc544
test: Increase timeouts to reduce flakes ( #2406 )
...
It's difficult to understand what's timing out due to a lock
vs. taking a long time. This should help resolve! 🕵️
2022-06-16 14:52:45 +00:00
Ben Potter
46ffb67d60
feat: one-line install script ( #1924 )
...
* feat: one-line install script
* remove homebrew support
* remove arch linux
* use proper filename for packages
* fix variable format
* fix systemd instructions
* fixes to standalone script
* fix missing var bugs
* fix standalone install
* fix for MacOS
* format
* fix armv7 assets and zips
* remove windows
* update install docs
* support external sources with shellcheck
* shfmt
* add external sources to GitHub action & unfold
* change wording
* first template docs
* default to /usr/local instead
* add option for binary name
2022-06-01 14:15:09 -05:00
Mathias Fredriksson
608eb322a8
chore: Add .editorconfig, shfmt, shellcheck and subshell dir changes ( #1649 )
2022-05-27 20:15:19 +03:00
Mathias Fredriksson
12227874a8
fix: Detect changes to examples/templates in Makefile ( #1829 )
2022-05-27 16:34:32 +03:00
Cian Johnston
a8a8f9dbf3
chore: skip some flaky tests ( #1643 )
...
* chore: skip some flaky tests
* Update peer/conn_test.go
* add makefile targets, reduce parallelism in go test
2022-05-21 00:39:51 +01:00
Garrett Delfosse
89fb59aa9a
chore: remove make build dep from make dev ( #1557 )
2022-05-18 16:00:20 +00:00
Garrett Delfosse
495c87b6c3
chore: add make dev ( #1527 )
2022-05-17 13:12:14 -05:00