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

be less chatty when run non-interactively #767

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cldellow
Copy link
Contributor

@cldellow cldellow commented Oct 4, 2024

This introduces a minimum threshold for writing the progress updates like:

  • Scanning for nodes in ways
  • Block M/N
  • Writing tile M of N

The threshold only applies when run non-interactively, for example, when in a GitHub action. It shoots for one line of output for every 1% of progress. I was motivated to do this because processing North America in an action generated > 500 MB of logs and seemed to cause GitHub to kill the action.

Interactive use should be unaffected. Windows is always treated as interactive, as I'm not sure how to test for that.

This introduces a minimum threshold for writing the progress updates
like:

- Scanning for nodes in ways
- Block M/N
- Writing tile M of N

The threshold applies when run non-interactively, for example, when in a
GitHub action. (Related to this, I've learned that GitHub Actions get
angry at you when your action generates 500 MB of logs. :)

Interactive use should be unaffected.
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

Successfully merging this pull request may close these issues.

1 participant