Skip to content

ref(workflow_engine): Add types to the evaluation artifacts #225279

ref(workflow_engine): Add types to the evaluation artifacts

ref(workflow_engine): Add types to the evaluation artifacts #225279

# Adds labels to pull requests for the type of change the PR makes
name: meta(labels)
on:
pull_request_target:
jobs:
label-pullrequest:
permissions:
contents: read
pull-requests: write
name: labels pull requests (frontend / backend)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- name: Check for file changes
uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4.0.2
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
- name: Add frontend label
uses: getsentry/action-add-labels@ca568508c6e91387909cb3661e4cd965aa2f3a89
if: steps.changes.outputs.frontend_all == 'true'
with:
labels: 'Scope: Frontend'
- name: Add backend label
uses: getsentry/action-add-labels@ca568508c6e91387909cb3661e4cd965aa2f3a89
if: steps.changes.outputs.backend_src == 'true'
with:
labels: 'Scope: Backend'
- name: Find previous frontend/backend warning comment
uses: peter-evans/find-comment@a54c31d7fa095754bfef525c0c8e5e5674c4b4b1 # v2.4.0
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: '<!-- FRONTEND_BACKEND_WARNING -->'
- name: Count backend warning exemptions
id: backend_exemptions
env:
EMBED_WIDGET_CODEGEN_COUNT: ${{ steps.changes.outputs.embed_widget_codegen_count }}
INTEGRATION_TEST_UTILS_COUNT: ${{ steps.changes.outputs.integration_test_utils_count }}
run: |
echo "count=$((${EMBED_WIDGET_CODEGEN_COUNT:-0} + ${INTEGRATION_TEST_UTILS_COUNT:-0}))" >> "$GITHUB_OUTPUT"
- name: Add frontend/backend warning comment
uses: peter-evans/create-or-update-comment@b95e16d2859ad843a14218d1028da5b2c4cbc4b4
if: >
fromJSON(steps.changes.outputs.frontend_all_count) >
fromJSON(steps.changes.outputs.api_url_codegen_count) &&
fromJSON(steps.changes.outputs.backend_src_count) >
fromJSON(steps.backend_exemptions.outputs.count || '0') &&
steps.fc.outputs.comment-id == 0
with:
issue-number: ${{ github.event.pull_request.number }}
body: >
<!-- FRONTEND_BACKEND_WARNING -->
🚨 **Warning:** This pull request contains Frontend and Backend changes!
It's discouraged to make changes to Sentry's Frontend and Backend
in a single pull request. The Frontend and Backend are **not**
atomically deployed. If the changes are interdependent of each
other, they **must** be separated into two pull requests and be made
forward or backwards compatible, such that the Backend or Frontend
can be safely deployed independently.
Have questions? Please ask in the [`#discuss-dev-infra`
channel](https://app.slack.com/client/T024ZCV9U/CTJL7358X).