Skip to content

Commit

Permalink
Merge branch 'main' into merge-3.5.x-main-1ed293a
Browse files Browse the repository at this point in the history
  • Loading branch information
m-vdb authored May 24, 2023
2 parents 1ed293a + a6bd655 commit a1e7599
Show file tree
Hide file tree
Showing 151 changed files with 3,516 additions and 1,245 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/automatic-pr-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- uses: rasahq/update-pr-branch@2c1851b449b09173288465f259bc9ec599b2e51f
- uses: rasahq/update-pr-branch@f7012036a6d5659cfbc37f180716963511e81f95
with:
token: ${{ secrets.UPDATE_BRANCH_PAT }}
# required parameter by original action -
Expand Down
62 changes: 38 additions & 24 deletions .github/workflows/automatic-release-to-main-merger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ on:
- '[0-9]+.[0-9]+.x'
# Don't merge 2.8.x into main
- '!2.8.x'
# Don't merge 3.0 and 3.1 into main
# Don't merge 3.0, 3.1 and 3.2 into main
- '!3.0.x'
- '!3.1.x'
- '!3.2.x'

types:
# means that the PR is closed, we still have to check if it was merged
Expand Down Expand Up @@ -58,12 +59,46 @@ jobs:
echo "labels=${LABEL_TYPE}" >> $GITHUB_OUTPUT
fi
- name: Create new branch 🐣
id: create-new-branch
if: always()
uses: peterjgrainger/action-create-branch@64aa569aea81305305c6e92bd236d8c427debff8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: ${{ steps.get-branch-name.outputs.new_branch }}

- name: Notify Slack if creating a new branch failed 💬
if: ${{ failure() && steps.create-new-branch.conclusion == 'failure' }}
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_INFRASTRUCTURE_SQUAD_MONITORS_WEBHOOK_URL }}
uses: Ilshidur/action-slack@689ad44a9c9092315abd286d0e3a9a74d31ab78a
with:
args: "🚨 There was a problem with creating a new branch containing commits from the ${{ env.RELEASE_BRANCH }} release branch. Check out the Github action: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"

- name: Open pull request ☄️
if: ${{ steps.create-new-branch.conclusion == 'success' }}
uses: repo-sync/pull-request@7e79a9f5dc3ad0ce53138f01df2fad14a04831c5
with:
# using this token to make sure it triggers other actions
github_token: ${{ secrets.RASABOT_GITHUB_TOKEN }}
source_branch: ${{ steps.get-branch-name.outputs.new_branch }}
destination_branch: main
pr_title: Merge ${{ steps.get-branch-name.outputs.release_branch }} into main
pr_template: .github/PULL_REQUEST_AUTOMATIC_TEMPLATE.md
pr_label: ${{ steps.get-github-labels.outputs.labels }}
pr_reviewer: ${{ github.event.pull_request.user.login }}

- name: Close outdated release-merge PRs 🧹
id: close-outdated-release-merge-prs
run: |
# fetch all open merge-PRs that have been opened from the current release branch
gh pr list -S "is:open label:${LABEL_TYPE} head:merge-${{ steps.get-branch-name.outputs.release_branch }}-main" > prs.txt
less prs.txt
# delete newly opened PR from the list
awk '!/${{ steps.get-branch-name.outputs.new_branch }}/' prs.txt > temp && mv temp prs.txt
# extract the PR ids
awk '{print $1}' prs.txt > pr_ids.txt
Expand All @@ -72,34 +107,13 @@ jobs:
gh pr close $id -d
done <pr_ids.txt
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Notify Slack when closing of outdated merge-PRs failed 💬
if: failure()
if: ${{ failure() && steps.close-outdated-release-merge-prs.conclusion == 'failure'}}
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_INFRASTRUCTURE_SQUAD_MONITORS_WEBHOOK_URL }}
uses: Ilshidur/action-slack@689ad44a9c9092315abd286d0e3a9a74d31ab78a
with:
args: "🚨 There was a problem with closing outdated release-merge-PRs of the ${{ env.RELEASE_BRANCH }} release branch. Check out the Github action: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} \
These release-merge-PRs are currently open: https://github.com/${{ github.repository }}/pulls?q=is%3Aopen+label%3A${{ env.LABEL_TYPE }}+head%3Amerge-${{ steps.get-branch-name.outputs.release_branch }}-main"

