Skip to content

Commit bfe489f

Browse files
Antoine Toussaintclaude
andcommitted
chore: bump core to v0.3.41
The container-recovery marker moved into the recoveryscope package; reading the inherited scope now reports its parse failure. Refs codefly-dev/core#598 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 3ca10d2 commit bfe489f

4 files changed

Lines changed: 13 additions & 7 deletions

File tree

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/codefly-dev/service-python-fastapi
33
go 1.27.0
44

55
require (
6-
github.com/codefly-dev/core v0.3.35
6+
github.com/codefly-dev/core v0.3.41
77
github.com/codefly-dev/service-python v0.0.62
88
github.com/stretchr/testify v1.12.1
99
google.golang.org/grpc v1.83.2

‎go.sum‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJ
4343
github.com/clipperhouse/uax29/v2 v2.7.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM=
4444
github.com/cloudflare/circl v1.6.5 h1:O64F26HEqNhznd/hrC5KZXVKYuKM2rx4deZDTc4ihQA=
4545
github.com/cloudflare/circl v1.6.5/go.mod h1:h5LNyxAc5nTue9DS5jT+48en2PSDYt3zdGnz5OstK6c=
46-
github.com/codefly-dev/core v0.3.35 h1:yQxXzNKy4XJ+Odv94pxI1N1sa+wnkuYiICMlJmJe1sc=
47-
github.com/codefly-dev/core v0.3.35/go.mod h1:f5LY9gRu5lpBQ0tNKujP0q6MF9K8fUnbYvItuHaUWlY=
46+
github.com/codefly-dev/core v0.3.41 h1:Etae1jOIWEl524U7tnCT3TaDPUtU5WGsf1XhlFALvt8=
47+
github.com/codefly-dev/core v0.3.41/go.mod h1:uG0HQy5iWnkuWUPa1LbbiPfEgzuxi1SzEKwcFPC6eoA=
4848
github.com/codefly-dev/gortk v0.2.0 h1:7bOlS5valYz2zil+fZctQNcPCYBcPj86abcw9N8h1hQ=
4949
github.com/codefly-dev/gortk v0.2.0/go.mod h1:dDWUMFgAP063OCGhTEpV7FFUj9+zTcxxO/nV80VKEwg=
5050
github.com/codefly-dev/service-python v0.0.62 h1:quru4JzJi8v5nhiYTzXjl2SswXIasyeYq/iaM6TvN4k=

‎lifecycle_matrix_test.go‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"github.com/codefly-dev/core/resources"
1212
runners "github.com/codefly-dev/core/runners/base"
1313
"github.com/codefly-dev/core/runners/dockerrun"
14+
"github.com/codefly-dev/core/runners/recoveryscope"
1415
"github.com/codefly-dev/core/runners/testmatrix"
1516
"github.com/stretchr/testify/require"
1617
)
@@ -25,9 +26,11 @@ func TestPythonFastAPILifecycle_Matrix(t *testing.T) {
2526
root := t.TempDir()
2627
scope, err := dockerrun.NewContainerRecoveryScope(root, root, t.Name())
2728
require.NoError(t, err)
28-
t.Setenv(dockerrun.ContainerRecoveryScopeEnvironment, os.Getenv(dockerrun.ContainerRecoveryScopeEnvironment))
29+
t.Setenv(recoveryscope.EnvironmentVariable, os.Getenv(recoveryscope.EnvironmentVariable))
2930
require.NoError(t, dockerrun.SetContainerRecoveryScope(scope))
30-
require.NotEmpty(t, dockerrun.InheritedContainerRecoveryScope())
31+
inheritedScope, _, err := recoveryscope.Inherited()
32+
require.NoError(t, err)
33+
require.NotEmpty(t, inheritedScope)
3134

3235
dir, err := os.MkdirTemp("", "pyfastapi-matrix-*")
3336
if err != nil {

‎main_test.go‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121

2222
"github.com/codefly-dev/core/resources"
2323
"github.com/codefly-dev/core/runners/dockerrun"
24+
"github.com/codefly-dev/core/runners/recoveryscope"
2425

2526
basev0 "github.com/codefly-dev/core/generated/go/codefly/base/v0"
2627
)
@@ -176,7 +177,9 @@ func ownTestContainers(t *testing.T) {
176177
root := t.TempDir()
177178
scope, err := dockerrun.NewContainerRecoveryScope(root, root, t.Name())
178179
require.NoError(t, err)
179-
t.Setenv(dockerrun.ContainerRecoveryScopeEnvironment, os.Getenv(dockerrun.ContainerRecoveryScopeEnvironment))
180+
t.Setenv(recoveryscope.EnvironmentVariable, os.Getenv(recoveryscope.EnvironmentVariable))
180181
require.NoError(t, dockerrun.SetContainerRecoveryScope(scope))
181-
require.NotEmpty(t, dockerrun.InheritedContainerRecoveryScope())
182+
inheritedScope, _, err := recoveryscope.Inherited()
183+
require.NoError(t, err)
184+
require.NotEmpty(t, inheritedScope)
182185
}

0 commit comments

Comments
 (0)