Skip to content

Improve docker settings for tests#924

Draft
alessandrodi wants to merge 2 commits intomainfrom
alex-improve-test-docker
Draft

Improve docker settings for tests#924
alessandrodi wants to merge 2 commits intomainfrom
alex-improve-test-docker

Conversation

@alessandrodi
Copy link
Copy Markdown
Contributor

@alessandrodi alessandrodi commented Apr 7, 2026

  • pytest_sessionstart() and pytest_keyboard_interrupt() hooks remove any orphaned test Docker containers from previous runs
  • _random_available_port() pick a random port that hasn't been reserved by another temporary instance and is free on the system
  • docker restart=always

…y orphaned test Docker containers from previous runs, _random_available_port() pick a random port that hasn't been reserved by another temporary instance and is free on the system, docker restart=always,
@alessandrodi alessandrodi changed the title pytest_sessionstart() and pytest_keyboard_interrupt() hooks remove an… Improve docker settings for testing Apr 7, 2026
@alessandrodi alessandrodi changed the title Improve docker settings for testing Improve docker settings for tests Apr 7, 2026
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

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.

1 participant