Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions coderd/apidoc/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions coderd/apidoc/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions coderd/apikey.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (api *API) postAPIKey(rw http.ResponseWriter, r *http.Request) {
// @Produce json
// @Tags Users
// @Param user path string true "User ID, name, or me"
// @Param keyid path string true "Key ID" format(uuid)
// @Param keyid path string true "Key ID" format(string)
// @Success 200 {object} codersdk.APIKey
// @Router /users/{user}/keys/{keyid} [get]
func (api *API) apiKeyByID(rw http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -292,7 +292,7 @@ func (api *API) tokens(rw http.ResponseWriter, r *http.Request) {
// @Security CoderSessionToken
// @Tags Users
// @Param user path string true "User ID, name, or me"
// @Param keyid path string true "Key ID" format(uuid)
// @Param keyid path string true "Key ID" format(string)
// @Success 204
// @Router /users/{user}/keys/{keyid} [delete]
func (api *API) deleteAPIKey(rw http.ResponseWriter, r *http.Request) {
Expand Down
2 changes: 1 addition & 1 deletion coderd/coderdtest/coderdtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ func NewOptions(t testing.TB, options *Options) (func(http.Handler), context.Can

serverURL, err := url.Parse(srv.URL)
require.NoError(t, err)
serverURL.Host = fmt.Sprintf("localhost:%d", tcpAddr.Port)
serverURL.Host = fmt.Sprintf("127.0.0.1:%d", tcpAddr.Port)

derpPort, err := strconv.Atoi(serverURL.Port())
require.NoError(t, err)
Expand Down
7 changes: 5 additions & 2 deletions coderd/database/dbpurge/dbpurge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/goleak"
"go.uber.org/mock/gomock"

"cdr.dev/slog"
"cdr.dev/slog/sloggers/slogtest"

"github.com/coder/coder/v2/coderd/database"
"github.com/coder/coder/v2/coderd/database/dbgen"
"github.com/coder/coder/v2/coderd/database/dbmock"
"github.com/coder/coder/v2/coderd/database/dbpurge"
"github.com/coder/coder/v2/coderd/database/dbrollup"
"github.com/coder/coder/v2/coderd/database/dbtestutil"
Expand All @@ -46,8 +48,9 @@ func TestPurge(t *testing.T) {
// We want to make sure dbpurge is actually started so that this test is meaningful.
clk := quartz.NewMock(t)
done := awaitDoTick(ctx, t, clk)
db, _ := dbtestutil.NewDB(t)
purger := dbpurge.New(context.Background(), testutil.Logger(t), db, clk)
mDB := dbmock.NewMockStore(gomock.NewController(t))
mDB.EXPECT().InTx(gomock.Any(), database.DefaultTXOptions().WithID("db_purge")).Return(nil).Times(2)
purger := dbpurge.New(context.Background(), testutil.Logger(t), mDB, clk)
<-done // wait for doTick() to run.
require.NoError(t, purger.Close())
}
Expand Down
10 changes: 5 additions & 5 deletions docs/install/uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ performing the following step or copying the directory to another location.

<div class="tabs">

## macOS
## Linux

```shell
rm -rf ~/Library/Application\ Support/coderv2
rm -rf ~/.config/coderv2
rm -rf ~/.cache/coder
```

## Linux
## macOS

```shell
rm -rf ~/.config/coderv2
rm -rf ~/.cache/coder
rm -rf ~/Library/Application\ Support/coderv2
```

## Windows
Expand Down
16 changes: 8 additions & 8 deletions docs/reference/api/users.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dogfood/coder/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ module "vscode-web" {
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "dev.registry.coder.com/coder/jetbrains/coder"
version = "1.0.2"
version = "1.0.3"
agent_id = coder_agent.dev.id
agent_name = "dev"
folder = local.repo_dir
Expand All @@ -358,7 +358,7 @@ module "coder-login" {
module "cursor" {
count = data.coder_workspace.me.start_count
source = "dev.registry.coder.com/coder/cursor/coder"
version = "1.2.1"
version = "1.3.0"
agent_id = coder_agent.dev.id
folder = local.repo_dir
}
Expand All @@ -374,7 +374,7 @@ module "windsurf" {
module "zed" {
count = data.coder_workspace.me.start_count
source = "dev.registry.coder.com/coder/zed/coder"
version = "1.0.1"
version = "1.1.0"
agent_id = coder_agent.dev.id
agent_name = "dev"
folder = local.repo_dir
Expand Down
2 changes: 1 addition & 1 deletion enterprise/coderd/coderdenttest/coderdenttest.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func NewWithAPI(t *testing.T, options *Options) (
AuditLogging: options.AuditLogging,
BrowserOnly: options.BrowserOnly,
SCIMAPIKey: options.SCIMAPIKey,
DERPServerRelayAddress: oop.AccessURL.String(),
DERPServerRelayAddress: serverURL.String(),
DERPServerRegionID: oop.BaseDERPMap.RegionIDs()[0],
ReplicaSyncUpdateInterval: options.ReplicaSyncUpdateInterval,
ReplicaErrorGracePeriod: options.ReplicaErrorGracePeriod,
Expand Down
2 changes: 1 addition & 1 deletion enterprise/coderd/coderdenttest/proxytest.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func NewWorkspaceProxyReplica(t *testing.T, coderdAPI *coderd.API, owner *coders
serverURL, err := url.Parse(srv.URL)
require.NoError(t, err)

serverURL.Host = fmt.Sprintf("localhost:%d", tcpAddr.Port)
serverURL.Host = fmt.Sprintf("127.0.0.1:%d", tcpAddr.Port)

accessURL := options.ProxyURL
if accessURL == nil {
Expand Down
12 changes: 3 additions & 9 deletions enterprise/wsproxy/wsproxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,8 @@ func TestDERPOnly(t *testing.T) {
func TestDERP(t *testing.T) {
t.Parallel()

deploymentValues := coderdtest.DeploymentValues(t)
deploymentValues.Experiments = []string{
"*",
}

client, closer, api, user := coderdenttest.NewWithAPI(t, &coderdenttest.Options{
Options: &coderdtest.Options{
DeploymentValues: deploymentValues,
AppHostname: "*.primary.test.coder.com",
IncludeProvisionerDaemon: true,
RealIPConfig: &httpmw.RealIPConfig{
Expand Down Expand Up @@ -146,7 +140,7 @@ func TestDERP(t *testing.T) {
})
require.NoError(t, err)

// Wait for both running proxies to become healthy.
// Wait for all three running proxies to become healthy.
require.Eventually(t, func() bool {
err := api.ProxyHealth.ForceUpdate(ctx)
if !assert.NoError(t, err) {
Expand Down Expand Up @@ -207,7 +201,7 @@ resourceLoop:
require.NoError(t, err)

// There should be three DERP regions in the map: the primary, and each
// of the two running proxies. Also the STUN-only regions.
// of the two DERP-enabled running proxies. Also the STUN-only regions.
require.NotNil(t, connInfo.DERPMap)
require.Len(t, connInfo.DERPMap.Regions, 3+len(api.DeploymentValues.DERP.Server.STUNAddresses.Value()))

Expand Down Expand Up @@ -290,7 +284,7 @@ resourceLoop:

t.Run(r.RegionName, func(t *testing.T) {
t.Parallel()
ctx := testutil.Context(t, testutil.WaitShort)
ctx := testutil.Context(t, testutil.WaitLong)

derpMap := &tailcfg.DERPMap{
Regions: map[int]*tailcfg.DERPRegion{
Expand Down
Loading