Mathias Fredriksson
9557d456e8
fix: Generate trial in scripts/develop.sh ( #5231 )
2022-12-01 17:12:16 +02:00
Marcin Tojek and Mathias Fredriksson
883cf8afa9
chore: Add missing metrics description ( #5212 )
...
* chore: Add missing metrics description
* Update provisionerd/provisionerd.go
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
* Fix
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
2022-12-01 12:50:57 +01:00
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
Mathias Fredriksson
085f1917db
fix: Fix develop script pid tracking, improve logging and interrupt ( #5186 )
2022-11-29 15:45:14 +02:00
Muhammad Atif Ali and Dean Sheather
990be63c60
feat: create winget package workflow ( #4761 )
...
Co-authored-by: Dean Sheather <dean@deansheather.com >
2022-11-14 12:59:08 +00:00
Arthur Normand
9578ce9f77
OAuth now uses client TLS certs (if configured) ( #5042 )
...
* OAuth now uses client TLS certs (if configured)
* Update docs
* Cleaning
* Fix lint errors and generate static files
* Fix lint error and regenerate more static files
* Suppress lint error
2022-11-13 14:15:06 -06:00
Mathias Fredriksson
71601f4971
fix: Fix log wrapper for vite in scripts/develop.sh ( #5030 )
...
The pid tracking refactor resulted in the pipe while echo to block the
script from continuing and showing the banner at the end. This change
redirects the stdout for the `start_cmd` to a new fd which `while` is
reading from.
2022-11-11 12:39:33 +00:00
Mathias Fredriksson
5e2253030f
fix: Revert develop.sh timeout -> curl change ( #5008 )
...
It seems `--retry-all-errors` is not available on e.g. curl 7.68.0.
2022-11-10 19:49:11 +00:00
Mathias Fredriksson
a25deb939b
fix: Misc improvements to scripts/develop.sh ( #4995 )
...
* Use new `/healthz` endpoint for checking API liveness
* Improved credential handling/retrying in failure scenarios
* Separate site (`vite`) logs with prefix and date, additionally this
method also disables the `vite` clearing of the screen
* Show all interfaces coder API is listening on (due to `0.0.0.0`)
* Improved shutdown procedure / interrupt handling
2022-11-10 20:47:42 +02:00
Joe Previte
ffe461ae58
chore(site): enable eslint-plugin-eslint-comments ( #4799 )
...
* chore(site): enable eslint-plugin-eslint-comments
* chore: add descriptions to eslint-disable comments
* chore: update eslint-disable comments in main.go
2022-10-28 17:46:51 -03:00
Kira Pilot
8282e46813
chore: add audit log tests ( #4764 )
...
* added test for stopping a workspace build
* formatted sfriendly string; added tests
* logging unmarshal error in auditLogDescription
* prettier
* got rid of extra workspace word
* PR feedback
* fixed mistake; wrote tests in penance
* fix be
2022-10-27 15:57:41 -04:00
Dean Sheather
067362cf31
feat: add windows amd64 installer ( #4719 )
2022-10-26 00:19:54 +10:00
Kyle Carberry
7bc5b89f7a
feat: Support config files with viper ( #4696 )
2022-10-21 17:08:23 -05:00
Garrett Delfosse
e8537067ef
Revert "Revert "Revert "feat: Support config files with viper"" ( #4693 )" ( #4695 )
...
This reverts commit 372fb1f345 .
2022-10-21 16:07:38 -05:00
Garrett Delfosse
372fb1f345
Revert "Revert "feat: Support config files with viper"" ( #4693 )
2022-10-21 20:55:20 +00:00
Garrett Delfosse
a2fb444911
Revert "feat: Support config files with viper ( #4558 )" ( #4692 )
...
This reverts commit c8e299c8f1 .
2022-10-21 20:04:27 +00:00
Garrett Delfosse
c8e299c8f1
feat: Support config files with viper ( #4558 )
2022-10-21 19:26:39 +00:00
Steven Masley
369b5d1c2d
chore: Add generics to typescript generator ( #4664 )
...
* feat: Support generating generics in interfaces
* Switch struct to a template
* Support generics in apitypings
2022-10-20 08:15:24 -05:00
Garrett Delfosse
0f3221f9d0
fix: use more descriptive login flags ( #4493 )
2022-10-11 18:45:30 +00:00
Garrett Delfosse
a70278e0e1
feat: make flags in one place ( #4452 )
2022-10-11 15:16:19 +00:00
Kyle Carberry and Ben Potter
3cc77d96eb
feat: Add tunnel by default ( #4399 )
...
* feat: Add tunnel by default
If an access URL is not specified, we will always tunnel.
This is from community-member feedback who exclaimed that
it's confusing having the default for `coder server` display
a warning message, and I agree.
There is very little (maybe none) in running `coder server`
without tunnel and without an access URL, so this seems like
overall a much better UX.
* Update install.sh
Co-authored-by: Ben Potter <ben@coder.com >
* Update docs/install/packages.md
Co-authored-by: Ben Potter <ben@coder.com >
* Fix reset pass test
* Fix e2e test
Co-authored-by: Ben Potter <ben@coder.com >
2022-10-07 08:05:56 -05:00
Bruno Quaresma
59cc4a2586
chore: Use Vite as main dev runner for FE ( #4230 )
2022-09-27 21:09:16 -03:00
Steven Masley
27c8345ef2
chore: Add linter rule to prevent breaking of sse ( #4144 )
...
* chore: Add linter rule to prevent breaking of sse
2022-09-27 11:14:58 -04:00
Bruno Quaresma
189c562826
chore: Use Vite instead of Webpack for development ( #4156 )
2022-09-23 15:22:48 -03:00
Colin Adler
5de6f86959
feat: trace httpapi.{Read,Write} ( #4134 )
2022-09-21 17:07:00 -05:00
Joe Previte
3db9ea9dd2
fix: disable inspect xstate in develop ( #4145 )
2022-09-21 11:08:54 -07:00
Dean Sheather
29d804e692
feat: add API key scopes and application_connect scope ( #4067 )
2022-09-19 17:39:02 +00:00
Steven Masley and Dean Sheather
9ab437d6e2
feat: Add serving applications on subdomains and port-based proxying ( #3753 )
...
Co-authored-by: Dean Sheather <dean@deansheather.com >
2022-09-14 03:31:33 +10:00
Steven Masley
21e8fb243b
fix: Allow develop.sh to host docker workspaces ( #3802 )
2022-09-13 09:21:05 -04:00
Kyle Carberry
5e04a2f800
chore: Remove DataDog test reporting ( #3958 )
...
It was costing a lot of money, and it wasn't being used very much.
2022-09-08 14:29:30 +00:00
Dean Sheather
6a3876d6df
chore: hide template check 404 error from develop.sh ( #3942 )
2022-09-08 15:22:08 +10:00
Dean Sheather
a79e34c0c7
chore: build releases on a single Linux runner (switch to rcodesign) ( #3890 )
...
* chore: build, sign and notarize darwin binaries on linux
* chore: download rcodesign during release
* chore: change nfpm install to be a download instead of compile
* chore: delete apple cert secrets after build
* fix: fix dependencies in archive.sh and build_go.sh
* chore: reduce output from rcodesign
2022-09-07 18:56:46 +00: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
1b6f9e54a3
fix: fix ERRPIPE in scripts/lib.sh ( #3908 )
2022-09-07 04:42:45 +10: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
Joe Previte
05f932b37e
refactor(scripts): remove -P from ln calls ( #3740 )
2022-08-29 15:05:08 -07:00
Mathias Fredriksson and Joe Previte
78a24941fe
feat: Add codersdk.NullTime, change workspace build deadline ( #3552 )
...
Fixes #2015
Co-authored-by: Joe Previte <jjprevite@gmail.com >
2022-08-25 19:10:42 +03:00
Spike Curtis
b101a6f3f4
POST license API endpoint ( #3570 )
...
* POST license API
Signed-off-by: Spike Curtis <spike@coder.com >
* Support interface{} types in generated Typescript
Signed-off-by: Spike Curtis <spike@coder.com >
* Disable linting on empty interface any
Signed-off-by: Spike Curtis <spike@coder.com >
* Code review updates
Signed-off-by: Spike Curtis <spike@coder.com >
* Enforce unique licenses
Signed-off-by: Spike Curtis <spike@coder.com >
* Renames from code review
Signed-off-by: Spike Curtis <spike@coder.com >
* Code review renames and comments
Signed-off-by: Spike Curtis <spike@coder.com >
Signed-off-by: Spike Curtis <spike@coder.com >
2022-08-22 15:02:50 -07:00
Dean Sheather
369a9fb535
fix: add writeable home dir to docker image ( #3603 )
2022-08-22 19:43:13 +10:00
Kyle Carberry
b0fe9bcdd1
chore: Upgrade to Go 1.19 ( #3617 )
...
This is required as part of #3505 .
2022-08-21 22:32:53 +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
Spike Curtis
5c898d0c83
Fix archive.sh for LICENSE files ( #3535 )
...
Signed-off-by: Spike Curtis <spike@coder.com >
Signed-off-by: Spike Curtis <spike@coder.com >
2022-08-17 10:27:52 -07:00
Spike Curtis
5817c6ac7f
Build enterprise coder binary by default ( #3517 )
...
* Build enterprise coder binary by default
Signed-off-by: Spike Curtis <spike@coder.com >
* Add --agpl to develop.sh
Signed-off-by: Spike Curtis <spike@coder.com >
* Add --agpl flag to archive.sh
Signed-off-by: Spike Curtis <spike@coder.com >
* shell format
Signed-off-by: Spike Curtis <spike@coder.com >
* Move AGPL back to LICENSE, explain enterprise license is forthcoming
Signed-off-by: Spike Curtis <spike@coder.com >
Signed-off-by: Spike Curtis <spike@coder.com >
2022-08-17 09:02:25 -07:00
9c12b4ed8e
chore: Add nix shell for simple development setup ( #3399 )
...
* chore: Add nix shell for simple development setup
This enables contributors using Nix to set up their environment with ease.
* improve nix style, flake output schema
* fix error message
* Update scripts/build_go_slim.sh
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
* Update scripts/build_go_slim.sh
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
* Add UTC default for timezone and remove unnecessary goreleaser dependency
* Skip TZ test if localtime does not exist
Co-authored-by: Charlie Moog <moogcharlie@gmail.com >
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
2022-08-08 15:49:12 +00:00
Cian Johnston and Mathias Fredriksson
01fe5e668e
chore: add testutil.Eventually and friends ( #3389 )
...
This PR adds a `testutil` function aimed to replace `require.Eventually`.
Before:
```go
require.Eventually(t, func() bool { ... }, testutil.WaitShort, testutil.IntervalFast)
```
After:
```go
require.True(t, testutil.EventuallyShort(t, func(ctx context.Context) bool { ... }))
// or the full incantation if you need more control
ctx, cancel := context.WithTimeout(ctx.Background(), testutil.WaitLong)
require.True(t, testutil.Eventually(t, ctx, func(ctx context.Context) bool { ... }, testutil.IntervalSlow))
```
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
2022-08-05 16:34:44 +01:00
Dean Sheather
66a5b0f7bc
fix: don't use adduser and addgroup for docker images ( #3344 )
...
* fix: don't use adduser and addgroup for docker images
* Revert "fix: Remove alternative image architectures until we virtualize (#3336 )"
This reverts commit 00c5116a2e .
2022-08-01 19:28:38 +00:00
Mathias Fredriksson
4730c589fe
chore: Use standardized test timeouts and delays ( #3291 )
2022-08-01 15:45:05 +03:00