Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd715ea6

Browse files
committed
Revert "merge main into groups (#4439)"
This reverts commitb101ae7.
1 parentb101ae7 commitd715ea6

File tree

209 files changed

+2150
-3723
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+2150
-3723
lines changed

‎.github/workflows/coder.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
-main
7+
tags:
8+
-"*"
79

810
pull_request:
911

@@ -34,7 +36,7 @@ jobs:
3436
-name:Checkout
3537
uses:actions/checkout@v2
3638
-name:typos-action
37-
uses:crate-ci/typos@v1.12.8
39+
uses:crate-ci/typos@master
3840
with:
3941
config:.github/workflows/typos.toml
4042
-name:Fix Helper
@@ -628,7 +630,7 @@ jobs:
628630
with:
629631
name:failed-test-videos
630632
path:./site/test-results/**/*.webm
631-
retention-days:7
633+
retention:days:7
632634

633635
chromatic:
634636
# REMARK: this is only used to build storybook and deploy it to Chromatic.

‎.github/workflows/dogfood.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
-main
7+
tags:
8+
-"*"
79
paths:
810
-"dogfood/**"
911
pull_request:

‎.vscode/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"cliflag",
1010
"cliui",
1111
"codecov",
12+
"Codespaces",
1213
"coderd",
13-
"coderdenttest",
1414
"coderdtest",
1515
"codersdk",
1616
"cronstrue",
@@ -24,7 +24,6 @@
2424
"drpcmux",
2525
"drpcserver",
2626
"Dsts",
27-
"enablements",
2827
"fatih",
2928
"Formik",
3029
"gitsshkey",

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Once installed, you can start a production deployment<sup>1</sup> with a single
5858

