-
Notifications
You must be signed in to change notification settings - Fork 2
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
494 selenium+docker #503
494 selenium+docker #503
Conversation
tests/scripts/docker_check_tests.sh
Outdated
if docker inspect --format='{{.State.Running}}' "$container_id" | grep -q "false"; then | ||
echo "tests are finished" | ||
EXIT_CODE=$(docker inspect "$container_id" --format='{{.State.ExitCode}}') | ||
docker-compose -f docker-compose.yml -f docker-compose-selenium.yml logs selenium-tests |
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.
Тут бы пригодились о логи самой системы (или как минимум web+worker)
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.
Комментарий ещё актуален
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.
Добавила web и worker
tests/scripts/docker_check_tests.sh
Outdated
container_id=$(docker-compose -f docker-compose.yml -f docker-compose-selenium.yml ps -q $service) | ||
|
||
|
||
while true; do |
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.
Опасный вечный цикл - стоит либо на что-то заменить, либо запускать скрипт вместе с timeout
(команда от bash), либо установить таймаут на Github action
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.
Комментарий ещё актуален
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.
Изменила на условие
while [ "$(docker inspect --format='{{.State.Running}}' "$container_id")" == "true" ]; do
fix mistake with main_header
closed #494