Commit Graph

162 Commits

Author SHA1 Message Date
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
dependabot[bot] d124fab642
chore: bump jaxxstorm/action-install-gh-release from 1.7.1 to 1.9.0 (#5516)
Bumps [jaxxstorm/action-install-gh-release](https://github.com/jaxxstorm/action-install-gh-release) from 1.7.1 to 1.9.0.
- [Release notes](https://github.com/jaxxstorm/action-install-gh-release/releases)
- [Commits](https://github.com/jaxxstorm/action-install-gh-release/compare/v1.7.1...v1.9.0)

---
updated-dependencies:
- dependency-name: jaxxstorm/action-install-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-02 14:37:17 -06:00
dependabot[bot] 4b093115e2
chore: bump google-github-actions/setup-gcloud from 0 to 1 (#5517)
Bumps [google-github-actions/setup-gcloud](https://github.com/google-github-actions/setup-gcloud) from 0 to 1.
- [Release notes](https://github.com/google-github-actions/setup-gcloud/releases)
- [Changelog](https://github.com/google-github-actions/setup-gcloud/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/setup-gcloud/compare/v0...v1)

---
updated-dependencies:
- dependency-name: google-github-actions/setup-gcloud
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-02 14:37:06 -06:00
Mathias Fredriksson 25ebebac5f
ci: Improve gotestsum failure detection, prevent early exit (#5420) 2022-12-15 12:47:42 +02:00
Mathias Fredriksson b39ba02bf0
ci: Increase Go mock db test timeout to 5m (#5413)
Our Windows test-runner often takes close to 3m to complete the test,
this was producing a few false failures due to us adding tests over time
and test times increasing.
2022-12-14 19:37:01 +02:00
Marcin Tojek b103685170
chore: Collect gotests.xml files (#5398)
* chore: Use datadog-ci to collect gotests.xml

* WIP

* Fix: github ref

* fix

* just store gotests.xml
2022-12-14 16:23:31 +01:00
Mathias Fredriksson 663f7a3f12
ci: Output tail of `gotestsum.json` if test timed out (#5411)
This is to eternalize the log in case "re-run failed" is used, which
erases artifacts from previous run.
2022-12-14 15:04:39 +02:00
Marcin Tojek 935d2eb582
fix: fmt should check for unstaged files (#5362) 2022-12-09 12:00:39 +01:00
Marcin Tojek a973c35a02
chore: collect gotestsum TestEvents as workflow artifacts (#5336) 2022-12-07 15:04:39 +01:00
Marcin Tojek b2dc60c030
fix: markdown-link-check base-branch should not be set on main branch (#5311) 2022-12-06 15:41:06 +01:00
dependabot[bot] 825480ae9b
chore: bump crate-ci/typos from 1.12.12 to 1.13.3 (#5304)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Geoffrey Huntley <ghuntley@ghuntley.com>
2022-12-06 11:50:33 +00:00
Marcin Tojek 133b2de1ca
chore: improve markdown-link-check workflow (#5303) 2022-12-06 21:46:17 +10:00
Marcin Tojek ee4f0fc592
chore: enable debug logging for gotestsum (#5248) 2022-12-02 12:35:14 +01:00
dependabot[bot] e3103f3a5e
chore: bump google-github-actions/auth from 0 to 1 (#5218)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 11:37:33 -06:00
dependabot[bot] 9a1ffe4121
chore: bump golangci/golangci-lint-action from 3.3.0 to 3.3.1 (#5214)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 17:11:03 +00: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
Kyle Carberry a4fbc74751
chore: Update gotestsum (#4955)
This was breaking CI!
2022-11-08 09:58:01 -06:00
Kyle Carberry 29dc5f66b8
experiment: Switch to BuildJet Linux Runners (#4846) 2022-11-01 20:56:33 +00:00
dependabot[bot] a5fa54ff23
chore: bump crate-ci/typos from 1.12.8 to 1.12.12 (#4825)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-01 10:06:41 -05:00
dependabot[bot] d25f770488
chore: bump golangci/golangci-lint-action from 3.2.0 to 3.3.0 (#4824)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-01 10:02:08 -05:00
Ammar Bandukwala c9bf2a9099
ci: verify that all docs links work (#4710) 2022-10-23 17:09:58 -05:00
Colin Adler 0ad8e775a5
fix(ci): use correct `retention-days` in e2e (#4424) 2022-10-07 13:46:16 -05:00
Kyle Carberry 9cf3e102ba
chore: Pin typos to fix CI (#4396) 2022-10-06 10:27:23 -05:00
Kyle Carberry 9b1ff43e9f
fix: Don't run CI for releases (#4393)
This was unnecessary and causing weird issues like double deploys and runs.
2022-10-06 10:02:37 -05:00
Mathias Fredriksson 74cd31bdb1
Revert "refactor(ci): conditionally run jobs based on file changes (#4242)" (#4321)
This reverts commit f9b7588963.
2022-10-03 09:51:31 -05:00
Joe Previte f9b7588963
refactor(ci): conditionally run jobs based on file changes (#4242)
* refactor(ci): only run ts jobs on ts changes

This modifies the `style-lint-typescript` and `test-js` jobs to only run
when there are changes in `site`.

* refactor(ci): only run lint-shellcheck on sh changes

* refactor(ci): only run go jobs on go changes

* refactor(ci): only run style-fmt when needed

This adds a new item to `changes` for `**.tf` changes. Now it will only
run `style-fmt` if PR includes changes to `site/**`, `**.tf`, or
`**.ts`.

* refactor(ci): run e2e on go, ts or tf changes

* refactor(ci): run gen on gen changes

* refactor(ci): delete old comments

* fixup: try moving if step inside test-go job

* fixup: try if all steps

* fixup!: refactor(ci): run gen on gen changes

* Revert "refactor(ci): run gen on gen changes"

This reverts commit d0a5ba1c4b.
2022-09-30 09:34:55 -07:00
Kyle Carberry d9a61dd4c8
fix: Don't generate files for deploy (#4245)
This should fix a common race we've been seeing!
2022-09-29 13:54:04 -05: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 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
Ammar Bandukwala 4f0105ef7e
feat: add orphan support (#3849)
* feat: add resource orphanage

* feat: deny custom state in build for regular users

* Minor protoc improvements
2022-09-06 17:07:00 +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 fefdff4946
fix: install goimports in deploy build (#3841) 2022-09-03 02:38:33 +10:00
Dean Sheather e6699d25ca
fix: fix CI calling script/version.sh instead of scripts (#3839) 2022-09-03 02:16:19 +10: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
Joe Previte e6b6b7f610
chore: upload playwright videos on failure (#3677) 2022-08-24 13:45:03 -07: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
Dean Sheather 55890df6f1
feat: add helm README, install guide, linters (#3268) 2022-08-19 02:41:23 +10:00
Ammar Bandukwala d7b96f7d58
Correct spelling of macOS (#3478)
* Correct spelling of macOS

* fixup! Correct spelling of macOS

* fixup! Correct spelling of macOS
2022-08-11 21:22:06 -04:00
Abhineet Jain 5ae19f097e
fix: chromatic workflow filter (#3352) 2022-08-02 04:23:32 -04:00
Ammar Bandukwala 0d93e9bde1
ci: move chromatic to coder workflow (#3330) 2022-08-01 09:36:00 -04:00
Ammar Bandukwala 19fcf60864
ci: add typo detection (#3327)
And fix them.
2022-08-01 09:29:52 -04:00
Mathias Fredriksson 4730c589fe
chore: Use standardized test timeouts and delays (#3291) 2022-08-01 15:45:05 +03:00
Ammar Bandukwala 29eccbe4da
ci: revert skips of required checks (#3303)
These were putting certain PRs in an unmergeable state.
2022-07-29 18:49:51 +00:00
Mathias Fredriksson 9a9912c8ce
fix: Add `go.mod` to `prcontext` and use build vs `go run` (#3197) 2022-07-26 16:04:00 +03:00
Mathias Fredriksson 173ab297be
chore: Increase style/gen CI test timeout (#3187) 2022-07-25 17:10:53 +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