- name: Create new branch 🐣
if: always()
uses: peterjgrainger/action-create-branch@64aa569aea81305305c6e92bd236d8c427debff8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: ${{ steps.get-branch-name.outputs.new_branch }}

- name: Open pull request ☄️
if: always()
uses: repo-sync/pull-request@65785d95a5a466e46a9d0708933a3bd51bbf9dde
with:
# using this token to make sure it triggers other actions
github_token: ${{ secrets.RASABOT_GITHUB_TOKEN }}
source_branch: ${{ steps.get-branch-name.outputs.new_branch }}
destination_branch: main
pr_title: Merge ${{ steps.get-branch-name.outputs.release_branch }} into main
pr_template: .github/PULL_REQUEST_AUTOMATIC_TEMPLATE.md
pr_label: ${{ steps.get-github-labels.outputs.labels }}
pr_reviewer: ${{ github.event.pull_request.user.login }}
14 changes: 7 additions & 7 deletions .github/workflows/ci-docs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
docs: ${{ steps.filter.outputs.docs }}
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- uses: RasaHQ/pr-changed-files-filter@c4f7116a04b8a4596313469429e2ad235f59d9c4
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -38,7 +38,7 @@ jobs:
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c

- name: Set up Python ${{ env.DEFAULT_PYTHON_VERSION }} 🐍
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984
uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b
with:
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}

Expand All @@ -59,7 +59,7 @@ jobs:

- name: Load Poetry Cached Libraries ⬇
id: cache-poetry
uses: actions/cache@6998d139ddd3e68c71e9e398d8e40b71a2f39812
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: .venv
key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ env.DEFAULT_PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }}-${{ secrets.POETRY_CACHE_VERSION }}
Expand All @@ -78,7 +78,7 @@ jobs:
run: poetry config virtualenvs.in-project true

- name: Load Yarn Cached Packages ⬇
uses: actions/cache@6998d139ddd3e68c71e9e398d8e40b71a2f39812
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: docs/node_modules
key: ${{ runner.os }}-yarn-12.x-${{ hashFiles('docs/yarn.lock') }}
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c

- name: Set up Python ${{ env.DEFAULT_PYTHON_VERSION }} 🐍
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984
uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b
with:
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}

Expand All @@ -130,7 +130,7 @@ jobs:

- name: Load Poetry Cached Libraries ⬇
id: cache-poetry
uses: actions/cache@6998d139ddd3e68c71e9e398d8e40b71a2f39812
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: .venv
key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ env.DEFAULT_PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }}-${{ secrets.POETRY_CACHE_VERSION }}
Expand All @@ -149,7 +149,7 @@ jobs:
run: poetry config virtualenvs.in-project true

- name: Load Yarn Cached Packages ⬇
uses: actions/cache@6998d139ddd3e68c71e9e398d8e40b71a2f39812
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: docs/node_modules
key: ${{ runner.os }}-yarn-12.x-${{ hashFiles('docs/yarn.lock') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
sudo chmod +x /usr/local/bin/gomplate
- name: Set up Python ${{ env.DEFAULT_PYTHON_VERSION }} 🐍
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984
uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b
with:
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}

Expand All @@ -45,7 +45,7 @@ jobs:

- name: Load Poetry Cached Libraries ⬇
id: cache-poetry
uses: actions/cache@6998d139ddd3e68c71e9e398d8e40b71a2f39812
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: .venv
key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ env.DEFAULT_PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }}-${{ secrets.POETRY_CACHE_VERSION }}
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/ci-model-regression-on-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

- name: Setup Python
id: python
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984
uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b
with:
python-version: '3.8'

Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
./gomplate -f .github/runner/github-runner-deployment.yaml.tmpl -o runner_deployment.yaml
# Setup gcloud auth
- uses: google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d
- uses: google-github-actions/auth@e8df18b60c5dd38ba618c121b779307266153fbf
with:
service_account: ${{ secrets.GKE_RASA_CI_GPU_SA_NAME_RASA_CI_CD }}
credentials_json: ${{ secrets.GKE_SA_RASA_CI_CD_GPU_RASA_CI_CD }}
Expand Down Expand Up @@ -279,7 +279,7 @@ jobs:
.github/scripts/start_dd_agent.sh "${{ secrets.DD_API_KEY }}" "${{ env.ACCELERATOR_TYPE }}" ${{ env.NVML_INTERVAL_IN_SEC }}
- name: Set up Python 3.10 🐍
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984
uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b
if: steps.set_dataset_config_vars.outputs.is_dataset_exists == 'true' && steps.set_dataset_config_vars.outputs.is_config_exists == 'true'
with:
python-version: '3.10'
Expand All @@ -297,7 +297,7 @@ jobs:
poetry-version: ${{ env.POETRY_VERSION }}

