Skip to content

Commit 7a7b128

Browse files
authored
Merge branch 'master' into update-libbuildpack-1764784667
2 parents 40bb6e8 + cb23e2d commit 7a7b128

328 files changed

Lines changed: 43746 additions & 2698 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.10.28
1+
1.10.29
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: echo "Starting JRuby Sinatra app on port $PORT..." && bundle exec rackup config.ru -o 0.0.0.0 -p $PORT
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
---
22
applications:
33
- name: sinatra_jruby_web_app
4+
health-check-type: process
5+
timeout: 180

go.mod

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ toolchain go1.24.0
77
require (
88
github.com/blang/semver v3.5.1+incompatible
99
github.com/cloudfoundry/libbuildpack v0.0.0-20251202224209-b07cc3dab65e
10-
github.com/cloudfoundry/switchblade v0.9.0
10+
github.com/cloudfoundry/switchblade v0.9.4
1111
github.com/golang/mock v1.6.0
1212
github.com/kr/text v0.2.0
1313
github.com/onsi/ginkgo v1.16.5
@@ -21,15 +21,20 @@ require (
2121
github.com/Masterminds/semver v1.5.0 // indirect
2222
github.com/Microsoft/go-winio v0.6.2 // indirect
2323
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
24-
github.com/docker/distribution v2.8.3+incompatible // indirect
25-
github.com/docker/docker v27.4.1+incompatible // indirect
24+
github.com/containerd/log v0.1.0 // indirect
25+
github.com/distribution/reference v0.6.0 // indirect
26+
github.com/docker/docker v27.5.1+incompatible // indirect
2627
github.com/docker/go-connections v0.5.0 // indirect
2728
github.com/docker/go-units v0.5.0 // indirect
2829
github.com/elazarl/goproxy v1.2.8 // indirect
30+
github.com/felixge/httpsnoop v1.0.4 // indirect
2931
github.com/fsnotify/fsnotify v1.8.0 // indirect
3032
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
33+
github.com/go-logr/logr v1.4.2 // indirect
34+
github.com/go-logr/stdr v1.2.2 // indirect
3135
github.com/gogo/protobuf v1.3.2 // indirect
3236
github.com/google/go-cmp v0.6.0 // indirect
37+
github.com/moby/docker-image-spec v1.3.1 // indirect
3338
github.com/nxadm/tail v1.4.11 // indirect
3439
github.com/opencontainers/go-digest v1.0.0 // indirect
3540
github.com/opencontainers/image-spec v1.1.0 // indirect
@@ -42,14 +47,24 @@ require (
4247
github.com/tidwall/match v1.1.1 // indirect
4348
github.com/tidwall/pretty v1.2.1 // indirect
4449
github.com/ulikunitz/xz v0.5.12 // indirect
50+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.57.0 // indirect
51+
go.opentelemetry.io/otel v1.32.0 // indirect
52+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.32.0 // indirect
53+
go.opentelemetry.io/otel/metric v1.32.0 // indirect
54+
go.opentelemetry.io/otel/sdk v1.32.0 // indirect
55+
go.opentelemetry.io/otel/trace v1.32.0 // indirect
4556
golang.org/x/net v0.34.0 // indirect
4657
golang.org/x/sys v0.29.0 // indirect
4758
golang.org/x/text v0.21.0 // indirect
59+
google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28 // indirect
60+
google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 // indirect
4861
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
4962
gopkg.in/yaml.v2 v2.4.0 // indirect
5063
gopkg.in/yaml.v3 v3.0.1 // indirect
5164
)
5265

53-
replace github.com/docker/docker => github.com/docker/docker v24.0.2+incompatible
66+
exclude google.golang.org/genproto v0.0.0-20230403163135-c38d8f061ccd
67+
68+
replace github.com/docker/docker => github.com/docker/docker v27.5.1+incompatible
5469

5570
replace github.com/docker/distribution => github.com/docker/distribution v2.8.2+incompatible

go.sum

Lines changed: 43 additions & 69 deletions
Large diffs are not rendered by default.

manifest.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ dependencies:
6161
source: https://nodejs.org/dist/v20.16.0/node-v20.16.0.tar.gz
6262
source_sha256: 8f24bf9abe455a09ab30f9ae8edda1e945ed678a4b1c3b07ee0f901fdc0ff4fd
6363
- name: node
64-
version: 22.21.0
65-
uri: https://buildpacks.cloudfoundry.org/dependencies/node/node_22.21.0_linux_x64_cflinuxfs4_fb5f1014.tgz
66-
sha256: fb5f1014c8422753f6fedc55c449b8fa7d8dd00ee218b4b22eb67c0f50d06cac
64+
version: 24.13.0
65+
uri: https://buildpacks.cloudfoundry.org/dependencies/node/node_24.13.0_linux_x64_cflinuxfs4_45a7e799.tgz
66+
sha256: 45a7e7994603b3f02a6e9f7950d1780333b3dc113916a758bdc4c59ca225c13f
6767
cf_stacks:
6868
- cflinuxfs4
69-
source: https://nodejs.org/dist/v22.21.0/node-v22.21.0.tar.gz
70-
source_sha256: 3ada9d465cd6557b7b0ccea5f785278931a2a319bc941f68b2e742c6883f18ad
69+
source: https://nodejs.org/dist/v24.13.0/node-v24.13.0.tar.gz
70+
source_sha256: 54cb58921b4ce2831c6690ee823a3d39cfbf2b75f4e556c4c2bde90f3d8fd1ca
7171
- name: openjdk1.8-latest
7272
version: 1.8.0
7373
uri: https://java-buildpack.cloudfoundry.org/openjdk-jdk/bionic/x86_64/openjdk-jdk-1.8.0_242-bionic.tar.gz

scripts/.util/tools.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,17 @@ function util::tools::cf::install() {
148148
exit 1
149149
esac
150150

151+
# Check if cf already exists in the target directory or system PATH
152+
if [[ -f "${dir}/cf" ]] || command -v cf >/dev/null 2>&1; then
153+
util::print::title "CF CLI already installed (using system version)"
154+
cf version
155+
return 0
156+
fi
157+
151158
if [[ ! -f "${dir}/cf" ]]; then
152159
util::print::title "Installing cf"
153160

154-
curl "https://packages.cloudfoundry.org/stable?release=${os}-binary&version=6.49.0&source=github-rel" \
161+
curl "https://packages.cloudfoundry.org/stable?release=${os}-binary&source=github-rel" \
155162
--silent \
156163
--location \
157164
--output /tmp/cf.tar.gz

src/ruby/integration/default_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func testDefault(platform switchblade.Platform, fixtures string) func(*testing.T
2525
var err error
2626
name, err = switchblade.RandomName()
2727
Expect(err).NotTo(HaveOccurred())
28+
println(name)
2829
})
2930

3031
it.After(func() {
@@ -113,7 +114,9 @@ func testDefault(platform switchblade.Platform, fixtures string) func(*testing.T
113114
Expect(err).NotTo(HaveOccurred())
114115

115116
Expect(logs).To(ContainLines(MatchRegexp(`Installing jruby \d+\.\d+\.\d+\.\d+`)))
116-
Eventually(deployment, 1*time.Minute, 1*time.Second).Should(Serve(ContainSubstring("jruby 3.1.4")).WithEndpoint("/ruby"), logs.String())
117+
// JRuby needs extra time to warm up after health check passes
118+
// Increase timeout to 3 minutes with 2-second intervals for CI environments
119+
Eventually(deployment, 3*time.Minute, 2*time.Second).Should(Serve(ContainSubstring("jruby 3.1.4")).WithEndpoint("/ruby"), logs.String())
117120
})
118121
})
119122
}

vendor/github.com/cloudfoundry/switchblade/README.md

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cloudfoundry/switchblade/cloudfoundry.go

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)