Skip to content

be less chatty when run non-interactively #767

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

Merged
merged 1 commit into from
Oct 13, 2024

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.
@cldellow cldellow force-pushed the less-chatty-non-interactive branch from c864ab9 to 4425255 Compare October 4, 2024 14:18
@systemed systemed merged commit 88b8b6f into systemed:master Oct 13, 2024
7 checks passed
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.

2 participants