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

494 selenium+docker #503

Merged
merged 66 commits into from
Mar 20, 2024
Merged

494 selenium+docker #503

merged 66 commits into from
Mar 20, 2024

Conversation

HadronCollider
Copy link
Collaborator

closed #494

@github-actions github-actions bot added the has conflicts if new merge has conflicts label Mar 16, 2024
@github-actions github-actions bot removed the has conflicts if new merge has conflicts label Mar 16, 2024
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
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Тут бы пригодились о логи самой системы (или как минимум web+worker)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Комментарий ещё актуален

Copy link
Collaborator

Choose a reason for hiding this comment

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

Добавила web и worker

container_id=$(docker-compose -f docker-compose.yml -f docker-compose-selenium.yml ps -q $service)


while true; do
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Опасный вечный цикл - стоит либо на что-то заменить, либо запускать скрипт вместе с timeout (команда от bash), либо установить таймаут на Github action

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Комментарий ещё актуален

Copy link
Collaborator

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

@HadronCollider HadronCollider marked this pull request as ready for review March 17, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Обернуть запуск selenium тестов в docker
2 participants