Skip to content

Commit

Permalink
no cleanup and more containers
Browse files Browse the repository at this point in the history
  • Loading branch information
y3rsh committed Oct 8, 2024
1 parent 00de8fd commit 4ac0e4e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions analyses-snapshot-testing/citools/generate_analyses.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,15 @@
HOST_RESULTS: Path = Path(Path(__file__).parent.parent, "analysis_results")
ANALYSIS_SUFFIX: str = "analysis.json"
ANALYSIS_TIMEOUT_SECONDS: int = 30
ANALYSIS_CONTAINER_INSTANCES: int = 6
ANALYSIS_CONTAINER_INSTANCES: int = 10

console = Console()


def is_running_in_github_actions() -> bool:
return os.getenv("GITHUB_ACTIONS") == "true"


class ProtocolType(Enum):
PROTOCOL_DESIGNER = auto()
PYTHON = auto()
Expand Down Expand Up @@ -229,7 +233,10 @@ def analyze_against_image(tag: str, protocols: List[TargetProtocol], num_contain
containers = start_containers(image_name, num_containers)
analyze_many(protocols, containers)
finally:
stop_and_remove_containers(image_name)
if is_running_in_github_actions():
pass # We don't need to stop and remove containers in CI
else:
stop_and_remove_containers(image_name)
return protocols


Expand Down

0 comments on commit 4ac0e4e

Please sign in to comment.