Skip to content

Commit a3da5b4

Browse files
committed
ci(e2e): improve Pulsar container startup reliability
1 parent 08f0c84 commit a3da5b4

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/e2e.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ jobs:
3737
--health-cmd "curl -f http://localhost:8080/admin/v2/clusters"
3838
--health-interval 10s
3939
--health-timeout 5s
40-
--health-retries 5
40+
--health-retries 30
41+
--health-start-period 90s
42+
-v ${{ github.workspace }}/scripts/pulsar-e2e-entrypoint.sh:/pulsar-entrypoint.sh
43+
entrypoint: ["/bin/bash", "/pulsar-entrypoint.sh"]
4144

4245
steps:
4346
- name: Check out code

scripts/pulsar-e2e-entrypoint.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
# Copyright 2025 StreamNative
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
set -e
17+
18+
echo "Starting Pulsar standalone for E2E testing..."
19+
20+
# Start Pulsar standalone in foreground
21+
# Using exec to replace the current process ensures proper signal handling
22+
exec bin/pulsar standalone

0 commit comments

Comments
 (0)