Repository navigation
fix(hpc/sync): pull exits 1 after the first extracted archive - #65
Merged
Merged
Conversation
`unzip ... && (( zip_count++ ))` returns 1 when zip_count is 0, so under `set -euo pipefail` pull and pull-full exited 1 after the first archive, skipping the rest and any later PULL_DIRS roots. Branch on unzip explicitly and increment with zip_count=$(( zip_count + 1 )), as autolens_profiling (0dcc528f) does; a failed unzip now prints a WARNING and the pull goes on. Refs PyAutoLabs/autolens_assistant#189 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Same bug and fix as PyAutoLabs/autolens_assistant#189.
hpc/syncruns underset -euo pipefailand unpacked pulled archives withunzip ... && (( zip_count++ )). Atzip_count=0that arithmetic returns 1, soset -ekilledpull/pull-fullafter the first extracted archive, skipping later archives and laterPULL_DIRSroots.Both unzip sites now use
if unzip ...; then zip_count=$(( zip_count + 1 )); else echo "WARNING: could not unzip <zip>"; fi, matching autolens_profiling0dcc528f. A failed unzip is reported and the pull continues.Scripts Changed
hpc/sync: thepullandpull_fullunzip loopsTest Plan
This repo has no
test_hpc_sync.pyand none is added. Thepullscenario from the autolens_assistant tests was run by hand (fakessh/rsynconPATH, three unextracted zips underoutput/andresults/, the copy'sPULL_DIRS=(output results), since this script has noPYAUTO_PULL_DIRShook):main: exit 1, one archive extracted, no "extracted N" or "Done."Merge mode: human /prm (Consequence: judge).
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code