Skip to content

chore: Format yaml files with prettier #15502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ body:
attributes:
label: Reproduction Example/SDK Setup
description:
To ensure that we can help you as fast as possible, please share a link to a reproduction example (GitHub repo or online code editor).
This enables us to quickly understand and address your issue.
If you do not post a link, kindly paste your `Sentry.init` code, so we can see how you set up Sentry.
To ensure that we can help you as fast as possible, please share a link to a reproduction example (GitHub repo
or online code editor). This enables us to quickly understand and address your issue. If you do not post a link,
kindly paste your `Sentry.init` code, so we can see how you set up Sentry.
placeholder: |-
https://some-JS-online-code-editor.com/my-example

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/flaky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ body:
id: job-name
attributes:
label: Name of Job
placeholder: "CI: Build & Test / Nextjs (Node 18) Tests"
placeholder: 'CI: Build & Test / Nextjs (Node 18) Tests'
description: name of job as reported in the status report
validations:
required: true
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: "Install yarn dependencies"
description: "Installs yarn dependencies and caches them."
name: 'Install yarn dependencies'
description: 'Installs yarn dependencies and caches them.'

outputs:
cache_key:
description: "The dependency cache key"
description: 'The dependency cache key'
value: ${{ steps.compute_lockfile_hash.outputs.hash }}

runs:
using: "composite"
using: 'composite'
steps:
- name: Compute dependency cache key
id: compute_lockfile_hash
Expand Down
69 changes: 34 additions & 35 deletions .github/actions/install-playwright/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "Install Playwright dependencies"
description: "Installs Playwright dependencies and caches them."
name: 'Install Playwright dependencies'
description: 'Installs Playwright dependencies and caches them.'
inputs:
browsers:
description: 'What browsers to install.'
Expand All @@ -9,41 +9,40 @@ inputs:
default: '.'

runs:
using: "composite"
using: 'composite'
steps:
- name: Get Playwright version
id: playwright-version
run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT
shell: bash
working-directory: ${{ inputs.cwd }}
- name: Get Playwright version
id: playwright-version
run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT
shell: bash
working-directory: ${{ inputs.cwd }}

- name: Restore cached playwright binaries
uses: actions/cache/restore@v4
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}

- name: Restore cached playwright binaries
uses: actions/cache/restore@v4
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
# We always install all browsers, if uncached
- name: Install Playwright dependencies (uncached)
run: npx playwright install chromium webkit firefox --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
shell: bash
working-directory: ${{ inputs.cwd }}

# We always install all browsers, if uncached
- name: Install Playwright dependencies (uncached)
run: npx playwright install chromium webkit firefox --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
shell: bash
working-directory: ${{ inputs.cwd }}
- name: Install Playwright system dependencies only (cached)
run: npx playwright install-deps ${{ inputs.browsers || 'chromium webkit firefox' }}
if: steps.playwright-cache.outputs.cache-hit == 'true'
shell: bash
working-directory: ${{ inputs.cwd }}

- name: Install Playwright system dependencies only (cached)
run: npx playwright install-deps ${{ inputs.browsers || 'chromium webkit firefox' }}
if: steps.playwright-cache.outputs.cache-hit == 'true'
shell: bash
working-directory: ${{ inputs.cwd }}

# Only store cache on develop branch
- name: Store cached playwright binaries
uses: actions/cache/save@v4
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
with:
path: |
~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
# Only store cache on develop branch
- name: Store cached playwright binaries
uses: actions/cache/save@v4
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
with:
path: |
~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
36 changes: 18 additions & 18 deletions .github/actions/restore-cache/action.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: "Restore dependency & build cache"
description: "Restore the dependency & build cache."
name: 'Restore dependency & build cache'
description: 'Restore the dependency & build cache.'

inputs:
dependency_cache_key:
description: "The dependency cache key"
description: 'The dependency cache key'
required: true

runs:
using: "composite"
using: 'composite'
steps:
- name: Check dependency cache
id: dep-cache
uses: actions/cache/restore@v4
with:
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
key: ${{ inputs.dependency_cache_key }}
- name: Check dependency cache
id: dep-cache
uses: actions/cache/restore@v4
with:
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
key: ${{ inputs.dependency_cache_key }}

- name: Restore build artifacts
uses: actions/download-artifact@v4
with:
name: build-output
- name: Restore build artifacts
uses: actions/download-artifact@v4
with:
name: build-output