- name: Load Poetry Cached Libraries ⬇
uses: actions/cache@6998d139ddd3e68c71e9e398d8e40b71a2f39812
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
if: steps.set_dataset_config_vars.outputs.is_dataset_exists == 'true' && steps.set_dataset_config_vars.outputs.is_config_exists == 'true'
with:
path: ~/.cache/pypoetry/virtualenvs
Expand Down Expand Up @@ -418,7 +418,7 @@ jobs:
- name: Check duplicate issue
if: failure() && github.event_name == 'schedule'
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
id: issue-exists
with:
result-encoding: string
Expand Down Expand Up @@ -447,7 +447,7 @@ jobs:
- name: Create GitHub Issue 📬
id: create-issue
if: failure() && steps.issue-exists.outputs.result == 'false' && github.event_name == 'schedule'
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
with:
# do not use GITHUB_TOKEN here because it wouldn't trigger subsequent workflows
github-token: ${{ secrets.RASABOT_GITHUB_TOKEN }}
Expand All @@ -463,7 +463,7 @@ jobs:
- name: Notify Slack of Failure 😱
if: failure() && steps.issue-exists.outputs.result == 'false' && github.event_name == 'schedule'
uses: 8398a7/action-slack@bdc6f9de222d3b7518e6cf99c4f3410f653cfde3 # v3
uses: 8398a7/action-slack@fbd6aa58ba854a740e11a35d0df80cb5d12101d8 # v3
with:
status: custom
fields: workflow,job,commit,repo,ref,author,took
Expand Down Expand Up @@ -512,7 +512,7 @@ jobs:
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c

- name: Set up Python 3.10 🐍
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984
uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b
with:
python-version: '3.10'

Expand Down Expand Up @@ -609,7 +609,7 @@ jobs:
- name: Check duplicate issue
if: steps.performance.outputs.is_dropped == 'true'
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
id: issue-exists
with:
result-encoding: string
Expand All @@ -636,7 +636,7 @@ jobs:
- name: Create GitHub Issue 📬
id: create-issue
if: steps.performance.outputs.is_dropped == 'true' && steps.issue-exists.outputs.result == 'false'
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
with:
# do not use GITHUB_TOKEN here because it wouldn't trigger subsequent workflows
github-token: ${{ secrets.RASABOT_GITHUB_TOKEN }}
Expand All @@ -657,7 +657,7 @@ jobs:
- name: Notify Slack when Performance Drops 💬
if: steps.performance.outputs.is_dropped == 'true' && steps.issue-exists.outputs.result == 'false'
uses: 8398a7/action-slack@bdc6f9de222d3b7518e6cf99c4f3410f653cfde3 #v3
uses: 8398a7/action-slack@fbd6aa58ba854a740e11a35d0df80cb5d12101d8 #v3
with:
status: custom
fields: workflow,job,commit,repo,ref,author,took
Expand Down Expand Up @@ -697,7 +697,7 @@ jobs:

- name: Setup Python
id: python
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984
uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b
with:
python-version: '3.8'

Expand All @@ -707,7 +707,7 @@ jobs:
export CLOUDSDK_PYTHON=${{ steps.python.outputs.python-path }}
# Setup gcloud auth
- uses: google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d
- uses: google-github-actions/auth@e8df18b60c5dd38ba618c121b779307266153fbf
with:
service_account: ${{ secrets.GKE_RASA_CI_GPU_SA_NAME_RASA_CI_CD }}
credentials_json: ${{ secrets.GKE_SA_RASA_CI_CD_GPU_RASA_CI_CD }}
Expand Down
Loading

0 comments on commit a1e7599

Please sign in to comment.