Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

fix(ci): Log test output on CircleCI #3882

Merged
merged 2 commits into from
Dec 29, 2016
Merged

Conversation

heathkit
Copy link
Contributor

CircleCI will timeout the test if it doesn't see any output for 10
minutes. When running in CI, we need to inherit stdio so we don't get
killed if the tests run slowly due to timeouts. This will also give us
more info for debugging.

@sjelin
Copy link
Contributor

sjelin commented Dec 27, 2016

The circle ci output is really long now and hard to skim, especially because of the failure tests. I would rather see each line of output replaces with a '.'. This would avoid timeouts while preserving the compactness of the output

@sjelin sjelin self-requested a review December 27, 2016 21:09
@heathkit heathkit changed the title fix(ci): Inherit stdio from test process when running in CI fix(ci): Log test output on CircleCI Dec 27, 2016
@heathkit
Copy link
Contributor Author

I changed it to dots and also saved the test output as a build artifact. I'm hoping this will help debug the intermittent timeouts we're seeing for the beta branch, which I'm thinking are due to a problem with Blocking Proxy and alert handling.

Copy link
Contributor

@sjelin sjelin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe put something at the top of test_log.txt like "For a more readable version, use cat test_log.txt | less -R". I'm satisfied with this as is though.

@googlebot
Copy link

CLAs look good, thanks!

1 similar comment
@googlebot
Copy link

CLAs look good, thanks!

CircleCI will timeout the test if it doesn't see any output for 10
minutes. This prints out a '.' with every bit of stdio input to show that
we're making progress.
Helps with debugging on CircleCI. If the test times out or is killed,
we'll be able to see what it was doing. Also removes the unused
alwaysEnableStdio() method.
@heathkit
Copy link
Contributor Author

Test failure is the javascript dialog problem from chromedriver - going to go ahead and merge.

@heathkit heathkit merged commit 2a68ffe into angular:beta Dec 29, 2016
juliemr pushed a commit that referenced this pull request Dec 29, 2016
CircleCI will timeout the test if it doesn't see any output for 10
minutes. This prints out a '.' with every bit of stdio input to show that
we're making progress.
@heathkit heathkit deleted the show-stdio-ci branch January 5, 2017 23:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants