From 812f797371c0421429522ccdc330fde418c3ddc6 Mon Sep 17 00:00:00 2001 From: David Siaw Date: Tue, 23 Jul 2024 15:03:21 +0900 Subject: [PATCH] update python --- dockerfiles/run-pack/Dockerfile | 2 +- dockerfiles/run-pack/watch_interactive_session_test.go | 3 +++ lib/barcelona/network/autoscaling_builder.rb | 2 +- spec/lib/barcelona/network/network_stack_spec.rb | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dockerfiles/run-pack/Dockerfile b/dockerfiles/run-pack/Dockerfile index a203257b..611477c3 100644 --- a/dockerfiles/run-pack/Dockerfile +++ b/dockerfiles/run-pack/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.5 +FROM alpine ENV GOPATH /.go ENV GOBIN $GOPATH/bin diff --git a/dockerfiles/run-pack/watch_interactive_session_test.go b/dockerfiles/run-pack/watch_interactive_session_test.go index a6b74404..f496935c 100644 --- a/dockerfiles/run-pack/watch_interactive_session_test.go +++ b/dockerfiles/run-pack/watch_interactive_session_test.go @@ -1,6 +1,8 @@ package main import ( + "fmt" + "log" "testing" ps "github.com/mitchellh/go-ps" @@ -24,6 +26,7 @@ func (p *ProcessMock) Executable() string { } func TestOtherSessionRunning(t *testing.T) { + log.Println(fmt.Sprintf("Interactive session has not started for %d seconds", 123)) ps1 := []ps.Process{ &ProcessMock{pid: 1, ppid: 0}, &ProcessMock{pid: 10, ppid: 1}, diff --git a/lib/barcelona/network/autoscaling_builder.rb b/lib/barcelona/network/autoscaling_builder.rb index a87f09da..e748c156 100644 --- a/lib/barcelona/network/autoscaling_builder.rb +++ b/lib/barcelona/network/autoscaling_builder.rb @@ -121,7 +121,7 @@ def build_resources end j.Handler "index.lambda_handler" - j.Runtime "python3.7" + j.Runtime "python3.12" j.Timeout "60" j.Role get_attr("ASGDrainingFunctionRole", "Arn") j.Environment do |j| diff --git a/spec/lib/barcelona/network/network_stack_spec.rb b/spec/lib/barcelona/network/network_stack_spec.rb index 4a374d90..23e8ab6b 100644 --- a/spec/lib/barcelona/network/network_stack_spec.rb +++ b/spec/lib/barcelona/network/network_stack_spec.rb @@ -223,7 +223,7 @@ "ZipFile" => kind_of(String) }, "Handler" => "index.lambda_handler", - "Runtime" => "python3.7", + "Runtime" => "python3.12", "Timeout" => "60", "Role" => {"Fn::GetAtt" => ["ASGDrainingFunctionRole", "Arn"]}, "Environment" => {