-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Move file-related helpers to own file, set badbit exceptions on ofstreams #1249
Conversation
Jenkins Console Log Machine informationNo LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focalCPU: G++: Clang: |
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.
lgtm!
any idea why this set of changes would have made a difference for the performance tests?
I think differences at the levels reported there are pretty much up to noise/what else would be running on the machine |
Submisison Checklist
./runCmdStanTests.py src/test
Summary:
This helps break up the large
command_helper.hpp
file by moving logic involving the filesystem to its own helper.It also wraps up some common functionality around setting up an
ofstream
for writing into a new function, and setsbadbit
so that an exception gets thrown on by any "Read/writing error on i/o operation". This closes stan-dev/stan#2536Intended Effect:
Clean up command_helper, add safeguards against things like running out of disk space.
How to Verify:
This is harder - I don't know how to write a test which mocks the disk running out of space.
Side Effects:
Documentation:
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: