Skip to content

Commit b6494ee

Browse files
Merge pull request #99 from scheduleonce/technocrats/ONCEHUB-103047
feat: [Master] ONCEHUB-98788: updating transformer version to 1.107.5
2 parents 4a81738 + a3e7a23 commit b6494ee

File tree

435 files changed

+49652
-17458
lines changed

Some content is hidden

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

435 files changed

+49652
-17458
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ src/v0/destinations/personalize/scripts/
2222
test/integrations/destinations/testTypes.d.ts
2323
*.config*.js
2424
scripts/skipPrepareScript.js
25+
scripts/create-github-release.js
2526
*.yaml
2627
*.yml
2728
.eslintignore
@@ -30,3 +31,4 @@ scripts/skipPrepareScript.js
3031
Dockerfile*
3132
*.properties
3233
*.go
34+
CODEOWNERS

.eslintrc.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
"plugin:sonarjs/recommended",
1212
"plugin:json/recommended",
1313
"plugin:@typescript-eslint/recommended",
14-
"prettier"
14+
"prettier",
15+
"plugin:import/errors",
16+
"plugin:import/warnings"
1517
],
16-
"plugins": ["@typescript-eslint", "unicorn"],
18+
"plugins": ["@typescript-eslint", "unicorn", "import"],
1719
"globals": {},
1820
"parser": "@typescript-eslint/parser",
1921
"parserOptions": {
@@ -67,6 +69,8 @@
6769
"sonarjs/no-identical-functions": "error",
6870
"no-prototype-builtins": "off",
6971
"@typescript-eslint/dot-notation": "error",
70-
"@typescript-eslint/no-unused-vars": "error"
72+
"@typescript-eslint/no-unused-vars": "error",
73+
"import/named": "error",
74+
"import/no-unresolved": "error"
7175
}
7276
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: 'K8s Deployment Restart'
2+
description: 'Rollout restart a deployment on a k8s cluster across multiple namespaces'
3+
4+
inputs:
5+
aws-role:
6+
required: true
7+
description: 'AWS IAM role to assume for EKS access'
8+
aws-region:
9+
required: true
10+
description: 'AWS region where the EKS cluster is located'
11+
k8s-cluster:
12+
required: true
13+
description: 'Name of the EKS cluster'
14+
k8s-namespace:
15+
required: true
16+
description: 'Kubernetes namespace(s) - single namespace or comma-separated list (e.g., "namespace1" or "namespace1,namespace2,namespace3")'
17+
deployment-name:
18+
required: true
19+
description: 'Name of the deployment to restart'
20+
21+
runs:
22+
using: 'composite'
23+
steps:
24+
- uses: azure/setup-kubectl@v4
25+
26+
- name: Configure AWS Credentials
27+
uses: aws-actions/configure-aws-credentials@v4
28+
with:
29+
role-to-assume: ${{ inputs.aws-role }}
30+
role-session-name: GitHubActionsEKS
31+
aws-region: ${{ inputs.aws-region }}
32+
33+
- name: Update Kubeconfig
34+
shell: bash
35+
run: aws eks update-kubeconfig --name ${{ inputs.k8s-cluster }} --region ${{ inputs.aws-region }}
36+
37+
- name: Restart Pods in the provided Namespaces
38+
shell: bash
39+
run: |
40+
# Split comma-separated namespaces and restart deployment in each
41+
IFS=',' read -ra NAMESPACES <<< "${{ inputs.k8s-namespace }}"
42+
IFS=',' read -ra DEPLOYMENTS <<< "${{ inputs.deployment-name }}"
43+
44+
echo "🚀 Starting deployment restart process..."
45+
echo "Deployment: ${{ inputs.deployment-name }}"
46+
echo "Namespaces: ${{ inputs.k8s-namespace }}"
47+
echo ""
48+
49+
for namespace in "${NAMESPACES[@]}"; do
50+
# Trim whitespace from namespace name
51+
namespace=$(echo "$namespace" | xargs)
52+
53+
if [ -z "$namespace" ]; then
54+
echo "⚠️ Skipping empty namespace"
55+
continue
56+
fi
57+
58+
echo "📦 Processing namespace: $namespace"
59+
for deployment in "${DEPLOYMENTS[@]}"; do
60+
echo "🔄 Command that would be executed: kubectl rollout restart deployment -l app.kubernetes.io/name=\"$deployment\" -n $namespace"
61+
kubectl rollout restart deployment -l app.kubernetes.io/name="$deployment" -n "$namespace"
62+
kubectl rollout status deployment -l app.kubernetes.io/name="$deployment" -n "$namespace" --timeout=300s
63+
done
64+
65+
echo "✅ Successfully restarted deployment in namespace: $namespace"
66+
echo ""
67+
done
68+
69+
echo "🎉 Deployment restart process completed!"
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
# 1. Start the Node.js server in the background
4+
node ./src/index.js &
5+
NODE_PID=$!
6+
7+
# 2. Wait for server to be up (max 10s)
8+
timeout=10
9+
echo "Waiting for server to be healthy at http://localhost:9090/health ..."
10+
for i in $(seq 1 $timeout); do
11+
if curl -sf http://localhost:9090/health > /dev/null; then
12+
echo "Server is healthy!"
13+
break
14+
fi
15+
sleep 1
16+
done
17+
18+
if ! curl -sf http://localhost:9090/health > /dev/null; then
19+
echo "Server did not become healthy within $timeout seconds."
20+
kill $NODE_PID
21+
exit 1
22+
fi
23+
24+
# 3. Kill the node server with SIGINT
25+
kill -SIGINT $NODE_PID
26+
27+
# 4. Wait until /health no longer responds, up to 10 seconds
28+
echo "Waiting for server to stop..."
29+
stoptimeout=10
30+
for i in $(seq 1 $stoptimeout); do
31+
if ! curl -sf http://localhost:9090/health > /dev/null; then
32+
echo "Server has stopped."
33+
exit 0
34+
fi
35+
sleep 1
36+
done
37+
38+
echo "Server did not stop within $stoptimeout seconds."
39+
exit 1

.github/workflows/allure-test-reporter.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121

2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v4.2.1
24+
uses: actions/checkout@v5
2525

2626
- name: Setup Node
27-
uses: actions/setup-node@v4.4.0
27+
uses: actions/setup-node@v5.0.0
2828
with:
2929
node-version-file: '.nvmrc'
3030
cache: 'npm'
@@ -48,7 +48,7 @@ jobs:
4848
echo "REPORT_FOLDER=${REPORT_FOLDER}" >> $GITHUB_ENV # Persist this variable
4949
5050
- name: Checkout Reports Repository
51-
uses: actions/checkout@v4
51+
uses: actions/checkout@v5
5252
with:
5353
repository: rudderlabs/test-reports
5454
token: ${{ secrets.PAT }}
@@ -94,7 +94,7 @@ jobs:
9494
done
9595
9696
- name: Add Test Report Link as Comment on PR
97-
uses: actions/github-script@v7
97+
uses: actions/github-script@v8
9898
with:
9999
github-token: ${{ secrets.PAT }}
100100
script: |

.github/workflows/build-pr-artifacts.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- reopened
88
- synchronize
99

10+
permissions:
11+
contents: read
12+
id-token: write # allows the JWT to be requested from GitHub's OIDC provider
13+
1014
concurrency:
1115
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
1216
cancel-in-progress: true
@@ -22,7 +26,7 @@ jobs:
2226
tag_name_ut: ${{ steps.gen_tag_names.outputs.tag_name_ut }}
2327
steps:
2428
- name: Checkout
25-
uses: actions/checkout@v4.2.1
29+
uses: actions/checkout@v4
2630
with:
2731
fetch-depth: 1
2832

.github/workflows/build-push-docker-image.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
should_execute_tests: ${{ steps.processing.outputs.should_execute_tests }}
7474
steps:
7575
- name: Checkout
76-
uses: actions/checkout@v4.2.1
76+
uses: actions/checkout@v5
7777
with:
7878
fetch-depth: 1
7979
- id: files
@@ -101,22 +101,22 @@ jobs:
101101
needs: [get_sha, get_changed_files]
102102
steps:
103103
- name: Checkout
104-
uses: actions/checkout@v4.2.1
104+
uses: actions/checkout@v5
105105
with:
106106
ref: ${{ needs.get_sha.outputs.sha }}
107107
fetch-depth: 1
108108

109109
- name: Login to DockerHub
110-
uses: docker/login-action@v3.4.0
110+
uses: docker/login-action@v3.5.0
111111
with:
112112
username: ${{ secrets.DOCKERHUB_USERNAME }}
113113
password: ${{ secrets.DOCKERHUB_TOKEN }}
114114

115115
- name: Setup Docker Buildx
116-
uses: docker/setup-buildx-action@v3.7.1
116+
uses: docker/setup-buildx-action@v3.11.1
117117

118118
- name: Build Docker Image
119-
uses: rudderlabs/build-scan-push-action@v1.5.3
119+
uses: rudderlabs/build-scan-push-action@v1.7.0
120120
with:
121121
context: .
122122
file: ${{ inputs.dockerfile }}
@@ -136,7 +136,7 @@ jobs:
136136
docker run ${{ inputs.build_tag }} npm run test:ts:ci
137137
138138
- name: Build and Push Multi-platform Images
139-
uses: rudderlabs/build-scan-push-action@v1.5.3
139+
uses: rudderlabs/build-scan-push-action@v1.7.0
140140
with:
141141
context: .
142142
file: ${{ inputs.dockerfile }}
@@ -157,22 +157,22 @@ jobs:
157157
needs: [get_sha, get_changed_files]
158158
steps:
159159
- name: Checkout
160-
uses: actions/checkout@v4.2.1
160+
uses: actions/checkout@v5
161161
with:
162162
ref: ${{ needs.get_sha.outputs.sha }}
163163
fetch-depth: 1
164164

165165
- name: Login to DockerHub
166-
uses: docker/login-action@v3.4.0
166+
uses: docker/login-action@v3.5.0
167167
with:
168168
username: ${{ env.DOCKERHUB_USERNAME }}
169169
password: ${{ secrets.DOCKERHUB_TOKEN }}
170170

171171
- name: Setup Docker Buildx
172-
uses: docker/setup-buildx-action@v3.7.1
172+
uses: docker/setup-buildx-action@v3.11.1
173173

174174
- name: Build Docker Image
175-
uses: rudderlabs/build-scan-push-action@v1.5.3
175+
uses: rudderlabs/build-scan-push-action@v1.7.0
176176
with:
177177
context: .
178178
file: ${{ inputs.dockerfile }}
@@ -192,7 +192,7 @@ jobs:
192192
docker run ${{ inputs.build_tag }} npm run test:ts:ci
193193
194194
- name: Build and Push Multi-platform Images
195-
uses: rudderlabs/build-scan-push-action@v1.5.3
195+
uses: rudderlabs/build-scan-push-action@v1.7.0
196196
with:
197197
context: .
198198
file: ${{ inputs.dockerfile }}
@@ -214,13 +214,13 @@ jobs:
214214

215215
steps:
216216
- name: Login to DockerHub
217-
uses: docker/login-action@v3.4.0
217+
uses: docker/login-action@v3.5.0
218218
with:
219219
username: ${{ env.DOCKERHUB_USERNAME }}
220220
password: ${{ secrets.DOCKERHUB_TOKEN }}
221221

222222
- name: Set up Docker Buildx
223-
uses: docker/setup-buildx-action@v3.7.1
223+
uses: docker/setup-buildx-action@v3.11.1
224224

225225
- name: Create multi-arch manifest
226226
run: |

.github/workflows/check-pr-title.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- reopened
99
- synchronize
1010

11+
permissions:
12+
pull-requests: read
13+
1114
concurrency:
1215
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
1316
cancel-in-progress: true

.github/workflows/commitlint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Commitlint
22

33
on: [push]
44

5+
permissions:
6+
contents: read
7+
58
concurrency:
69
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
710
cancel-in-progress: true
@@ -11,12 +14,12 @@ jobs:
1114
runs-on: ubuntu-latest
1215
steps:
1316
- name: Checkout
14-
uses: actions/checkout@v4.2.1
17+
uses: actions/checkout@v5
1518
with:
1619
fetch-depth: 0 # Needed to get full commit history
1720

1821
- name: Setup Node
19-
uses: actions/setup-node@v4.4.0
22+
uses: actions/setup-node@v5.0.0
2023
with:
2124
node-version-file: '.nvmrc'
2225
cache: 'npm'

.github/workflows/create-hotfix-branch.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ on:
77
description: Hotfix branch name
88
required: true
99

10+
permissions:
11+
contents: write
12+
1013
jobs:
1114
create-branch:
1215
name: Create New Hotfix Branch
1316
runs-on: ubuntu-latest
1417

1518
# Only allow these users to create new hotfix branch from 'main'
16-
if: github.ref == 'refs/heads/main' && (github.actor == 'vinayteki95' || github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'koladilip' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'utsabc' || github.actor == 'maheshkutty' || github.actor == 'manish339k') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'koladilip' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'utsabc' || github.triggering_actor == 'vinayteki95' || github.triggering_actor == 'maheshkutty' || github.triggering_actor == 'manish339k')
19+
if: github.ref == 'refs/heads/main' && (github.actor == 'vinayteki95' || github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'koladilip' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'utsabc' || github.actor == 'maheshkutty' || github.actor == 'manish339k' || github.actor == 'abhimanyubabbar') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'koladilip' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'utsabc' || github.triggering_actor == 'vinayteki95' || github.triggering_actor == 'maheshkutty' || github.triggering_actor == 'manish339k' || github.triggering_actor == 'abhimanyubabbar')
1720
steps:
1821
- name: Create Branch
1922
uses: peterjgrainger/action-create-branch@10c7d268152480ae859347db45dc69086cef1d9c

0 commit comments

Comments
 (0)