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

chore: improve java arm64 build tests #6081

Merged
merged 16 commits into from
Oct 17, 2023
Merged
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
20 changes: 16 additions & 4 deletions tests/integration/buildcmd/build_integ_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,23 @@ def _verify_invoke_built_function(self, template_path, function_logical_id, over
overrides,
]

process_execute = run_command(cmdlist)
process_execute.process.wait()
for i in range(5):
process_execute = run_command(cmdlist)
process_stdout = process_execute.stdout.decode("utf-8")
process_stderr = process_execute.stderr.decode("utf-8")
LOG.info("Local invoke stdout: %s", process_stdout)
LOG.info("Local invoke stderr: %s", process_stderr)

if "timed out after" in process_stderr:
LOG.info("Function timed out, retrying")
continue

if json.loads(process_stdout) == expected_result:
LOG.info("Expected result found, succeeded!")
# success
return

process_stdout = process_execute.stdout.decode("utf-8")
self.assertEqual(json.loads(process_stdout), expected_result)
self.fail("Failed to invoke function & get expected result")

def get_override(self, runtime, code_uri, architecture, handler):
overrides = {"Runtime": runtime, "CodeUri": code_uri, "Handler": handler}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Resources:
Handler: !Ref Handler
Runtime: !Ref Runtime
CodeUri: !Ref CodeUri
Timeout: 600
Timeout: 60
Architectures:
- !Ref Architectures

Expand Down
Loading