5959
```sh
6060
# Automatically sets up an external access URL on *.try.coder.app
61-
coder server
61+
coder server --tunnel
6262

6363
# Requires a PostgreSQL instance and external access URL
6464
coder server --postgres-url<url> --access-url<url>

‎agent/agent.go

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"fmt"
1111
"io"
1212
"net"
13-
"net/http"
1413
"net/netip"
1514
"os"
1615
"os/exec"
@@ -207,7 +206,6 @@ func (a *agent) runTailnet(ctx context.Context, derpMap *tailcfg.DERPMap) {
207206
goa.sshServer.HandleConn(a.stats.wrapConn(conn))
208207
}
209208
}()
210-
211209
reconnectingPTYListener,err:=a.network.Listen("tcp",":"+strconv.Itoa(codersdk.TailnetReconnectingPTYPort))
212210
iferr!=nil {
213211
a.logger.Critical(ctx,"listen for reconnecting pty",slog.Error(err))
@@ -242,7 +240,6 @@ func (a *agent) runTailnet(ctx context.Context, derpMap *tailcfg.DERPMap) {
242240
goa.handleReconnectingPTY(ctx,msg,conn)
243241
}
244242
}()
245-
246243
speedtestListener,err:=a.network.Listen("tcp",":"+strconv.Itoa(codersdk.TailnetSpeedtestPort))
247244
iferr!=nil {
248245
a.logger.Critical(ctx,"listen for speedtest",slog.Error(err))
@@ -264,31 +261,6 @@ func (a *agent) runTailnet(ctx context.Context, derpMap *tailcfg.DERPMap) {
264261
}()
265262
}
266263
}()
267-
268-
statisticsListener,err:=a.network.Listen("tcp",":"+strconv.Itoa(codersdk.TailnetStatisticsPort))
269-
iferr!=nil {
270-
a.logger.Critical(ctx,"listen for statistics",slog.Error(err))
271-
return
272-
}
273-
gofunc() {
274-
deferstatisticsListener.Close()
275-
server:=&http.Server{
276-
Handler:a.statisticsHandler(),
277-
ReadTimeout:20*time.Second,
278-
ReadHeaderTimeout:20*time.Second,
279-
WriteTimeout:20*time.Second,
280-
ErrorLog:slog.Stdlib(ctx,a.logger.Named("statistics_http_server"),slog.LevelInfo),
281-
}
282-
gofunc() {
283-
<-ctx.Done()
284-
_=server.Close()
285-
}()
286-
287-
err=server.Serve(statisticsListener)
288-
iferr!=nil&&!xerrors.Is(err,http.ErrServerClosed)&&!strings.Contains(err.Error(),"use of closed network connection") {
289-
a.logger.Critical(ctx,"serve statistics HTTP server",slog.Error(err))
290-
}
291-
}()
292264
}
293265

294266
// runCoordinator listens for nodes and updates the self-node as it changes.

‎agent/ports_supported.go

Lines changed: 0 additions & 64 deletions
This file was deleted.

‎agent/ports_unsupported.go

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎agent/statsendpoint.go

Lines changed: 0 additions & 49 deletions
This file was deleted.

‎cli/agent.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,15 @@ func workspaceAgent() *cobra.Command {
168168
}
169169
}
170170

171-
retryCtx,cancelRetry:=context.WithTimeout(cmd.Context(),time.Hour)
172-
defercancelRetry()
173-
forretrier:=retry.New(100*time.Millisecond,5*time.Second);retrier.Wait(retryCtx); {
174-
err:=client.PostWorkspaceAgentVersion(retryCtx,version)
171+
ctx,cancelFunc:=context.WithTimeout(cmd.Context(),time.Hour)
172+
defercancelFunc()
173+
forretry.New(100*time.Millisecond,5*time.Second).Wait(ctx) {
174+
err:=client.PostWorkspaceAgentVersion(cmd.Context(),version)
175175
iferr!=nil {
176-
logger.Warn(retryCtx,"post agent version: %w",slog.Error(err),slog.F("version",version))
176+
logger.Warn(cmd.Context(),"post agent version: %w",slog.Error(err),slog.F("version",version))
177177
continue
178178
}
179-
logger.Info(retryCtx,"updated agent version",slog.F("version",version))
179+
logger.Info(ctx,"updated agent version",slog.F("version",version))
180180
break
181181
}
182182

‎cli/cliui/table.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,10 @@ func DisplayTable(out any, sort string, filterColumns []string) (string, error)
153153
// Special type formatting.
154154
switchval:=v.(type) {
155155
case time.Time:
156-
v=val.Format(time.RFC3339)
156+
v=val.Format(time.Stamp)
157157
case*time.Time:
158158
ifval!=nil {
159-
v=val.Format(time.RFC3339)
160-
}
161-
case*int64:
162-
ifval!=nil {
163-
v=*val
159+
v=val.Format(time.Stamp)
164160
}
165161
case fmt.Stringer:
166162
ifval!=nil {

‎cli/cliui/table_test.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ func Test_DisplayTable(t *testing.T) {
131131
t.Parallel()
132132

133133
expected:=`
134-
NAME AGE ROLES SUB 1 NAME SUB 1 AGE SUB 2 NAME SUB 2 AGE SUB 3 INNER NAME SUB 3 INNER AGE SUB 4 TIMETIME PTR
135-
foo 10 [a b c] foo1 11 foo2 12 foo3 13 {foo4 14 }2022-08-02T15:49:10Z 2022-08-02T15:49:10Z
136-
bar 20 [a] bar1 21 <nil> <nil> bar3 23 {bar4 24 }2022-08-02T15:49:10Z <nil>
137-
baz 30 [] baz1 31 <nil> <nil> baz3 33 {baz4 34 }2022-08-02T15:49:10Z <nil>
134+
NAME AGE ROLES SUB 1 NAME SUB 1 AGE SUB 2 NAME SUB 2 AGE SUB 3 INNER NAME SUB 3 INNER AGE SUB 4 TIME TIME PTR
135+
foo 10 [a b c] foo1 11 foo2 12 foo3 13 {foo4 14 }Aug 2 15:49:10 Aug 2 15:49:10
136+
bar 20 [a] bar1 21 <nil> <nil> bar3 23 {bar4 24 }Aug 2 15:49:10 <nil>
137+
baz 30 [] baz1 31 <nil> <nil> baz3 33 {baz4 34 }Aug 2 15:49:10 <nil>
138138
`
139139

140140
// Test with non-pointer values.
@@ -158,10 +158,10 @@ baz 30 [] baz1 31 <nil> <nil> baz3
158158
t.Parallel()
159159

160160
expected:=`
161-
NAME AGE ROLES SUB 1 NAME SUB 1 AGE SUB 2 NAME SUB 2 AGE SUB 3 INNER NAME SUB 3 INNER AGE SUB 4 TIMETIME PTR
162-
bar 20 [a] bar1 21 <nil> <nil> bar3 23 {bar4 24 }2022-08-02T15:49:10Z <nil>
163-
baz 30 [] baz1 31 <nil> <nil> baz3 33 {baz4 34 }2022-08-02T15:49:10Z <nil>
164-
foo 10 [a b c] foo1 11 foo2 12 foo3 13 {foo4 14 }2022-08-02T15:49:10Z 2022-08-02T15:49:10Z
161+
NAME AGE ROLES SUB 1 NAME SUB 1 AGE SUB 2 NAME SUB 2 AGE SUB 3 INNER NAME SUB 3 INNER AGE SUB 4 TIME TIME PTR
162+
bar 20 [a] bar1 21 <nil> <nil> bar3 23 {bar4 24 }Aug 2 15:49:10 <nil>
163+
baz 30 [] baz1 31 <nil> <nil> baz3 33 {baz4 34 }Aug 2 15:49:10 <nil>
164+
foo 10 [a b c] foo1 11 foo2 12 foo3 13 {foo4 14 }Aug 2 15:49:10 Aug 2 15:49:10
165165
`
166166

167167
out,err:=cliui.DisplayTable(in,"name",nil)
@@ -175,9 +175,9 @@ foo 10 [a b c] foo1 11 foo2 12 foo3
175175

176176
expected:=`
177177
NAME SUB 1 NAME SUB 3 INNER NAME TIME
178-
foo foo1 foo32022-08-02T15:49:10Z
179-
bar bar1 bar32022-08-02T15:49:10Z
180-
baz baz1 baz32022-08-02T15:49:10Z
178+
foo foo1 foo3Aug 2 15:49:10
179+
bar bar1 bar3Aug 2 15:49:10
180+
baz baz1 baz3Aug 2 15:49:10
181181
`
182182

183183
out,err:=cliui.DisplayTable(in,"", []string{"name","sub_1_name","sub_3 inner name","time"})

‎cli/parameters.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ func parameters() *cobra.Command {
2020
// constructing curl requests.
2121
Hidden:true,
2222
Aliases: []string{"params"},
23-
RunE:func(cmd*cobra.Command,args []string)error {
24-
returncmd.Help()
25-
},
2623
}
2724
cmd.AddCommand(
2825
parameterList(),

‎cli/resetpassword_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ func TestResetPassword(t *testing.T) {
4141
serverCmd,cfg:=clitest.New(t,
4242
"server",
4343
"--address",":0",
44-
"--access-url","example.com",
4544
"--postgres-url",connectionURL,
4645
"--cache-dir",t.TempDir(),
4746
)

‎cli/root.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ func Core() []*cobra.Command {
9393
users(),
9494
versionCmd(),
9595
workspaceAgent(),
96-
tokens(),
9796
}
9897
}
9998

‎cli/schedule.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ func schedules() *cobra.Command {
5858
Annotations:workspaceCommand,
5959
Use:"schedule { show | start | stop | override } <workspace>",
6060
Short:"Schedule automated start and stop times for workspaces",
61-
RunE:func(cmd*cobra.Command,args []string)error {
62-
returncmd.Help()
63-
},
6461
}
6562

6663
scheduleCmd.AddCommand(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp