-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into refactor/mixpanel-deprecate-track-endpoint
- Loading branch information
Showing
715 changed files
with
165,975 additions
and
215,379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
## What are the changes introduced in this PR? | ||
|
||
Write a brief explainer on your code changes. | ||
|
||
## What is the related Linear task? | ||
|
||
Resolves INT-XXX | ||
|
||
## Please explain the objectives of your changes below | ||
|
||
Put down any required details on the broader aspect of your changes. If there are any dependent changes, **mandatorily** mention them here | ||
|
||
### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? | ||
|
||
N/A | ||
|
||
### Any new dependencies introduced with this change? | ||
|
||
N/A | ||
|
||
### Any new generic utility introduced or modified. Please explain the changes. | ||
|
||
N/A | ||
|
||
### Any technical or performance related pointers to consider with the change? | ||
|
||
N/A | ||
|
||
<hr> | ||
|
||
### Developer checklist | ||
|
||
- [ ] My code follows the style guidelines of this project | ||
|
||
- [ ] **No breaking changes are being introduced.** | ||
|
||
- [ ] All related docs linked with the PR? | ||
|
||
- [ ] All changes manually tested? | ||
|
||
- [ ] Any documentation changes needed with this change? | ||
|
||
- [ ] Is the PR limited to 10 file changes? | ||
|
||
- [ ] Is the PR limited to one linear task? | ||
|
||
- [ ] Are relevant unit and component test-cases added? | ||
|
||
### Reviewer checklist | ||
|
||
- [ ] Is the type of change in the PR title appropriate as per the changes? | ||
|
||
- [ ] Verified that there are no credentials or confidential data exposed with the changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,12 +36,12 @@ jobs: | |
runs-on: [self-hosted, Linux, ARM64] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3.5.3 | ||
uses: actions/checkout@v4.1.1 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup Docker Buildx | ||
uses: docker/setup-buildx-action@v2.9.1 | ||
uses: docker/setup-buildx-action@v3.0.0 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
|
@@ -50,7 +50,7 @@ jobs: | |
password: ${{ secrets.DOCKERHUB_PROD_TOKEN }} | ||
|
||
- name: Build Docker Image | ||
uses: docker/build-push-action@v4.1.1 | ||
uses: docker/build-push-action@v5.1.0 | ||
with: | ||
context: . | ||
file: ${{ inputs.dockerfile }} | ||
|
@@ -66,7 +66,7 @@ jobs: | |
docker run ${{ inputs.build_tag }} npm run test:ts:ci | ||
- name: Build and Push Multi-platform Images | ||
uses: docker/build-push-action@v4.1.1 | ||
uses: docker/build-push-action@v5.1.0 | ||
with: | ||
context: . | ||
file: ${{ inputs.dockerfile }} | ||
|
@@ -86,12 +86,12 @@ jobs: | |
runs-on: [self-hosted, Linux, X64] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3.5.3 | ||
uses: actions/checkout@v4.1.1 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup Docker Buildx | ||
uses: docker/setup-buildx-action@v2.9.1 | ||
uses: docker/setup-buildx-action@v3.0.0 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
|
@@ -100,7 +100,7 @@ jobs: | |
password: ${{ secrets.DOCKERHUB_PROD_TOKEN }} | ||
|
||
- name: Build Docker Image | ||
uses: docker/build-push-action@v4.1.1 | ||
uses: docker/build-push-action@v5.1.0 | ||
with: | ||
context: . | ||
file: ${{ inputs.dockerfile }} | ||
|
@@ -116,7 +116,7 @@ jobs: | |
docker run ${{ inputs.build_tag }} npm run test:ts:ci | ||
- name: Build and Push Multi-platform Images | ||
uses: docker/build-push-action@v4.1.1 | ||
uses: docker/build-push-action@v5.1.0 | ||
with: | ||
context: . | ||
file: ${{ inputs.dockerfile }} | ||
|
@@ -138,7 +138,7 @@ jobs: | |
|
||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2.9.1 | ||
uses: docker/setup-buildx-action@v3.0.0 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
|
@@ -151,7 +151,7 @@ jobs: | |
docker buildx imagetools create -t ${{ inputs.push_tags }} ${{ inputs.push_tags }}-amd64 ${{ inputs.push_tags }}-arm64 | ||
- name: Create latest multi-arch manifest | ||
# To be triggered only for release/hotfix PR merges coming from `prepare-for-prod-deploy.yaml` | ||
# To be triggered only for release/hotfix PR merges coming from `prepare-for-prod-dt-deploy.yaml` | ||
if: ${{ inputs.build_type == 'dt' }} | ||
run: | | ||
docker buildx imagetools create -t rudderstack/rudder-transformer:latest ${{ inputs.push_tags }}-amd64 ${{ inputs.push_tags }}-arm64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Component Test Reporter | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
permissions: | ||
id-token: write # allows the JWT to be requested from GitHub's OIDC provider | ||
contents: read # This is required for actions/checkout | ||
|
||
jobs: | ||
test_and_upload: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: arn:aws:iam::${{ secrets.AWS_DEV_ACCOUNT_ID }}:role/${{ secrets.AWS_DEV_S3_SYNC_ROLE }} | ||
aws-region: us-east-1 | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Run Tests and Generate Report | ||
run: | | ||
npm run test:ts -- component | ||
- name: Uplaod Report to S3 | ||
run: | | ||
aws s3 cp ./test_reports/ s3://test-integrations-dev/integrations-test-reports/rudder-transformer/${{ github.event.number }}/ --recursive | ||
- name: Comment on PR with S3 Object URL | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.PAT }} | ||
script: | | ||
const { owner, repo } = context.repo; | ||
// Get the pull request number | ||
const prNumber = context.payload.pull_request.number; | ||
const commentBody = `Test report for this run is available at: https://test-integrations-dev.s3.amazonaws.com/integrations-test-reports/rudder-transformer/${prNumber}/test-report.html`; | ||
// Comment on the pull request | ||
github.rest.issues.createComment({ | ||
owner, | ||
repo, | ||
issue_number: prNumber, | ||
body: commentBody | ||
}); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
# Only allow these users to create new hotfix branch from 'main' | ||
if: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'ujjwal-ab') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'ujjwal-ab') | ||
if: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'koladilip' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'ujjwal-ab') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'koladilip' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'ujjwal-ab') | ||
steps: | ||
- name: Create Branch | ||
uses: peterjgrainger/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
schedule: | ||
# Run everyday at 1 AM | ||
- cron: '0 1 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
prs: | ||
|
@@ -14,7 +15,7 @@ jobs: | |
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/stale@v8.0.0 | ||
- uses: actions/stale@v9.0.0 | ||
with: | ||
repo-token: ${{ secrets.PAT }} | ||
operations-per-run: 200 | ||
|
@@ -32,14 +33,14 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3.5.3 | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Delete Old Branches | ||
uses: beatlabs/[email protected].9 | ||
uses: beatlabs/[email protected].10 | ||
with: | ||
repo_token: ${{ secrets.PAT }} | ||
date: '3 months ago' | ||
dry_run: false | ||
delete_tags: false | ||
extra_protected_branch_regex: ^(main|release/.*|develop|hotfix/.*|hotfix-release/.*)$ | ||
extra_protected_branch_regex: ^(main|develop)$ | ||
exclude_open_pr_branches: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.