-
Notifications
You must be signed in to change notification settings - Fork 3
Studio: add recipe and config json to outputs for downloading #435
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
Conversation
…in path expression Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ture/add-files-to-output
Packing analysis reportAnalysis for packing results located at cellpack/tests/outputs/test_spheres/spheresSST
Packing imageDistance analysisExpected minimum distance: 50.00
|
.github/workflows/analyze.yml
Outdated
| EXISTING_COMMENT_ID=$(gh pr view ${{ github.event.pull_request.number }} --json comments --jq ".comments[] | select(.body | contains(\"${MARKER}\")) | .id" | head -1 | tr -d '[:space:]') | ||
| if [ -n "$EXISTING_COMMENT_ID" ] && [ "$EXISTING_COMMENT_ID" -eq "$EXISTING_COMMENT_ID" ] 2>/dev/null; then |
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.
updated the workflow to only delete redundant comment when a valid comment id found
cellpack/autopack/DBRecipeHandler.py
Outdated
|
|
||
| output_path = Path(output_folder) | ||
|
|
||
| # Normalize the recipe path relative to the recipes base 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.
CodeQL was failing due to an unsecured user-provided path, so I accepted the suggested fix in this spot
|
@ascibisz testing for this pr is a bit funky:
|
|
I tried running this locally and it works as expected for local config and recipe files, but it doesn't work for firebase config and recipe files (it just tries to read the firebase path as a local file path). Maybe we can discuss potential solutions at pair programming? |
darn I keep forgetting about the firebase path handling, thanks for catching it! I'll get that fixed in this pr before tomorrow. |
Packing analysis reportAnalysis for packing results located at cellpack/tests/outputs/test_spheres/spheresSST
Packing imageDistance analysisExpected minimum distance: 50.00
|
@ascibisz Just pushed a fix for firebase recipes! It now checks for firebase recipes and I added a serialized copy of the recipe so we can json dump human readable version instead of having something like |
Packing analysis reportAnalysis for packing results located at cellpack/tests/outputs/test_spheres/spheresSST
Packing imageDistance analysisExpected minimum distance: 50.00
|
Packing analysis reportAnalysis for packing results located at cellpack/tests/outputs/test_spheres/spheresSST
Packing imageDistance analysisExpected minimum distance: 50.00
|
Packing analysis reportAnalysis for packing results located at cellpack/tests/outputs/test_spheres/spheresSST
Packing imageDistance analysisExpected minimum distance: 50.00
|
|
@ascibisz ready for another round of review! I removed path checks and simplified the logic so we now save recipe data(both local and firebase) directly to the output folder, no re-reading the paths. happy to walk through the changes if you'd prefer, no rush at all! Sorry for the flood of duplicate reports, this is fixed in a different pr! |
ascibisz
left a comment
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.
Looks good!! And worked well for me locally
…ture/add-files-to-output


Problem
closes AllenCell/cellpack-client#103
Solution
recipe.jsonandconfig.jsonNote: we send in the full
packing_config_datato output folder as a json, regardless of whether the pack used default configs or a config fileType of change