Skip to content

Commit 711b1e3

Browse files
Merge pull request #98 from scheduleonce/technocrats/ONCEHUB-103047-team
feat: [Team] ONCEHUB-98788: updating transformer version to 1.102.2
2 parents 0bc54fd + 89c0874 commit 711b1e3

File tree

432 files changed

+49495
-17393
lines changed

Some content is hidden

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

432 files changed

+49495
-17393
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,23 +101,23 @@ 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
registry: dockeronce.azurecr.io
113113
username: ${{ secrets.DOCKERHUB_USERNAME }}
114114
password: ${{ secrets.DOCKERHUB_TOKEN }}
115115

116116
- name: Setup Docker Buildx
117-
uses: docker/setup-buildx-action@v3.7.1
117+
uses: docker/setup-buildx-action@v3.11.1
118118

119119
- name: Build Docker Image
120-
uses: rudderlabs/build-scan-push-action@v1.5.3
120+
uses: rudderlabs/build-scan-push-action@v1.7.0
121121
with:
122122
context: .
123123
file: ${{ inputs.dockerfile }}
@@ -137,7 +137,7 @@ jobs:
137137
docker run ${{ inputs.build_tag }} npm run test:ts:ci
138138
139139
- name: Build and Push Multi-platform Images
140-
uses: rudderlabs/build-scan-push-action@v1.5.3
140+
uses: rudderlabs/build-scan-push-action@v1.7.0
141141
with:
142142
context: .
143143
file: ${{ inputs.dockerfile }}
@@ -158,22 +158,22 @@ jobs:
158158
needs: [get_sha, get_changed_files]
159159
steps:
160160
- name: Checkout
161-
uses: actions/checkout@v4.2.1
161+
uses: actions/checkout@v5
162162
with:
163163
ref: ${{ needs.get_sha.outputs.sha }}
164164
fetch-depth: 1
165165

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

172172
- name: Setup Docker Buildx
173-
uses: docker/setup-buildx-action@v3.7.1
173+
uses: docker/setup-buildx-action@v3.11.1
174174

175175
- name: Build Docker Image
176-
uses: rudderlabs/build-scan-push-action@v1.5.3
176+
uses: rudderlabs/build-scan-push-action@v1.7.0
177177
with:
178178
context: .
179179
file: ${{ inputs.dockerfile }}
@@ -193,7 +193,7 @@ jobs:
193193
docker run ${{ inputs.build_tag }} npm run test:ts:ci
194194
195195
- name: Build and Push Multi-platform Images
196-
uses: rudderlabs/build-scan-push-action@v1.5.3
196+
uses: rudderlabs/build-scan-push-action@v1.7.0
197197
with:
198198
context: .
199199
file: ${{ inputs.dockerfile }}
@@ -215,13 +215,13 @@ jobs:
215215

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

223223
- name: Set up Docker Buildx
224-
uses: docker/setup-buildx-action@v3.7.1
224+
uses: docker/setup-buildx-action@v3.11.1
225225

226226
- name: Create multi-arch manifest
227227
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)