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

quieten down docker #425

Merged
merged 5 commits into from
Nov 6, 2024
Merged

quieten down docker #425

merged 5 commits into from
Nov 6, 2024

Conversation

mixmix
Copy link
Collaborator

@mixmix mixmix commented Oct 22, 2024

Our tests are pretty spammy with docker spinning up / down.

This makes it a lot easier to see where "actual" tests are up to, and also for us to see that there is still logging coming out of substrate.

image

Base automatically changed from frankie/core#v0.3.0.rc-1 to main October 23, 2024 20:58
dev/bin/spin-up.sh Outdated Show resolved Hide resolved
docker compose --file dev/docker-scripts/four-nodes.yaml down 2> /dev/null
docker compose --file dev/docker-scripts/one-node-no-tss.yaml down 2> /dev/null
./dev/bin/spin-down.sh four-nodes
./dev/bin/spin-down.sh one-node-no-tss
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this works, but it adds a call docker compose --file "$FILE" logs 🤷

Comment on lines 6 to 14
spin_up() {
docker compose --file "$FILE" "$@" up --detach

if [ $? -ne 0 ]; then
echo "Error: 'docker compose up' failed."
echo "Retrying verbose:"
docker compose --file "$FILE" up --detach
fi
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tested this and here's how it looked when if fails (make it fail by editing ENTROPY_CORE_VERSION)

image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This assumes docker is good and exits with an exit code if it hit any problems...

@mixmix
Copy link
Collaborator Author

mixmix commented Oct 28, 2024

@frankiebee can review at leisure

@mixmix
Copy link
Collaborator Author

mixmix commented Oct 28, 2024

Frankie is gonna test how this behaves in CI

rh0delta
rh0delta previously approved these changes Nov 4, 2024
Copy link
Contributor

@rh0delta rh0delta left a comment

Choose a reason for hiding this comment

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

this looks good to me, but you my still want @frankiebee's sign off too

@frankiebee
Copy link
Collaborator

note: i'll get a screen shot of ci failing in a different branch then i'll approve and merge if i like it

@mixmix
Copy link
Collaborator Author

mixmix commented Nov 6, 2024

@frankiebee here's the branch where you see it failing: #431

@frankiebee frankiebee merged commit dc8ecd0 into main Nov 6, 2024
3 checks passed
@frankiebee frankiebee deleted the mixmix/quiet branch November 6, 2024 09:31
@github-actions github-actions bot locked and limited conversation to collaborators Nov 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants