Skip to content

Commit 456eaf9

Browse files
authored
Merge branch 'master' into feature/webvtt-regression-test
2 parents 0c36ecf + 1957dc8 commit 456eaf9

File tree

7 files changed

+654
-55
lines changed

7 files changed

+654
-55
lines changed

.github/workflows/sp-deployment-pipeline.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
username: ${{ vars.SSH_USER }}
3030
key: ${{ secrets.SSH_KEY_PRIVATE }}
3131
port: 22
32-
script_stop: true
3332
command_timeout: 2m
3433
envs: INSTALL_FOLDER,SAMPLE_REPOSITORY,DEPLOY_BRANCH
3534
script: |
35+
set -e
3636
echo "=== Pre-deployment checks ==="
3737
cd $INSTALL_FOLDER
3838
@@ -58,10 +58,10 @@ jobs:
5858
username: ${{ vars.SSH_USER }}
5959
key: ${{ secrets.SSH_KEY_PRIVATE }}
6060
port: 22
61-
script_stop: true
6261
command_timeout: 10m
6362
envs: INSTALL_FOLDER,SAMPLE_REPOSITORY,DEPLOY_BRANCH
6463
script: |
64+
set -e
6565
echo "=== Deploying application ==="
6666
cd $INSTALL_FOLDER
6767
@@ -99,7 +99,6 @@ jobs:
9999
username: ${{ vars.SSH_USER }}
100100
key: ${{ secrets.SSH_KEY_PRIVATE }}
101101
port: 22
102-
script_stop: false
103102
command_timeout: 2m
104103
envs: INSTALL_FOLDER
105104
script: |
@@ -139,7 +138,6 @@ jobs:
139138
username: ${{ vars.SSH_USER }}
140139
key: ${{ secrets.SSH_KEY_PRIVATE }}
141140
port: 22
142-
script_stop: false
143141
command_timeout: 5m
144142
envs: INSTALL_FOLDER,SAMPLE_REPOSITORY
145143
script: |
@@ -175,7 +173,6 @@ jobs:
175173
username: ${{ vars.SSH_USER }}
176174
key: ${{ secrets.SSH_KEY_PRIVATE }}
177175
port: 22
178-
script_stop: false
179176
command_timeout: 30s
180177
envs: INSTALL_FOLDER
181178
script: |

install/deploy/post_deploy.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ echo "--- Health check ---"
3131
for i in $(seq 1 $MAX_RETRIES); do
3232
echo "Attempt $i/$MAX_RETRIES..."
3333

34-
# Try the /health endpoint first
35-
HTTP_CODE=$(curl -s -o /tmp/health_response.json -w "%{http_code}" "$HEALTH_URL" 2>/dev/null || echo "000")
34+
# Try the /health endpoint first (use -L to follow HTTP->HTTPS redirects)
35+
HTTP_CODE=$(curl -sL -o /tmp/health_response.json -w "%{http_code}" "$HEALTH_URL" 2>/dev/null || echo "000")
3636

3737
if [ "$HTTP_CODE" = "200" ]; then
3838
echo "✓ Health check passed (HTTP $HTTP_CODE)"
@@ -43,9 +43,9 @@ for i in $(seq 1 $MAX_RETRIES); do
4343
echo "=== Deployment verified successfully ==="
4444
exit 0
4545
elif [ "$HTTP_CODE" = "404" ]; then
46-
# Health endpoint doesn't exist, try fallback
46+
# Health endpoint doesn't exist, try fallback (use -L to follow redirects)
4747
echo "Health endpoint not found, trying fallback URL..."
48-
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" "$FALLBACK_URL" 2>/dev/null || echo "000")
48+
HTTP_CODE=$(curl -sL -o /dev/null -w "%{http_code}" "$FALLBACK_URL" 2>/dev/null || echo "000")
4949
if [ "$HTTP_CODE" -ge 200 ] && [ "$HTTP_CODE" -lt 400 ]; then
5050
echo "✓ Fallback check passed (HTTP $HTTP_CODE)"
5151
echo ""
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
"""Add pending_deletion table for VM deletion tracking
2+
3+
Revision ID: c8f3a2b1d4e5
4+
Revises: 7793881905c5
5+
Create Date: 2025-12-30 12:00:00.000000
6+
7+
"""
8+
import sqlalchemy as sa
9+
from alembic import op
10+
11+
# revision identifiers, used by Alembic.
12+
revision = 'c8f3a2b1d4e5'
13+
down_revision = '7793881905c5'
14+
branch_labels = None
15+
depends_on = None
16+
17+
18+
def upgrade():
19+
# ### commands auto generated by Alembic - please adjust! ###
20+
op.create_table('pending_deletion',
21+
sa.Column('vm_name', sa.String(length=64), nullable=False),
22+
sa.Column('operation_name', sa.String(length=128), nullable=False),
23+
sa.Column('created_at', sa.DateTime(), nullable=False),
24+
sa.Column('retry_count', sa.Integer(), nullable=False),
25+
sa.PrimaryKeyConstraint('vm_name'),
26+
mysql_engine='InnoDB'
27+
)
28+
# ### end Alembic commands ###
29+
30+
31+
def downgrade():
32+
# ### commands auto generated by Alembic - please adjust! ###
33+
op.drop_table('pending_deletion')
34+
# ### end Alembic commands ###

0 commit comments

Comments
 (0)