Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:rudderlabs/rudder-transformer in…
Browse files Browse the repository at this point in the history
…to chore.cicd
  • Loading branch information
Sai Sankeerth committed Aug 1, 2024
2 parents d22ba6d + b934bea commit b127e43
Show file tree
Hide file tree
Showing 32 changed files with 190 additions and 303 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-pr-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- reopened
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
generate-tag-names:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/check-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- reopened
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
check-pr-title:
name: Check PR Title
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Commitlint

on: [push]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
commitlint:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/component-test-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- reopened
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

permissions:
id-token: write # allows the JWT to be requested from GitHub's OIDC provider
contents: read # This is required for actions/checkout
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dt-test-and-report-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
pull_request:
types: ['opened', 'reopened', 'synchronize']

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
coverage:
name: Code Coverage
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/prepare-for-dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches:
- develop

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
report-coverage:
name: Report Code Coverage
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/prepare-for-prod-dt-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
report-coverage:
name: Report Code Coverage
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/prepare-for-prod-ut-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
report-coverage:
name: Report Code Coverage
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/prepare-for-staging-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
generate-tag-names:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ut-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- reopened
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
ut_tests:
name: UT Tests
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/verify-server-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request:
types: ['opened', 'reopened', 'synchronize']

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
check-health:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Verify
on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
formatting-lint:
name: Check for formatting & lint errors
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.73.0](https://github.com/rudderlabs/rudder-transformer/compare/v1.72.2...v1.73.0) (2024-07-31)


### Features


### Bug Fixes


### [1.72.4](https://github.com/rudderlabs/rudder-transformer/compare/v1.72.3...v1.72.4) (2024-07-25)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rudder-transformer",
"version": "1.72.4",
"version": "1.73.0",
"description": "",
"homepage": "https://github.com/rudderlabs/rudder-transformer#readme",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion src/v0/destinations/facebook_conversions/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { getMappingConfig } = require('../../util');

const ENDPOINT = (datasetId, accessToken) =>
`https://graph.facebook.com/v18.0/${datasetId}/events?access_token=${accessToken}`;
`https://graph.facebook.com/v20.0/${datasetId}/events?access_token=${accessToken}`;

const CONFIG_CATEGORIES = {
USERDATA: {
Expand Down
2 changes: 1 addition & 1 deletion src/v0/destinations/facebook_pixel/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { getMappingConfig } = require('../../util');

const VERSION = 'v18.0';
const VERSION = 'v20.0';

const CONFIG_CATEGORIES = {
USERDATA: {
Expand Down
2 changes: 1 addition & 1 deletion src/v0/destinations/fb/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');
const path = require('path');

const VERSION = 'v18.0';
const VERSION = 'v20.0';

const getPath = (file) => path.resolve(__dirname, file);

Expand Down
2 changes: 1 addition & 1 deletion src/v0/destinations/fb_custom_audience/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const BASE_URL = 'https://graph.facebook.com/v18.0';
const BASE_URL = 'https://graph.facebook.com/v20.0';

function getEndPoint(audienceId) {
return `${BASE_URL}/${audienceId}/users`;
Expand Down
2 changes: 1 addition & 1 deletion src/v0/destinations/fb_custom_audience/util.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const basePayload = {
const baseResponse = {
version: '1',
type: 'REST',
endpoint: 'https://graph.facebook.com/v18.0/23848494844100489/users',
endpoint: 'https://graph.facebook.com/v20.0/23848494844100489/users',
headers: {},
params: {
access_token: 'ABC',
Expand Down
50 changes: 18 additions & 32 deletions swagger/components/examples/processor/failure.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,26 @@
metadata:
sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC'
workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg'
namespace: ''
instanceId: '1'
sourceType: 'HTTP'
sourceCategory: ''
trackingPlanId: ''
trackingPlanVersion: 0
sourceTpConfig: null
mergedTpConfig: null
destinationId: '2JIqVoWNvSOHa9ppKOqSo4hPuc0'
jobRunId: ''
destinationId: '2JIqVoWNvSOHa9ppKOqSoxxx'
jobId: 1
sourceBatchId: ''
sourceJobId: ''
sourceJobRunId: ''
sourceTaskId: ''
sourceTaskRunId: ''
recordId: null
destinationType: 'PINTEREST_TAG'
messageId: 'cededd59-671c-4a2e-a89a-6461ed662ab9'
oauthAccessToken: ''
messageIds: null
rudderId: '<<>>anon-id<<>>testUser'
receivedAt: '2023-01-01T14:15:41.731+05:30'
eventName: 'Product Viewed'
eventType: 'track'
sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591'
destinationDefinitionId: ''
sourceId: '2ifsnRxzoONtZeIoGxgNWsr4xx'
sourceCategory: ''
attemptNum: 0
receivedAt: '2024-07-17T16:45:40.114+05:30'
createdAt: '2024-07-17T11:15:41.140Z'
firstAttemptedAt: ''
transformAt: 'router'
workspaceId: '2hSS1hZ8kuCpUZAAYsQucAFdxxx'
secret: null
workerAssignedTime: '2024-07-17T16:45:41.264239+05:30'
dontBatch: false
traceparent: ''
statusCode: 400
error: Random is not mapped in UI. Make sure to map the event in UI or enable the 'send as custom event' setting
error: Missing required value from 'userIdOnly'
statTags:
errorCategory: 'platform'
implementation: 'cdkV2'
destType: 'PINTEREST_TAG'
errorCategory: 'dataValidation'
implementation: 'native'
destType: 'JUNE'
module: 'destination'
feature: 'processor'
destinationId: '2JIqVoWNvSOHa9ppKOqSo4hPuc0'
workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg'
destinationId: '2JIqVoWNvSOHa9ppKOqSoxxx'
79 changes: 22 additions & 57 deletions swagger/components/examples/processor/success.yaml
Original file line number Diff line number Diff line change
@@ -1,72 +1,37 @@
output:
body:
JSON:
event_time: 1672564081
event_source_url: https://www.website.com/product/path
action_source: offline
event_id: 6ee69cf1-ce37-4287-9a0f-8b8453219082
app_id: ''
advertiser_id: 'advertiserId123'
user_data:
em:
- b9ecbd1d999a0f17d442a08971caeea92d770dba89ac900688ecede233d652df
ph:
- 92b5072176e723878b5e06ff3ca61898e4eb74e8c46642a0f2db800b17364ab0
ge:
- 62c66a7a5dd70c3146618063c344e531e6d4b59e379808443ce962b3abd63c5a
ln:
- dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251
fn:
- 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
client_ip_address: '[::1]'
custom_data:
num_items: 11
content_ids:
- '123'
contents:
- quantity: 11
item_price: '13.49'
event_name: add_to_cart
anonymousId: 'abc123'
userId: '123'
timestamp: '2022-01-20T13:39:21.032Z'
JSON_ARRAY: {}
XML: {}
FORM: {}
version: '1'
type: REST
method: POST
endpoint: https://ct.pinterest.com/events/v3
endpoint: https://api.june.so/api/identify
headers:
Content-Type: application/json
params: {}
files: {}
userId: ''
metadata:
sourceId: 27O0bmEEx3GgfmEhZHUcPwJQVWC
workspaceId: 27O0bhB6p5ehfOWeeZlOSsSDTLg
namespace: ''
instanceId: '1'
sourceType: HTTP
sourceCategory: ''
trackingPlanId: ''
trackingPlanVersion: 0
sourceTpConfig:
mergedTpConfig:
destinationId: 2JIqVoWNvSOHa9ppKOqSo4hPuc0
jobRunId: ''
jobId: 1
sourceBatchId: ''
sourceJobId: ''
sourceJobRunId: ''
sourceTaskId: ''
sourceTaskRunId: ''
recordId:
destinationType: PINTEREST_TAG
messageId: 6ee69cf1-ce37-4287-9a0f-8b8453219082
oauthAccessToken: ''
messageIds:
rudderId: '<<>>anon-id<<>>testUser'
receivedAt: '2023-01-01T14:38:01.482+05:30'
eventName: Product Added
eventType: track
sourceDefinitionId: 1b6gJdqOPOCadT3cddw8eidV591
destinationDefinitionId: ''
metadata:
userId: '<<>>12345<<>>12345'
jobId: 1
sourceId: '2ifsnRxzoONtZeIoGxgNWsr4xx'
sourceCategory: ''
destinationId: '2JIqVoWNvSOHa9ppKOqSxxx'
attemptNum: 0
receivedAt: '2024-07-17T16:45:40.114+05:30'
createdAt: '2024-07-17T11:15:41.140Z'
firstAttemptedAt: ''
transformAt: 'router'
workspaceId: '2hSS1hZ8kuCpUZAAYsQucAFdxxx'
secret: null
workerAssignedTime: '2024-07-17T16:45:41.264239+05:30'
dontBatch: false
traceparent: ''
eventName: 'Product Added'
eventType: 'track'
statusCode: 200
Loading

0 comments on commit b127e43

Please sign in to comment.