Skip to content
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

ci: exit early if any of the Hive images fail to save #15273

Merged
merged 2 commits into from
Mar 25, 2025

Conversation

shekhirin
Copy link
Collaborator

No description provided.

Verified

This commit was signed with the committer’s verified signature.
shekhirin Alexey Shekhirin
@shekhirin shekhirin added the A-ci Related to github workflows or other build and lint tools label Mar 25, 2025
Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm just one question

docker save hive/simulators/smoke/network:latest -o ../hive_assets/smoke_network.tar & saving_pids+=( $! )
docker save hive/simulators/ethereum/sync:latest -o ../hive_assets/ethereum_sync.tar & saving_pids+=( $! )
for pid in "${saving_pids[@]}"; do
wait "$pid" || exit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will we get any error message here / will it be clear what happened if we fail here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, would be good to add a message here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we will get an error from docker save and also exit with a non-zero error code

@@ -20,18 +20,20 @@ echo "Building images"
./hive -client reth --sim "ethereum/sync" -sim.timelimit 1s || true &
wait

# Run docker save in parallel and wait
echo "Saving images"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

possibly would leave this log for vis

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, reverted

Verified

This commit was signed with the committer’s verified signature.
shekhirin Alexey Shekhirin
@shekhirin shekhirin enabled auto-merge March 25, 2025 17:10
@shekhirin shekhirin added this pull request to the merge queue Mar 25, 2025
auto-merge was automatically disabled March 25, 2025 17:29

Pull Request is not mergeable

Merged via the queue into main with commit ef5ee49 Mar 25, 2025
44 checks passed
@shekhirin shekhirin deleted the alexey/hive-build-simulators-fail-on-error branch March 25, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ci Related to github workflows or other build and lint tools
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants