-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Add --progress option to run-tests.php #9255
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
Add --progress option to run-tests.php #9255
Conversation
552db6b
to
e12a0b7
Compare
Hmm, doesn't that depend on the values passed to |
@cmb69 By progress I mean the following:
The test results are shown depending on what you specify with |
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.
Ah, I see! Then it makes sense to me, but I wouldn't bake-in CI detection, but rather change the CI scripts to pass the --no-progress
option (the BC break seems to be acceptable).
@cmb69 Do you have concerns with auto-disabling progress in CI? It would be useful there but only if we massively turn down the frequency, maybe every minute or so. Most CIs do not support |
Not generally, but I don't like a hard-coded list in run-tests.php. There is no chance to catch all CI providers anyway. |
@cmb69 Isn't 95% better than nothing? If a specific CI isn't covered one can pass the |
I have some words ... It would be nice if the concerns of run-tests.php were restricted to running tests, it's already a very messy place to make changes. How run-tests is configured should be determined by the caller of the script by the options we provide. Note that, we already went down the special casing route with travis-ci, now the script is littered with special cases for travis, a thing we only use for exotics. The best thing to do now, is remove this special casing and move the configuration to calls from travis scripts. The best thing to do moving forward, imo, is avoid adding more of these special cases, even if they look useful, even when they cover the 95% :) |
Works for me, I'll remove it then :) |
Previously, adding the -g argument would disable progress, even locally. Now it needs to be disabled explicitly.
e12a0b7
to
a569939
Compare
Without that option, we get progress display now[1], which is certainly not desired for CI. [1] <php/php-src#9255>
The option is enabled in CLI but disabled in CI by default. Previously,
adding the -g argument would disable progress, even locally.