Giter Site home page Giter Site logo

cdw's Introduction

n3s7or

cdw's People

Contributors

n3s7or avatar

Watchers

 avatar

cdw's Issues

Missing required fields (LogGroupName, LogStreamName)

My guess, this error happens when the build started but hasn't created logs yet (not even the stream)

Provide better message or wait until the following parameters are available (in order to avoid stoping the process) for the following:

2023/01/11 17:04:33 operation error CloudWatch Logs: GetLogEvents, 2 validation error(s) found.
- missing required field, GetLogEventsInput.LogGroupName.
- missing required field, GetLogEventsInput.LogStreamName.
exit status 1

Panic after v0.3.0-alpha

$ go run cdw/main.go builds --project project
Showing logs for build: `project:84c637e1-65db-4d60-b41a-cf0b8d662cf0`

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x4a611d]

goroutine 1 [running]:
io.WriteString({0x0, 0x0}, {0xc00049b600, 0x37})
	/usr/local/go/src/io/io.go:315 +0x7d
strings.(*Reader).WriteTo(0xc00052f580, {0x0?, 0x0?})
	/usr/local/go/src/strings/reader.go:143 +0x7a
io.copyBuffer({0x0, 0x0}, {0xa32240, 0xc00052f580}, {0x0, 0x0, 0x0})
	/usr/local/go/src/io/io.go:409 +0x16e
io.Copy(...)
	/usr/local/go/src/io/io.go:386
github.com/n3s7or/cdw/pkg/common.MonitorBuild(0xc00002c0cb?, 0x9?, 0xc00021d800, {0x0?, 0xa31a20?})
	~/Projects/cdw/pkg/common/common.go:61 +0x7f3
github.com/n3s7or/cdw/pkg/commands.glob..func1(0xc00012d440)
	~/Projects/cdw/pkg/commands/builds.go:73 +0x6c5
github.com/urfave/cli/v2.(*Command).Run(0xd2b300, 0xc00012d440, {0xc00024b530, 0x3, 0x3})
	~/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:271 +0xa42
github.com/urfave/cli/v2.(*Command).Run(0xc00026edc0, 0xc00012d380, {0xc00012c000, 0x4, 0x4})
	~/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:264 +0xc97
github.com/urfave/cli/v2.(*App).RunContext(0xc0002be000, {0xa36390?, 0xc000134000}, {0xc00012c000, 0x4, 0x4})
	~/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:333 +0x665
github.com/urfave/cli/v2.(*App).Run(...)
	~/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:310
main.main()
	~/Projects/cdw/cdw/main.go:83 +0x11c
exit status 2```

Panic when Ctrl+C when prompting user

panic: runtime error: index out of range [13] with length 10

goroutine 1 [running]:
main.main.func1(0xc0001b3340)
	~/Projects/cdw/cdw/main.go:71 +0x99b
github.com/urfave/cli/v2.(*Command).Run(0xc000264dc0, 0xc0001b3340, {0xc0001921f0, 0x1, 0x1})
	~/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:271 +0xa42
github.com/urfave/cli/v2.(*App).RunContext(0xc0002b6000, {0x9eed90?, 0xc0001aa000}, {0xc0001921f0, 0x1, 0x1})
	~/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:333 +0x665
github.com/urfave/cli/v2.(*App).Run(...)
	~/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:310
main.main()
	~/Projects/cdw/cdw/main.go:103 +0x5b
exit status 2

Check https://github.com/go-survey/survey#why-isnt-ctrl-c-working

Save logs in a file

On user demand, save logs in a file. However this won't be able if flag --no-logs was specified

Add command to show projects

This command will provide available projects name, initially with pagination set to 15 elements

$ cdw projects

also we should provide a flag to filter by project name

$ cdw projects --filter myproject

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.