-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
engine: docker-compose manifest and global logs respect the same filters #919
engine: docker-compose manifest and global logs respect the same filters #919
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm...i don't see what this has to do with the attached clubhouse ticket?
@@ -148,3 +154,23 @@ func (w DockerComposeLogActionWriter) Write(p []byte) (n int, err error) { | |||
} | |||
|
|||
var _ store.Subscriber = &DockerComposeLogManager{} | |||
|
|||
func shouldFilterDCLog(p []byte) bool { | |||
if bytes.Contains(p, []byte("Attaching to")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems way too broad? and will catch lots of legit things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah should be a "starts with" check?
@nicks sorry I should have made more clear: I saw this as a TODO in the code and decided to fix it as I re-familiarize myself with the log code. |
b809b52
to
58339a6
Compare
58339a6
to
1d98151
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
internal/build/test_utils.go
Outdated
@@ -137,7 +137,11 @@ func (f *dockerBuildFixture) startRegistry() { | |||
f.t.Fatal(err) | |||
} | |||
|
|||
err = stdout.WaitUntilContains("listening on", 5*time.Second) | |||
if isCircleCI() { | |||
err = stderr.WaitUntilContains("listening on", 5*time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
womp womp. but legit.
I think i'd prefer combinedOut.WaitUntilContains
and then we wouldn't need this conditional -- any way to do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check it out now!
cmd := exec.Command("docker", "run", "--name", "tilt-registry", "-p", "5005:5000", "registry:2") | ||
cmd.Stdout = stdout | ||
cmd.Stderr = stderr | ||
cmd.Stderr = stdout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should probs have a comment?
No description provided.