- name: Install dependencies
if: steps.dep-cache.outputs.cache-hit != 'true'
run: yarn install --ignore-engines --frozen-lockfile
shell: bash
- name: Install dependencies
if: steps.dep-cache.outputs.cache-hit != 'true'
run: yarn install --ignore-engines --frozen-lockfile
shell: bash
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ updates:
schedule:
interval: 'weekly'
allow:
- dependency-name: "@sentry/*"
- dependency-name: "@opentelemetry/*"
- dependency-name: "@prisma/instrumentation"
- dependency-name: "opentelemetry-instrumentation-remix"
- dependency-name: '@sentry/*'
- dependency-name: '@opentelemetry/*'
- dependency-name: '@prisma/instrumentation'
- dependency-name: 'opentelemetry-instrumentation-remix'
versioning-strategy: increase
commit-message:
prefix: feat
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Gitflow: Auto prepare release"
name: 'Gitflow: Auto prepare release'
on:
pull_request:
types:
Expand Down Expand Up @@ -48,7 +48,9 @@ jobs:

- name: Prepare release
uses: getsentry/action-prepare-release@v1
if: github.event.pull_request.merged == true && steps.version-regex.outputs.match != '' && steps.get_version.outputs.version != ''
if:
github.event.pull_request.merged == true && steps.version-regex.outputs.match != '' &&
steps.get_version.outputs.version != ''
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
Expand Down
63 changes: 42 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ jobs:
any_code:
- '!**/*.md'


- name: Get PR labels
id: pr-labels
uses: mydea/pr-labels-action@fn/bump-node20

outputs:
commit_label: '${{ env.COMMIT_SHA }}: ${{ env.COMMIT_MESSAGE }}'
# Note: These next three have to be checked as strings ('true'/'false')!
is_base_branch: ${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/v9' || github.ref == 'refs/heads/v8'}}
is_base_branch:
${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/v9' || github.ref == 'refs/heads/v8'}}
is_release: ${{ startsWith(github.ref, 'refs/heads/release/') }}
changed_ci: ${{ steps.changed.outputs.workflow == 'true' }}
changed_any_code: ${{ steps.changed.outputs.any_code == 'true' }}
Expand Down Expand Up @@ -172,7 +172,8 @@ jobs:
key: nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT || github.sha }}
# On develop branch, we want to _store_ the cache (so it can be used by other branches), but never _restore_ from it
restore-keys:
${{needs.job_get_metadata.outputs.is_base_branch == 'false' && env.NX_CACHE_RESTORE_KEYS || 'nx-never-restore'}}
${{needs.job_get_metadata.outputs.is_base_branch == 'false' && env.NX_CACHE_RESTORE_KEYS ||
'nx-never-restore'}}

- name: Build packages
# Set the CODECOV_TOKEN for Bundle Analysis
Expand All @@ -191,12 +192,24 @@ jobs:

outputs:
dependency_cache_key: ${{ steps.install_dependencies.outputs.cache_key }}
changed_node_integration: ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry-internal/node-integration-tests') }}
changed_remix: ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry/remix') }}
changed_node: ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry/node') }}
changed_deno: ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry/deno') }}
changed_bun: ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry/bun') }}
changed_browser_integration: ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry-internal/browser-integration-tests') }}
changed_node_integration:
${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
'@sentry-internal/node-integration-tests') }}
changed_remix:
${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
'@sentry/remix') }}
changed_node:
${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
'@sentry/node') }}
changed_deno:
${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
'@sentry/deno') }}
changed_bun:
${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
'@sentry/bun') }}
changed_browser_integration:
${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
'@sentry-internal/browser-integration-tests') }}

job_check_branches:
name: Check PR branches
Expand Down Expand Up @@ -504,7 +517,9 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}

job_browser_playwright_tests:
name: Playwright ${{ matrix.bundle }}${{ matrix.project && matrix.project != 'chromium' && format(' {0}', matrix.project) || ''}}${{ matrix.shard && format(' ({0}/{1})', matrix.shard, matrix.shards) || ''}} Tests
name:
Playwright ${{ matrix.bundle }}${{ matrix.project && matrix.project != 'chromium' && format(' {0}',
matrix.project) || ''}}${{ matrix.shard && format(' ({0}/{1})', matrix.shard, matrix.shards) || ''}} Tests
needs: [job_get_metadata, job_build]
if: needs.job_build.outputs.changed_browser_integration == 'true' || github.event_name != 'pull_request'
runs-on: ubuntu-20.04-large-js
Expand Down Expand Up @@ -574,13 +589,17 @@ jobs:
env:
PW_BUNDLE: ${{ matrix.bundle }}
working-directory: dev-packages/browser-integration-tests
run: yarn test:all${{ matrix.project && format(' --project={0}', matrix.project) || '' }}${{ matrix.shard && format(' --shard={0}/{1}', matrix.shard, matrix.shards) || '' }}
run:
yarn test:all${{ matrix.project && format(' --project={0}', matrix.project) || '' }}${{ matrix.shard &&
format(' --shard={0}/{1}', matrix.shard, matrix.shards) || '' }}

