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

sage-progress-meter (for builds silenced with make V=0) #21724

Open
mkoeppe opened this issue Oct 18, 2016 · 4 comments
Open

sage-progress-meter (for builds silenced with make V=0) #21724

mkoeppe opened this issue Oct 18, 2016 · 4 comments

Comments

@mkoeppe
Copy link
Member

mkoeppe commented Oct 18, 2016

#21539 added support for make V=0 to silence the build.
This helps, for example, with Travis CI builds, which have a limit on the allowed output.

However, with some long-running spkg builds (such as gcc) it could be nice to have some indication of progress (for example, with a Travis CI build, to avoid the 10-minute-no-output kill).

This could be done by calling something like pv (the Pipe Viewer) in sage-logger. We can implement what we need in a few lines of basic Python, no need to add a pv dependency (note, for example, the Ubuntu pv package is not whitelisted for Travis CI container-based builds).

The opportunities for bikeshedding are endless on this one. I have a first implementation that just reads lines from stdin and discards them and checks the elapsed time; prints a 'still here' message to stderr every 5 minutes. (Good enough for a Travis CI build.) But could add:

  • an optional prefix such as [gcc-4.3.4]
  • progress indication, measured by output number of lines divided by expected number of lines
  • watching for regex that indicate progress milestones (e.g., Comparing stages 2 and 3)

CC: @vbraun @jdemeyer @jhpalmieri @embray

Component: build

Author: Matthias Koeppe

Branch/Commit: u/mkoeppe/develop-travis-squashed @ c75a24d

Issue created by migration from https://trac.sagemath.org/ticket/21724

@mkoeppe mkoeppe added this to the sage-7.5 milestone Oct 18, 2016
@mkoeppe
Copy link
Member Author

mkoeppe commented Oct 25, 2016

Branch: u/mkoeppe/develop-travis-squashed

@embray
Copy link
Contributor

embray commented Nov 7, 2016

Commit: c75a24d

@embray
Copy link
Contributor

embray commented Nov 7, 2016

comment:2

This seems to be combining several things.... Since when are we trying to build Sage on Travis?


New commits:

c75a24dAdd Travis scripts, sage-progress-meter

@mkoeppe
Copy link
Member Author

mkoeppe commented Nov 10, 2016

comment:3

Yes, it's combining it with some experimental Travis build scripts, because this was my main use case for the progress meter. The ticket is not ready for review.

@mkoeppe mkoeppe removed this from the sage-7.5 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants