n3s7or / cdw Goto Github PK
View Code? Open in Web Editor NEWCodeWatch (cdw) cli to watch AWS CodeBuild builds
CodeWatch (cdw) cli to watch AWS CodeBuild builds
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
$ 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: 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
On user demand, save logs in a file. However this won't be able if flag --no-logs
was specified
In order to avoid prompting user for a project to check builds
If user don't mind about build logs, just the result, of the last build for a provided project. Also if last build is in progress, cdw
should monitor it
this must be developed after #4
So far cdw
monitors In-Progress
builds while printing logs.
Users have to check if the build completed by monitoring himself the logs.
Check this library: https://github.com/gen2brain/beeep
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.