- name: Upload Playwright Traces
uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-traces-job_browser_playwright_tests-${{ matrix.bundle}}-${{matrix.project}}-${{matrix.shard || '0'}}
name:
playwright-traces-job_browser_playwright_tests-${{ matrix.bundle}}-${{matrix.project}}-${{matrix.shard ||
'0'}}
path: dev-packages/browser-integration-tests/test-results
overwrite: true
retention-days: 7
Expand Down Expand Up @@ -822,19 +841,24 @@ jobs:

- name: Determine which E2E test applications should be run
id: matrix
run: yarn --silent ci:build-matrix --base=${{ (github.event_name == 'pull_request' && github.event.pull_request.base.sha) || '' }} >> $GITHUB_OUTPUT
run:
yarn --silent ci:build-matrix --base=${{ (github.event_name == 'pull_request' &&
github.event.pull_request.base.sha) || '' }} >> $GITHUB_OUTPUT
working-directory: dev-packages/e2e-tests

- name: Determine which optional E2E test applications should be run
id: matrix-optional
run: yarn --silent ci:build-matrix-optional --base=${{ (github.event_name == 'pull_request' && github.event.pull_request.base.sha) || '' }} >> $GITHUB_OUTPUT
run:
yarn --silent ci:build-matrix-optional --base=${{ (github.event_name == 'pull_request' &&
github.event.pull_request.base.sha) || '' }} >> $GITHUB_OUTPUT
working-directory: dev-packages/e2e-tests

job_e2e_tests:
name: E2E ${{ matrix.label || matrix.test-application }} Test
# We need to add the `always()` check here because the previous step has this as well :(
# See: https://github.com/actions/runner/issues/2205
if: always() && needs.job_e2e_prepare.result == 'success' && needs.job_e2e_prepare.outputs.matrix != '{"include":[]}'
if:
always() && needs.job_e2e_prepare.result == 'success' && needs.job_e2e_prepare.outputs.matrix != '{"include":[]}'
needs: [job_get_metadata, job_build, job_e2e_prepare]
runs-on: ubuntu-22.04
timeout-minutes: 15
Expand Down Expand Up @@ -951,12 +975,9 @@ jobs:
# We need to add the `always()` check here because the previous step has this as well :(
# See: https://github.com/actions/runner/issues/2205
if:
always() &&
needs.job_get_metadata.outputs.is_release != 'true' &&
needs.job_e2e_prepare.result == 'success' &&
needs.job_e2e_prepare.outputs.matrix-optional != '{"include":[]}' &&
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
github.actor != 'dependabot[bot]'
always() && needs.job_get_metadata.outputs.is_release != 'true' && needs.job_e2e_prepare.result == 'success' &&
needs.job_e2e_prepare.outputs.matrix-optional != '{"include":[]}' && (github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]'
needs: [job_get_metadata, job_build, job_e2e_prepare]
runs-on: ubuntu-20.04
timeout-minutes: 15
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-pr-caches.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Automation: Cleanup PR caches"
name: 'Automation: Cleanup PR caches'
on:
pull_request:
types:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clear-cache.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Action: Clear all GHA caches"
name: 'Action: Clear all GHA caches'
on:
workflow_dispatch:
inputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/enforce-license-compliance.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CI: Enforce License Compliance"
name: 'CI: Enforce License Compliance'

on:
push:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/external-contributors.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CI: Mention external contributors"
name: 'CI: Mention external contributors'
on:
pull_request_target:
types:
Expand Down Expand Up @@ -41,10 +41,11 @@ jobs:
# This token is scoped to Daniel Griesser
# If we used the default GITHUB_TOKEN, the resulting PR would not trigger CI :(
token: ${{ secrets.REPO_SCOPED_TOKEN }}
commit-message: "chore: Add external contributor to CHANGELOG.md"
title: "chore: Add external contributor to CHANGELOG.md"
commit-message: 'chore: Add external contributor to CHANGELOG.md'
title: 'chore: Add external contributor to CHANGELOG.md'
branch: 'external-contributor/patch-${{ github.event.pull_request.user.login }}'
base: 'develop'
delete-branch: true
body: "This PR adds the external contributor to the CHANGELOG.md file, so that they are credited for their contribution. See #${{ github.event.pull_request.number }}"

body:
'This PR adds the external contributor to the CHANGELOG.md file, so that they are credited for their
contribution. See #${{ github.event.pull_request.number }}'
2 changes: 1 addition & 1 deletion .github/workflows/gitflow-sync-develop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Gitflow: Sync master into develop"
name: 'Gitflow: Sync master into develop'
on:
push:
branches:
Expand Down
Loading
Loading