Skip to content

Commit e4fdb30

Browse files
javier-aliaganelson-parenteacrocaJoshVanL
committed
Update versions upgrade test (#1539)
* feat: update d/d to 1.16.0-rc3 (#1527) * feat: update dapr version Signed-off-by: nelson.parente <[email protected]> * feat: bump golangcilint version Signed-off-by: nelson.parente <[email protected]> * fix: tests Signed-off-by: nelson.parente <[email protected]> * fix: resolve non-constant format string errors Signed-off-by: nelson.parente <[email protected]> * fix: linter errs Signed-off-by: nelson.parente <[email protected]> * feat: update dapr version Signed-off-by: nelson.parente <[email protected]> * fix: ensure certs do not exist Signed-off-by: nelson.parente <[email protected]> * fix: remove TODO in test Signed-off-by: nelson.parente <[email protected]> --------- Signed-off-by: nelson.parente <[email protected]> Signed-off-by: Javier Aliaga <[email protected]> * Update the versions in the upgrade test It will now test 1.14.5, 1.15.11 and 1.16.0-rc.7. Signed-off-by: Albert Callarisa <[email protected]> Signed-off-by: Javier Aliaga <[email protected]> * Fix generate certificates using new version Signed-off-by: Albert Callarisa <[email protected]> Signed-off-by: Javier Aliaga <[email protected]> * Fix tests Signed-off-by: joshvanl <[email protected]> Signed-off-by: Javier Aliaga <[email protected]> * chore: Update go version Signed-off-by: Javier Aliaga <[email protected]> * ci: Update pinned versions Signed-off-by: Javier Aliaga <[email protected]> * chore: Increase e2e template test sleep Signed-off-by: Javier Aliaga <[email protected]> * chore: Use go 1.24 Signed-off-by: Javier Aliaga <[email protected]> * fix: Print stop jobs result Signed-off-by: Javier Aliaga <[email protected]> * chore: Remove close app as they are cancelled when the context is cancelled Signed-off-by: Javier Aliaga <[email protected]> * chore: Increase wait period Signed-off-by: Javier Aliaga <[email protected]> * chore: Run processor app in different ports Signed-off-by: Javier Aliaga <[email protected]> --------- Signed-off-by: nelson.parente <[email protected]> Signed-off-by: Javier Aliaga <[email protected]> Signed-off-by: Albert Callarisa <[email protected]> Signed-off-by: joshvanl <[email protected]> Co-authored-by: Nelson Parente <[email protected]> Co-authored-by: Albert Callarisa <[email protected]> Co-authored-by: joshvanl <[email protected]>
1 parent 72db16b commit e4fdb30

File tree

20 files changed

+154
-127
lines changed

20 files changed

+154
-127
lines changed

.github/workflows/dapr_cli.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,29 @@ jobs:
3939
WIX_BIN_PATH: 'C:/Program Files (x86)/WiX Toolset v3.11/bin'
4040
strategy:
4141
matrix:
42-
os: [ubuntu-latest, windows-latest, macOS-latest, macOS-latest-large]
42+
os: [ubuntu-latest, windows-latest, macOS-14, macOS-14-large]
4343
target_arch: [arm, arm64, amd64]
4444
include:
4545
- os: ubuntu-latest
4646
target_os: linux
4747
- os: windows-latest
4848
target_os: windows
49-
- os: macOS-latest
49+
- os: macOS-14
5050
target_os: darwin
51-
- os: macOS-latest-large
51+
- os: macOS-14-large
5252
target_os: darwin
5353
exclude:
5454
- os: windows-latest
5555
target_arch: arm
5656
- os: windows-latest
5757
target_arch: arm64
58-
- os: macOS-latest
58+
- os: macOS-14
5959
target_arch: arm
60-
- os: macOS-latest
60+
- os: macOS-14
6161
target_arch: amd64
62-
- os: macOS-latest-large
62+
- os: macOS-14-large
6363
target_arch: arm
64-
- os: macOS-latest-large
64+
- os: macOS-14-large
6565
target_arch: arm64
6666
steps:
6767
- name: Prepare Go's bin location - MacOS

.github/workflows/kind_e2e.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
name: E2E tests for K8s (KinD)
5151
runs-on: ubuntu-latest
5252
env:
53-
DAPR_RUNTIME_PINNED_VERSION: 1.14.4
54-
DAPR_DASHBOARD_PINNED_VERSION: 0.14.0
53+
DAPR_RUNTIME_PINNED_VERSION: 1.16.0-rc.8
54+
DAPR_DASHBOARD_PINNED_VERSION: 0.15.0
5555
DAPR_RUNTIME_LATEST_STABLE_VERSION:
5656
DAPR_DASHBOARD_LATEST_STABLE_VERSION:
5757
strategy:

.github/workflows/self_hosted_e2e.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
GOARCH: ${{ matrix.target_arch }}
3939
GOPROXY: https://proxy.golang.org
4040
ARCHIVE_OUTDIR: dist/archives
41-
DAPR_RUNTIME_PINNED_VERSION: "1.14.4"
42-
DAPR_DASHBOARD_PINNED_VERSION: 0.14.0
41+
DAPR_RUNTIME_PINNED_VERSION: "1.16.0-rc.8"
42+
DAPR_DASHBOARD_PINNED_VERSION: 0.15.0
4343
DAPR_RUNTIME_LATEST_STABLE_VERSION: ""
4444
DAPR_DASHBOARD_LATEST_STABLE_VERSION: ""
4545
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: warn
@@ -49,13 +49,13 @@ jobs:
4949
fail-fast: false # Keep running if one leg fails.
5050
matrix:
5151
# See https://github.com/actions/runner-images
52-
os: [macos-latest-large, ubuntu-latest, windows-latest]
52+
os: [macos-14-large, ubuntu-latest, windows-latest]
5353
target_arch: [amd64]
5454
dapr_install_mode: [slim, complete]
5555
include:
5656
- os: ubuntu-latest
5757
target_os: linux
58-
- os: macos-latest-large
58+
- os: macos-14-large
5959
target_os: darwin
6060
- os: windows-latest
6161
target_os: windows
@@ -64,7 +64,7 @@ jobs:
6464
dapr_install_mode: complete
6565
steps:
6666
- name: Prepare Go's bin location - MacOS
67-
if: matrix.os == 'macos-latest-large'
67+
if: matrix.os == 'macos-14-large'
6868
run: |
6969
export PATH=$HOME/bin:$PATH
7070
echo "$HOME/bin" >> $GITHUB_PATH
@@ -80,7 +80,7 @@ jobs:
8080
go-version-file: "go.mod"
8181
- name: Install podman - MacOS
8282
timeout-minutes: 15
83-
if: matrix.os == 'macos-latest-large' && matrix.dapr_install_mode == 'complete'
83+
if: matrix.os == 'macos-14-large' && matrix.dapr_install_mode == 'complete'
8484
run: |
8585
# Install podman
8686
curl -sL -o podman.pkg https://github.com/containers/podman/releases/download/v${{ env.PODMAN_VERSION }}/podman-installer-macos-amd64.pkg
@@ -130,7 +130,7 @@ jobs:
130130
echo "DAPR_DASHBOARD_LATEST_STABLE_VERSION=$LATEST_STABLE_DASHBOARD_VERSION" >> $GITHUB_ENV
131131
shell: bash
132132
- name: Set the test timeout - MacOS
133-
if: matrix.os == 'macos-latest-large'
133+
if: matrix.os == 'macos-14-large'
134134
run: echo "E2E_SH_TEST_TIMEOUT=30m" >> $GITHUB_ENV
135135
- name: Run E2E tests with GHCR
136136
# runs every 6hrs

go.mod

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
module github.com/dapr/cli
22

3-
go 1.24.5
3+
go 1.24.7
44

55
require (
66
github.com/Masterminds/semver v1.5.0
77
github.com/Masterminds/semver/v3 v3.3.0
88
github.com/Pallinder/sillyname-go v0.0.0-20130730142914-97aeae9e6ba1
99
github.com/briandowns/spinner v1.19.0
10-
github.com/dapr/dapr v1.16.0-rc.3
11-
github.com/dapr/go-sdk v1.11.0
12-
github.com/dapr/kit v0.15.3-0.20250717140748-8b780b4d81c5
10+
github.com/dapr/dapr v1.16.0
11+
github.com/dapr/go-sdk v1.13.0
12+
github.com/dapr/kit v0.16.1
1313
github.com/docker/docker v25.0.6+incompatible
1414
github.com/evanphx/json-patch/v5 v5.9.0
1515
github.com/fatih/color v1.17.0
@@ -73,8 +73,8 @@ require (
7373
github.com/containerd/log v0.1.0 // indirect
7474
github.com/containerd/platforms v0.2.1 // indirect
7575
github.com/cyphar/filepath-securejoin v0.3.6 // indirect
76-
github.com/dapr/components-contrib v1.15.1-0.20250725163610-adc76bd6ec85 // indirect
77-
github.com/dapr/durabletask-go v0.7.3-0.20250711135247-7a35af6fe0e5 // indirect
76+
github.com/dapr/components-contrib v1.16.0 // indirect
77+
github.com/dapr/durabletask-go v0.10.0 // indirect
7878
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
7979
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
8080
github.com/distribution/reference v0.6.0 // indirect
@@ -205,14 +205,14 @@ require (
205205
go.opencensus.io v0.24.0 // indirect
206206
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
207207
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
208-
go.opentelemetry.io/otel v1.35.0 // indirect
208+
go.opentelemetry.io/otel v1.36.0 // indirect
209209
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.35.0 // indirect
210210
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.35.0 // indirect
211211
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.35.0 // indirect
212212
go.opentelemetry.io/otel/exporters/zipkin v1.34.0 // indirect
213-
go.opentelemetry.io/otel/metric v1.35.0 // indirect
213+
go.opentelemetry.io/otel/metric v1.36.0 // indirect
214214
go.opentelemetry.io/otel/sdk v1.35.0 // indirect
215-
go.opentelemetry.io/otel/trace v1.35.0 // indirect
215+
go.opentelemetry.io/otel/trace v1.36.0 // indirect
216216
go.opentelemetry.io/proto/otlp v1.6.0 // indirect
217217
go.uber.org/multierr v1.11.0 // indirect
218218
golang.org/x/crypto v0.39.0 // indirect

go.sum

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,16 @@ github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY=
148148
github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
149149
github.com/cyphar/filepath-securejoin v0.3.6 h1:4d9N5ykBnSp5Xn2JkhocYDkOpURL/18CYMpo6xB9uWM=
150150
github.com/cyphar/filepath-securejoin v0.3.6/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI=
151-
github.com/dapr/components-contrib v1.15.1-0.20250725163610-adc76bd6ec85 h1:eSCTYjRM8oRMWMXCXLxAQRCli03FNVUFbS00IF4h+zQ=
152-
github.com/dapr/components-contrib v1.15.1-0.20250725163610-adc76bd6ec85/go.mod h1:GfreXwMaOEn1ISA8lPtlLQCb8lzI4Ux/4TlYPE/OHfU=
153-
github.com/dapr/dapr v1.16.0-rc.3 h1:D99V20GOhb+bZXH1PngME+wgzIZCcBFOvmaP7DOZxGo=
154-
github.com/dapr/dapr v1.16.0-rc.3/go.mod h1:uyKnxMohSg87LSFzZ/oyuiGSo0+qkzeR0eXncPyIV9c=
155-
github.com/dapr/durabletask-go v0.7.3-0.20250711135247-7a35af6fe0e5 h1:l8oBGwcfCwqvSYDZwla0A2fhENmXFc1Wk4lR0VEq+is=
156-
github.com/dapr/durabletask-go v0.7.3-0.20250711135247-7a35af6fe0e5/go.mod h1:0Ts4rXp74JyG19gDWPcwNo5V6NBZzhARzHF5XynmA7Q=
157-
github.com/dapr/go-sdk v1.11.0 h1:clANpOQd6MsfvSa6snaX8MVk6eRx26Vsj5GxGdQ6mpE=
158-
github.com/dapr/go-sdk v1.11.0/go.mod h1:btZ/tX8eYnx0fg3HiJUku8J5QBRXHsp3kAB1BUiTxXY=
159-
github.com/dapr/kit v0.15.3-0.20250717140748-8b780b4d81c5 h1:Q26gmPxs6WnnBYoudOlznPHsmrbTawcYEpHg4VoB7v8=
160-
github.com/dapr/kit v0.15.3-0.20250717140748-8b780b4d81c5/go.mod h1:40ZWs5P6xfYf7O59XgwqZkIyDldTIXlhTQhGop8QoSM=
151+
github.com/dapr/components-contrib v1.16.0 h1:kUif6UyxtRz6tXnkuIjbx6z+VLMfc6y+SIYa9T7J3eA=
152+
github.com/dapr/components-contrib v1.16.0/go.mod h1:1AufCWqZwBj//UkyS7FesOEmp5/E6Xgy1tyCn8peiR4=
153+
github.com/dapr/dapr v1.16.0 h1:la2WLZM8Myr2Pq3cyrFjHKWDSPYLzGZCs3p502TwBjI=
154+
github.com/dapr/dapr v1.16.0/go.mod h1:ln/mxvNOeqklaDmic4ppsxmnjl2D/oZGKaJy24IwaEY=
155+
github.com/dapr/durabletask-go v0.10.0 h1:vfIivPl4JYd55xZTslDwhA6p6F8ipcNxBtMaupxArr8=
156+
github.com/dapr/durabletask-go v0.10.0/go.mod h1:0Ts4rXp74JyG19gDWPcwNo5V6NBZzhARzHF5XynmA7Q=
157+
github.com/dapr/go-sdk v1.13.0 h1:Qw2BmUonClQ9yK/rrEEaFL1PyDgq616RrvYj0CT67Lk=
158+
github.com/dapr/go-sdk v1.13.0/go.mod h1:RsffVNZitDApmQqoS68tNKGMXDZUjTviAbKZupJSzts=
159+
github.com/dapr/kit v0.16.1 h1:MqLAhHVg8trPy2WJChMZFU7ToeondvxcNHYVvMDiVf4=
160+
github.com/dapr/kit v0.16.1/go.mod h1:40ZWs5P6xfYf7O59XgwqZkIyDldTIXlhTQhGop8QoSM=
161161
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
162162
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
163163
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
@@ -684,8 +684,8 @@ go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJyS
684684
go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A=
685685
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 h1:sbiXRNDSWJOTobXh5HyQKjq6wUC5tNybqjIqDpAY4CU=
686686
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0/go.mod h1:69uWxva0WgAA/4bu2Yy70SLDBwZXuQ6PbBpbsa5iZrQ=
687-
go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ=
688-
go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y=
687+
go.opentelemetry.io/otel v1.36.0 h1:UumtzIklRBY6cI/lllNZlALOF5nNIzJVb16APdvgTXg=
688+
go.opentelemetry.io/otel v1.36.0/go.mod h1:/TcFMXYjyRNh8khOAO9ybYkqaDBb/70aVwkNML4pP8E=
689689
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.35.0 h1:1fTNlAIJZGWLP5FVu0fikVry1IsiUnXjf7QFvoNN3Xw=
690690
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.35.0/go.mod h1:zjPK58DtkqQFn+YUMbx0M2XV3QgKU0gS9LeGohREyK4=
691691
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.35.0 h1:m639+BofXTvcY1q8CGs4ItwQarYtJPOWmVobfM1HpVI=
@@ -694,14 +694,14 @@ go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.35.0 h1:xJ2qH
694694
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.35.0/go.mod h1:u5BF1xyjstDowA1R5QAO9JHzqK+ublenEW/dyqTjBVk=
695695
go.opentelemetry.io/otel/exporters/zipkin v1.34.0 h1:GSjCkoYqsnvUMCjxF18j2tCWH8fhGZYjH3iYgechPTI=
696696
go.opentelemetry.io/otel/exporters/zipkin v1.34.0/go.mod h1:h830hluwAqgSNnZbxL2rJhmAlE7/0SF9esoHVLU04Gc=
697-
go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M=
698-
go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE=
697+
go.opentelemetry.io/otel/metric v1.36.0 h1:MoWPKVhQvJ+eeXWHFBOPoBOi20jh6Iq2CcCREuTYufE=
698+
go.opentelemetry.io/otel/metric v1.36.0/go.mod h1:zC7Ks+yeyJt4xig9DEw9kuUFe5C3zLbVjV2PzT6qzbs=
699699
go.opentelemetry.io/otel/sdk v1.35.0 h1:iPctf8iprVySXSKJffSS79eOjl9pvxV9ZqOWT0QejKY=
700700
go.opentelemetry.io/otel/sdk v1.35.0/go.mod h1:+ga1bZliga3DxJ3CQGg3updiaAJoNECOgJREo9KHGQg=
701701
go.opentelemetry.io/otel/sdk/metric v1.35.0 h1:1RriWBmCKgkeHEhM7a2uMjMUfP7MsOF5JpUCaEqEI9o=
702702
go.opentelemetry.io/otel/sdk/metric v1.35.0/go.mod h1:is6XYCUMpcKi+ZsOvfluY5YstFnhW0BidkR+gL+qN+w=
703-
go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs=
704-
go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc=
703+
go.opentelemetry.io/otel/trace v1.36.0 h1:ahxWNuqZjpdiFAyrIoQ4GIiAIhxAunQR6MUoKrsNd4w=
704+
go.opentelemetry.io/otel/trace v1.36.0/go.mod h1:gQ+OnDZzrybY4k4seLzPAWNwVBBVlF2szhehOBB/tGA=
705705
go.opentelemetry.io/proto/otlp v1.6.0 h1:jQjP+AQyTf+Fe7OKj/MfkDrmK4MNVtw2NpXsf9fefDI=
706706
go.opentelemetry.io/proto/otlp v1.6.0/go.mod h1:cicgGehlFuNdgZkcALOCh3VE6K/u2tAjzlRhDwmVpZc=
707707
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=

pkg/kubernetes/renew_certificate.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929

3030
"github.com/dapr/cli/pkg/print"
3131
"github.com/dapr/cli/utils"
32-
"github.com/dapr/dapr/pkg/sentry/server/ca"
32+
"github.com/dapr/dapr/pkg/sentry/server/ca/bundle"
3333
)
3434

3535
type RenewCertificateParams struct {
@@ -196,7 +196,12 @@ func GenerateNewCertificates(validUntil time.Duration, privateKeyFile string) ([
196196
}
197197
}
198198

199-
bundle, err := ca.GenerateBundle(rootKey, "cluster.local", allowedClockSkew, &validUntil)
199+
bundle, err := bundle.GenerateX509(bundle.OptionsX509{
200+
X509RootKey: rootKey,
201+
TrustDomain: "cluster.local",
202+
AllowedClockSkew: allowedClockSkew,
203+
OverrideCATTL: &validUntil,
204+
})
200205
if err != nil {
201206
return nil, nil, nil, err
202207
}

tests/apps/emit-metrics/app.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package main
1818
import (
1919
"bytes"
2020
"encoding/json"
21+
"io"
2122
"log"
2223
"net/http"
2324
"os"
@@ -68,8 +69,10 @@ func main() {
6869
}
6970
defer r.Body.Close()
7071
if r.StatusCode != http.StatusOK {
72+
body, _ := io.ReadAll(r.Body)
7173
log.Printf("Error sending metrics with %d to 'processor' app got status code %d\n", i, r.StatusCode)
7274
log.Printf("Status %s \n", r.Status)
75+
log.Printf("Body %s \n", body)
7376
continue
7477
}
7578
log.Printf("Metrics with ID %d sent \n", i)

tests/apps/emit-metrics/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module emit-metrics
22

3-
go 1.21
3+
go 1.24.7

tests/apps/processor/app.go

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"net/http"
2323
"os"
2424
"os/signal"
25+
"strconv"
2526
"syscall"
2627
"time"
2728
)
@@ -47,8 +48,21 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
4748
}
4849

4950
func main() {
50-
fmt.Println("Starting server in port 9081...")
51-
StartServer(9081, &handler{})
51+
var port int
52+
var err error
53+
if val, ok := os.LookupEnv("APP_PORT"); !ok {
54+
log.Println("APP_PORT not automatically injected, setting to 9081")
55+
port = 9081
56+
} else {
57+
log.Println("APP_PORT set to", val)
58+
port, err = strconv.Atoi(val)
59+
if err != nil {
60+
log.Fatalf("Error parsing APP_PORT: %v", err)
61+
}
62+
63+
}
64+
fmt.Printf("Starting server in port %v...\n", port)
65+
StartServer(port, &handler{})
5266
}
5367

5468
// StartServer starts a HTTP or HTTP2 server

tests/apps/processor/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module processor
22

3-
go 1.21
3+
go 1.24.7

0 commit comments

Comments
 (0)