-
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' of github.com:rudderlabs/rudder-transformer in…
…to fix.throttle-errors
- Loading branch information
Showing
268 changed files
with
18,725 additions
and
4,745 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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Commitlint | ||
|
||
on: [push] | ||
|
||
jobs: | ||
commitlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Print versions | ||
run: | | ||
git --version | ||
node --version | ||
npm --version | ||
npx commitlint --version | ||
# Run the commitlint action, considering its own dependencies and yours as well 🚀 | ||
# `github.workspace` is the path to your repository. | ||
- uses: wagoid/commitlint-github-action@v5 | ||
env: | ||
NODE_PATH: ${{ github.workspace }}/node_modules | ||
with: | ||
commitDepth: 1 |
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 |
---|---|---|
|
@@ -41,6 +41,8 @@ jobs: | |
- name: Upload Coverage Reports to Codecov | ||
uses: codecov/[email protected] | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
directory: ./reports/coverage | ||
|
||
|
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 |
---|---|---|
|
@@ -27,11 +27,14 @@ jobs: | |
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
- name: Clone Devops Repo | ||
run: | | ||
git clone https://${{secrets.PAT}}@github.com/rudderlabs/rudder-devops.git | ||
- name: Update Helm Charts and Raise Pull Request | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT }} | ||
run: | | ||
git clone https://${{secrets.PAT}}@github.com/rudderlabs/rudder-devops.git | ||
cd rudder-devops | ||
git checkout -b shared-transformer-rollback-${{ steps.target-version.outputs.tag_name }} | ||
|
@@ -57,3 +60,38 @@ jobs: | |
git push -u origin shared-transformer-rollback-${{ steps.target-version.outputs.tag_name }} | ||
gh pr create --fill | ||
- name: Update helm charts and raise pull request for enterprise customers on dedicated transformers | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT }} | ||
run: | | ||
cd rudder-devops | ||
git checkout -b dedicated-transformer-rollback-${{ steps.target-version.outputs.tag_name }} | ||
cd customer-objects | ||
declare -a enabled_ut_customers=() | ||
declare -a sub_directories=('enterprise-us' 'enterprise-eu') | ||
# identify the customers enabled in sub-directories | ||
for directory in "${sub_directories[@]}"; do | ||
for f in "./$directory"/*; do | ||
[[ -f $f ]] || continue | ||
enabled="$(yq e '.spec.user_transformer.enabled' $f)" | ||
if [ $enabled == "true" ]; then | ||
enabled_ut_customers+=( $f ) | ||
fi | ||
done | ||
done | ||
# bump up the customers version and repository information | ||
for customer in "${enabled_ut_customers[@]}"; do | ||
yq eval -i ".spec.user_transformer.image.version=\"${{ steps.target-version.outputs.tag_name }}\"" $customer | ||
git add $customer | ||
done | ||
git commit -m "chore: rollback dedicated transformers to ${{ steps.target-version.outputs.tag_name }}" | ||
git push -u origin dedicated-transformer-rollback-${{ steps.target-version.outputs.tag_name }} | ||
gh pr create --fill |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Verify | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
formatting-lint: | ||
name: Check for formatting & lint errors | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
# Make sure the actual branch is checked out when running on pull requests | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Run Lint Checks | ||
run: | | ||
npm run lint | ||
- run: git diff --exit-code | ||
|
||
- name: Error message | ||
if: ${{ failure() }} | ||
run: | | ||
echo 'Eslint check is failing Ensure you have run `npm run lint` and committed the files locally.' |
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 |
---|---|---|
|
@@ -137,4 +137,5 @@ dist | |
.idea | ||
|
||
# component test report | ||
test_reports/ | ||
test_reports/ | ||
temp/ |
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 |
---|---|---|
@@ -1 +1 @@ | ||
18.19.0 | ||
18.19.1 |
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ test/**/*.js | |
!test/**/data.js | ||
src/util/lodash-es-core.js | ||
src/util/url-search-params.min.js | ||
dist |
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,24 @@ | ||
{ | ||
"prettier.requireConfig": true, | ||
"prettier.configPath": ".prettierrc", | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
}, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
}, | ||
"[jsonc]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
}, | ||
"[yaml]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
}, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "never" | ||
}, | ||
"eslint.validate": ["javascript", "typescript"] | ||
} |
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
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,5 @@ | ||
module.exports = { | ||
gitRawCommitsOpts: { | ||
merges: null, | ||
}, | ||
}; |
Oops, something went wrong.