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

Need a "progress bar" to show how specs is chewing through the input #267

Closed
yoavnir opened this issue Oct 28, 2024 · 1 comment
Closed
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed usability
Milestone

Comments

@yoavnir
Copy link
Owner

yoavnir commented Oct 28, 2024

We want specs to output to a place where it doesn't interfere with operation (usually stderr) some kind of indication of how we are progressing.

Since we usually can't predict how big the input is, the most obvious way is for the user to specify how often to issue a message, for the message to include how many input records have already been processed, and for the user to know how many records to expect.

Two obvious ways for the user to specify it:

  • Specify to issue a message every x record: specs --trace_prog_recs 10000
  • Specify to issue a message every x seconds: specs --trace_prog_secs 5
@yoavnir yoavnir added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers usability labels Oct 28, 2024
@yoavnir yoavnir added this to the Version 0.9.5 milestone Oct 28, 2024
@yoavnir
Copy link
Owner Author

yoavnir commented Oct 28, 2024

Suggested format:
SPECS Trace Progress: Time: 12:03:42 (+241) Records 24,643,127

yoavnir added a commit that referenced this issue Nov 15, 2024
)

* Issue #267 - Add a "progress bar"  to specs using --progress switch

* Issue #267 - Make the output more readable using the pretty() function
@yoavnir yoavnir closed this as completed Nov 15, 2024
yoavnir added a commit that referenced this issue Dec 3, 2024
* Prepare for 0.9.5 GA

* Issue #265 - Harmonize success message of tests (#266)

* Issue #267 - Add a "progress bar"  to specs using --progress switch (#268)

* Issue #267 - Add a "progress bar"  to specs using --progress switch

* Issue #267 - Make the output more readable using the pretty() function

* Issue #269 - Support the RECNO token (#270)

* Issue #269 - Support the RECNO token

* Issue #269 - update the help to include this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed usability
Projects
None yet
Development

No branches or pull requests

1 participant