-
Notifications
You must be signed in to change notification settings - Fork 194
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
Fix #5274 - workflow should not remove contents from zip because of size limit #5275
Conversation
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.
I don't believe I'm familiar with this utility, so it's hard for me to say whether this approach looks good. Does zipDirectory
get executed for every workflow run? Should we, at a minimum, set label for this PR to "Pull Request - Ready for CI" so we can check builds are successful?
There should be a |
794c0ce
to
77d1ef3
Compare
Rebased on develop let's run CI and see. |
auto directorySize = [](const openstudio::path& dirPath) { | ||
uintmax_t dirSize = 0; | ||
for (const auto& dirEnt : fs::recursive_directory_iterator{dirPath}) { | ||
const auto& dirEntryPath = dirEnt.path(); | ||
if (fs::is_regular_file(dirEntryPath)) { | ||
dirSize += fs::file_size(dirEntryPath); | ||
} | ||
} | ||
return dirSize; | ||
}; | ||
|
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.
Lambda is now unused, so delete it too
CI Results for d79e5f7:
|
Pull request overview
We no longer want to limit file sizes that go into datapoint zip generated when a workflow is run.
Pull Request Author
@DavidGoldwasser
Labels:
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.