Skip to content
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

Travis: Add a tool to print timestamp in front of log messages #40577

Closed
alexcrichton opened this issue Mar 16, 2017 · 1 comment
Closed

Travis: Add a tool to print timestamp in front of log messages #40577

alexcrichton opened this issue Mar 16, 2017 · 1 comment

Comments

@alexcrichton
Copy link
Member

Often when debugging travis logs it's difficult to see how long everything is taking as we only time some steps, not all. Additionally there's not a lot of information to see how long it takes between steps.

It'd be awesome if we had a tool where we basically wrapped the entire build (src/ci/run.sh) in a process that simply prepended all stdout/stderr messages with a relative timestamp. AppVeyor does this by default (has a timestamp for each log line message) but unfortunately Travis doesn't.

Apparently Julia has something like this which ends up looking like https://travis-ci.org/JuliaLang/julia/jobs/211627387#L370 which is basically exactly what we'd want.

retep998 pushed a commit to alexcrichton/rust that referenced this issue Mar 21, 2017
When debugging why builds are taking so long it's often useful to get the
timestamp of all log messages as we're not always timing every tiny step of the
build. I wrote a [utility] for prepending a relative timestamp from the start of
a process which is now downloaded to the builders and is what we wrap the entire
build invocation in.

[utility]: https://github.com/alexcrichton/stamp-rs

Closes rust-lang#40577
@tfheen
Copy link

tfheen commented Mar 22, 2017

You probably just want to use ts from moreutils for this. (This is what Julia does.)

bors added a commit that referenced this issue Mar 23, 2017
travis: Add timestamps to all build messages

When debugging why builds are taking so long it's often useful to get the
timestamp of all log messages as we're not always timing every tiny step of the
build. I wrote a [utility] for prepending a relative timestamp from the start of
a process which is now downloaded to the builders and is what we wrap the entire
build invocation in.

[utility]: https://github.com/alexcrichton/stamp-rs

Closes #40577
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants