Skip to content

Commit 2a635fb

Browse files
fix(runtime): persist recovery configuration and structure test results (#6)
* fix(runtime): log structured Python test verdicts * chore(runtime): update Codefly core * feat(runtime): persist agent recovery configuration * fix(runtime): bound live native failure logs * fix(runtime): repair test-formula CI fixture and harden log summary - Fix the commandless-service-config test: its GitHub workflow fixture lacked a name: containing "test", so DeriveFormula extracted no command and resolveTestFormula returned ok=false (would fail the new CI go test). - boundedTestLogMessage: back the head off only to the nearest rune boundary instead of revalidating the whole prefix, so an invalid UTF-8 byte in native diagnostics no longer collapses the head and drops the classification header. - Build the default-runner proto response once and reuse it for the log line and return value. - Migrate off deprecated proto fields: render coverage from the structured TestCoverage.total_pct; use maps.Copy in overlayStringMap. The remaining deprecated Status write is the sole error carrier from core's TestError and is documented in place. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 108a522 commit 2a635fb

6 files changed

Lines changed: 361 additions & 57 deletions

File tree

‎go.mod‎

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module github.com/codefly-dev/service-python
22

3-
go 1.25.0
3+
go 1.25.12
44

55
toolchain go1.26.4
66

77
require (
8-
github.com/codefly-dev/core v0.2.35
8+
github.com/codefly-dev/core v0.2.66
99
gopkg.in/yaml.v3 v3.0.1
1010
)
1111

@@ -15,20 +15,24 @@ require (
1515
cel.dev/expr v0.25.1 // indirect
1616
dario.cat/mergo v1.0.2 // indirect
1717
github.com/Masterminds/semver v1.5.0 // indirect
18+
github.com/Masterminds/semver/v3 v3.5.0 // indirect
1819
github.com/Microsoft/go-winio v0.6.2 // indirect
1920
github.com/ProtonMail/go-crypto v1.4.1 // indirect
2021
github.com/VividCortex/ewma v1.2.0 // indirect
2122
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
2223
github.com/blang/semver v3.5.1+incompatible // indirect
24+
github.com/blang/semver/v4 v4.0.0 // indirect
2325
github.com/cespare/xxhash/v2 v2.3.0 // indirect
2426
github.com/cheggaaa/pb/v3 v3.1.7 // indirect
2527
github.com/clipperhouse/uax29/v2 v2.7.0 // indirect
2628
github.com/cloudflare/circl v1.6.3 // indirect
2729
github.com/codefly-dev/gortk v0.2.0 // indirect
2830
github.com/cyphar/filepath-securejoin v0.6.1 // indirect
31+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2932
github.com/emirpasic/gods v1.18.1 // indirect
3033
github.com/fatih/color v1.19.0 // indirect
3134
github.com/fsnotify/fsnotify v1.9.0 // indirect
35+
github.com/go-errors/errors v1.4.2 // indirect
3236
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
3337
github.com/go-git/go-billy/v5 v5.9.0 // indirect
3438
github.com/go-git/go-git/v5 v5.19.1 // indirect
@@ -42,6 +46,7 @@ require (
4246
github.com/go-openapi/loads v0.23.3 // indirect
4347
github.com/go-openapi/spec v0.22.4 // indirect
4448
github.com/go-openapi/strfmt v0.26.1 // indirect
49+
github.com/go-openapi/swag v0.23.0 // indirect
4550
github.com/go-openapi/swag/conv v0.26.0 // indirect
4651
github.com/go-openapi/swag/jsonname v0.26.0 // indirect
4752
github.com/go-openapi/swag/jsonutils v0.26.0 // indirect
@@ -51,21 +56,26 @@ require (
5156
github.com/go-openapi/swag/typeutils v0.26.0 // indirect
5257
github.com/go-openapi/swag/yamlutils v0.26.0 // indirect
5358
github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
59+
github.com/gofrs/flock v0.13.0 // indirect
5460
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
5561
github.com/google/cel-go v0.28.0 // indirect
56-
github.com/google/go-github/v37 v37.0.0 // indirect
62+
github.com/google/gnostic-models v0.6.9 // indirect
63+
github.com/google/go-github/v89 v89.0.0 // indirect
5764
github.com/google/go-querystring v1.2.0 // indirect
5865
github.com/google/uuid v1.6.0 // indirect
5966
github.com/hashicorp/errwrap v1.1.0 // indirect
6067
github.com/hashicorp/go-multierror v1.1.1 // indirect
6168
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
69+
github.com/josharian/intern v1.0.0 // indirect
6270
github.com/kevinburke/ssh_config v1.6.0 // indirect
6371
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
6472
github.com/lufia/plan9stats v0.0.0-20260330125221-c963978e514e // indirect
73+
github.com/mailru/easyjson v0.7.7 // indirect
6574
github.com/mattn/go-colorable v0.1.14 // indirect
6675
github.com/mattn/go-isatty v0.0.21 // indirect
6776
github.com/mattn/go-runewidth v0.0.23 // indirect
6877
github.com/mitchellh/mapstructure v1.5.0 // indirect
78+
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
6979
github.com/oklog/ulid/v2 v2.1.1 // indirect
7080
github.com/pjbgf/sha1cd v0.6.0 // indirect
7181
github.com/pkg/errors v0.9.1 // indirect
@@ -78,23 +88,30 @@ require (
7888
github.com/tklauser/go-sysconf v0.3.16 // indirect
7989
github.com/tklauser/numcpus v0.11.0 // indirect
8090
github.com/xanzy/ssh-agent v0.3.3 // indirect
91+
github.com/xlab/treeprint v1.2.0 // indirect
8192
github.com/yoheimuta/go-protoparser/v4 v4.14.2 // indirect
8293
github.com/yusufpapurcu/wmi v1.2.4 // indirect
8394
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
8495
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.68.0 // indirect
8596
go.opentelemetry.io/otel v1.44.0 // indirect
8697
go.opentelemetry.io/otel/metric v1.44.0 // indirect
8798
go.opentelemetry.io/otel/trace v1.44.0 // indirect
99+
go.yaml.in/yaml/v2 v2.4.2 // indirect
88100
go.yaml.in/yaml/v3 v3.0.4 // indirect
89101
golang.org/x/crypto v0.53.0 // indirect
90102
golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f // indirect
91103
golang.org/x/net v0.56.0 // indirect
92-
golang.org/x/sys v0.46.0 // indirect
104+
golang.org/x/sys v0.47.0 // indirect
93105
golang.org/x/term v0.44.0 // indirect
94106
golang.org/x/text v0.39.0 // indirect
95107
google.golang.org/genproto/googleapis/api v0.0.0-20260420184626-e10c466a9529 // indirect
96108
google.golang.org/genproto/googleapis/rpc v0.0.0-20260420184626-e10c466a9529 // indirect
97-
google.golang.org/grpc v1.80.0 // indirect
109+
google.golang.org/grpc v1.82.1 // indirect
98110
google.golang.org/protobuf v1.36.11 // indirect
111+
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
99112
gopkg.in/warnings.v0 v0.1.2 // indirect
113+
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 // indirect
114+
sigs.k8s.io/kustomize/api v0.21.1 // indirect
115+
sigs.k8s.io/kustomize/kyaml v0.21.1 // indirect
116+
sigs.k8s.io/yaml v1.5.0 // indirect
100117
)

0 commit comments

Comments
 (0)