-
Notifications
You must be signed in to change notification settings - Fork 96
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
Input file fix #123
Input file fix #123
Conversation
@marcomangano did you also include the new cgns files for your rotation tests? |
input_files/get-input-files.sh
Outdated
@@ -4,4 +4,4 @@ | |||
|
|||
DIR=$(dirname $0) | |||
wget -O $DIR/input_files.tar.gz http://umich.edu/~mdolaboratory/repo_files/ADflow/adflow_input_files.tar.gz | |||
tar -xzf $DIR/input_files.tar.gz -C $DIR/../ | |||
tar -xzf $DIR/input_files.tar.gz -C $DIR |
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.
Seems that the new file is a tarbomb. I personally think we should refrain from that types of behavior.
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.
Yeah okay that's fair, I just didn't like relying on the name of the directory stored in the tarball instead of the parent directory of the get-input-files.sh
script when extracting, since it's harder to be consistent.
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.
Oh really? Do you prefer to place a subfolder in the input_files
folder?
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 thought it was safe because we were already opening it into a separate folder
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 think Eirikur is in general against tarbombs which is fair, although in this case the script specifically extracts to a designated directory.
Yes! |
Purpose
Closes #122 . I uploaded on
mfile
a newtar.gz
folder without subfolders, and changed the download bash script to untar directly intoinput_files
. All the tests have been updated to point to this folder.Note: the new
tar.gz
also includes a new.cgns
file used for the rotating frame adjoint test added with #121Type of change
Testing
The tests have been checked locally.
Checklist
flake8
andblack
to make sure the code adheres to PEP-8 and is consistently formatted