Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion samcli/lib/sync/infra_sync_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class InfraSyncResult:
_infra_sync_executed: bool
_code_sync_resources: Set[ResourceIdentifier]

def __init__(self, executed: bool, code_sync_resources: Set[ResourceIdentifier] = set()) -> None:
def __init__(self, executed: bool, code_sync_resources: Optional[Set[ResourceIdentifier]] = None) -> None:
"""
Constructor

Expand All @@ -83,6 +83,8 @@ def __init__(self, executed: bool, code_sync_resources: Set[ResourceIdentifier]
code_sync_resources: Set[ResourceIdentifier]
Resources that needs a code sync
"""
if code_sync_resources is None:
code_sync_resources = set()
self._infra_sync_executed = executed
self._code_sync_resources = code_sync_resources

Expand Down
13 changes: 7 additions & 6 deletions tests/integration/durable_integ_base.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import json
import os
import re
import shutil
import threading
import time
from pathlib import Path
from subprocess import Popen, PIPE, STDOUT, TimeoutExpired
from typing import Dict, Any, Optional, List
from subprocess import PIPE, STDOUT, Popen
from typing import Any, Dict, List, Optional
from unittest import TestCase

from tests.integration.local.invoke.invoke_integ_base import TIMEOUT
from tests.testing_utils import (
run_command,
get_sam_command,
get_build_command_list,
get_sam_command,
run_command,
)


Expand Down Expand Up @@ -143,11 +142,13 @@ def log_output():
def assert_invoke_output(
self,
stdout: str,
input_data: Dict[str, Any] = {},
input_data: Optional[Dict[str, Any]] = None,
execution_name: Optional[str] = None,
expected_status: str = "SUCCEEDED",
) -> str:
"""Assert invoke output contains expected fields and return execution ARN."""
if input_data is None:
input_data = {}
stdout_str = stdout.strip()

self.assertIn("Execution Summary:", stdout_str, f"Expected execution summary in output: {stdout_str}")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
numpy<1.20.3; python_version < '3.10'
numpy==1.26.4; python_version >= '3.10'
cryptography==3.3.2
cryptography==46.0.6
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
numpy<=2.2.6
requests
requests==2.33.0
6 changes: 4 additions & 2 deletions tests/regression/deploy/regression_deploy_base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from subprocess import Popen, PIPE, TimeoutExpired
from subprocess import PIPE, Popen, TimeoutExpired
from unittest import TestCase

TIMEOUT = 300
Expand Down Expand Up @@ -85,7 +85,9 @@ def get_deploy_command_list(

return command_list

def deploy_regression_check(self, args, sam_return_code=0, aws_return_code=0, commands=[]):
def deploy_regression_check(self, args, sam_return_code=0, aws_return_code=0, commands=None):
if commands is None:
commands = []
sam_stack_name = args.get("sam_stack_name", None)
aws_stack_name = args.get("aws_stack_name", None)
if sam_stack_name:
Expand Down