Skip to content

Commit 8952400

Browse files
committed
fix messaing for build timeout
1 parent 33d8e92 commit 8952400

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

cmd/lk/agent.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,9 @@ func createAgent(ctx context.Context, cmd *cli.Command) error {
587587
excludeFiles := []string{fmt.Sprintf("**/%s", config.LiveKitTOMLFile)}
588588
resp, err := agentsClient.CreateAgent(buildContext, os.DirFS(workingDir), secrets, regions, excludeFiles, os.Stderr)
589589
if err != nil {
590+
if errors.Is(err, context.DeadlineExceeded) {
591+
return fmt.Errorf("build timed out possibly due to large image size")
592+
}
590593
if twerr, ok := err.(twirp.Error); ok {
591594
return fmt.Errorf("unable to create agent: %s", twerr.Msg())
592595
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/go-task/task/v3 v3.44.1
1414
github.com/joho/godotenv v1.5.1
1515
github.com/livekit/protocol v1.43.0
16-
github.com/livekit/server-sdk-go/v2 v2.12.8
16+
github.com/livekit/server-sdk-go/v2 v2.12.9-0.20251110234649-8f023dd83ff6
1717
github.com/moby/patternmatcher v0.6.0
1818
github.com/pelletier/go-toml v1.9.5
1919
github.com/pion/rtcp v1.2.16

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ github.com/livekit/protocol v1.43.0 h1:cXxfORrHrXiqWD5mGXOIWQa0lyprT6VDvlw6/suiA
271271
github.com/livekit/protocol v1.43.0/go.mod h1:TpqU2qCI1ES4Lk7PAWSgYO4RaexfVXb54ZO2hXv0Bmc=
272272
github.com/livekit/psrpc v0.7.1-0.20251021235041-bdebea7dacf4 h1:YA5HMfNW9IPPdTSkwsyCtK9ZcNW8QpPNlkuD7UUToZE=
273273
github.com/livekit/psrpc v0.7.1-0.20251021235041-bdebea7dacf4/go.mod h1:AuDC5uOoEjQJEc69v4Li3t77Ocz0e0NdjQEuFfO+vfk=
274-
github.com/livekit/server-sdk-go/v2 v2.12.8 h1:dZeUrGokfl9Aw/EK4Xwu0NtNUQ6zOLXggdhlCPAtLhk=
275-
github.com/livekit/server-sdk-go/v2 v2.12.8/go.mod h1:EGWi7fcsHawWOCxUIlnSHC3fzWBsCEscLkouIZEzGKY=
274+
github.com/livekit/server-sdk-go/v2 v2.12.9-0.20251110234649-8f023dd83ff6 h1:vzLuadjqXFb854WkahPucaYNdhZkUP9UoN/5RAqAKd0=
275+
github.com/livekit/server-sdk-go/v2 v2.12.9-0.20251110234649-8f023dd83ff6/go.mod h1:irNSE7sGj3aOph1N/EbUynijBfnzInVoiSasL3GtG7g=
276276
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
277277
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
278278
github.com/magefile/mage v1.15.0 h1:BvGheCMAsG3bWUDbZ8AyXXpCNwU9u5CB6sM+HNb9HYg=

0 commit comments

Comments
 (0)