Skip to content

Conversation

@mubbi
Copy link
Owner

@mubbi mubbi commented Jul 19, 2025

This pull request includes updates to streamline Docker-based testing workflows and enhance port-checking scripts for better reliability and clarity. The key changes include improving test container handling in the Makefile and refining port-checking logic across multiple scripts.

Docker-based testing improvements:

  • Updated the test and test-coverage targets in the Makefile to check if the test container is already running before setting it up, reducing unnecessary overhead. This change ensures the workflow is more efficient by skipping redundant setup steps when the container is already active.

Port-checking logic enhancements:

  • Modified the check_port() function in containers/check-ports.sh and containers/check-sonarqube-ports.sh to only consider ports in the "LISTEN" state when determining if a port is in use. This change improves accuracy by excluding irrelevant states. [1] [2]
  • Added a return 0 statement in the check_port() function of containers/check-sonarqube-ports.sh to ensure proper early exit when a port is available.

@mubbi mubbi merged commit b4ad07e into develop Jul 19, 2025
1 check passed
@mubbi mubbi deleted the fix/scripts-makefile branch July 23, 2025 11:15
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.

2 participants