-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13459 from getsentry/prepare-release/8.27.0
meta: Update Changelog for 8.27.0
- Loading branch information
Showing
181 changed files
with
3,295 additions
and
920 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: "Install yarn dependencies" | ||
description: "Installs yarn dependencies and caches them." | ||
|
||
outputs: | ||
cache_key: | ||
description: "The dependency cache key" | ||
value: ${{ steps.compute_lockfile_hash.outputs.hash }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# we use a hash of yarn.lock as our cache key, because if it hasn't changed, our dependencies haven't changed, | ||
# so no need to reinstall them | ||
- name: Compute dependency cache key | ||
id: compute_lockfile_hash | ||
run: echo "hash=dependencies-${{ hashFiles('yarn.lock', 'packages/*/package.json', 'dev-packages/*/package.json') }}" >> "$GITHUB_OUTPUT" | ||
shell: bash | ||
|
||
- name: Check dependency cache | ||
uses: actions/cache@v4 | ||
id: cache_dependencies | ||
with: | ||
path: ${{ env.CACHED_DEPENDENCY_PATHS }} | ||
key: ${{ steps.compute_lockfile_hash.outputs.hash }} | ||
|
||
- name: Install dependencies | ||
if: steps.cache_dependencies.outputs.cache-hit != 'true' | ||
run: yarn install --ignore-engines --frozen-lockfile | ||
shell: bash |
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 |
---|---|---|
|
@@ -146,22 +146,9 @@ jobs: | |
with: | ||
node-version-file: 'package.json' | ||
|
||
# we use a hash of yarn.lock as our cache key, because if it hasn't changed, our dependencies haven't changed, | ||
# so no need to reinstall them | ||
- name: Compute dependency cache key | ||
id: compute_lockfile_hash | ||
run: echo "hash=${{ hashFiles('yarn.lock', '**/package.json') }}" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Check dependency cache | ||
uses: actions/cache@v4 | ||
id: cache_dependencies | ||
with: | ||
path: ${{ env.CACHED_DEPENDENCY_PATHS }} | ||
key: ${{ steps.compute_lockfile_hash.outputs.hash }} | ||
|
||
- name: Install dependencies | ||
if: steps.cache_dependencies.outputs.cache-hit != 'true' | ||
run: yarn install --ignore-engines --frozen-lockfile | ||
- name: Install Dependencies | ||
uses: ./.github/actions/install-dependencies | ||
id: install_dependencies | ||
|
||
- name: Check for Affected Nx Projects | ||
uses: dkhunt27/[email protected] | ||
|
@@ -200,7 +187,7 @@ jobs: | |
run: yarn build | ||
|
||
outputs: | ||
dependency_cache_key: ${{ steps.compute_lockfile_hash.outputs.hash }} | ||
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') }} | ||
|
@@ -293,22 +280,9 @@ jobs: | |
with: | ||
node-version-file: 'package.json' | ||
|
||
# we use a hash of yarn.lock as our cache key, because if it hasn't changed, our dependencies haven't changed, | ||
# so no need to reinstall them | ||
- name: Compute dependency cache key | ||
id: compute_lockfile_hash | ||
run: echo "hash=${{ hashFiles('yarn.lock', '**/package.json') }}" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Check dependency cache | ||
uses: actions/cache@v4 | ||
id: cache_dependencies | ||
with: | ||
path: ${{ env.CACHED_DEPENDENCY_PATHS }} | ||
key: ${{ steps.compute_lockfile_hash.outputs.hash }} | ||
|
||
- name: Install dependencies | ||
if: steps.cache_dependencies.outputs.cache-hit != 'true' | ||
run: yarn install --ignore-engines --frozen-lockfile | ||
- name: Install Dependencies | ||
uses: ./.github/actions/install-dependencies | ||
id: install_dependencies | ||
|
||
- name: Check file formatting | ||
run: yarn lint:prettier && yarn lint:biome | ||
|
@@ -480,7 +454,8 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
node: [14, 16, 18, 20, 22] | ||
# TODO(lforst): Unpin Node.js version 22 when https://github.com/protobufjs/protobuf.js/issues/2025 is resolved which broke the nodejs tests | ||
node: [14, 16, 18, 20, '22.6.0'] | ||
steps: | ||
- name: Check out base commit (${{ github.event.pull_request.base.sha }}) | ||
uses: actions/checkout@v4 | ||
|
@@ -873,6 +848,7 @@ jobs: | |
[ | ||
'angular-17', | ||
'angular-18', | ||
'astro-4', | ||
'aws-lambda-layer-cjs', | ||
'aws-serverless-esm', | ||
'node-express', | ||
|
@@ -977,6 +953,7 @@ jobs: | |
with: | ||
path: ${{ github.workspace }}/packages/*/*.tgz | ||
key: ${{ env.BUILD_CACHE_TARBALL_KEY }} | ||
fail-on-cache-miss: true | ||
|
||
- name: Install Playwright | ||
uses: ./.github/actions/install-playwright | ||
|
@@ -1076,6 +1053,7 @@ jobs: | |
with: | ||
path: ${{ github.workspace }}/packages/*/*.tgz | ||
key: ${{ env.BUILD_CACHE_TARBALL_KEY }} | ||
fail-on-cache-miss: true | ||
|
||
- name: Install Playwright | ||
uses: ./.github/actions/install-playwright | ||
|
@@ -1446,6 +1424,7 @@ jobs: | |
path: ${{ env.CACHED_DEPENDENCY_PATHS }} | ||
key: ${{ needs.job_build.outputs.dependency_cache_key }} | ||
enableCrossOsArchive: true | ||
fail-on-cache-miss: true | ||
|
||
- name: Restore build cache | ||
uses: actions/cache/restore@v4 | ||
|
@@ -1454,6 +1433,7 @@ jobs: | |
path: ${{ env.CACHED_BUILD_PATHS }} | ||
key: ${{ needs.job_build.outputs.dependency_cache_key }} | ||
enableCrossOsArchive: true | ||
fail-on-cache-miss: true | ||
|
||
- name: Configure safe directory | ||
run: | | ||
|
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,38 @@ | ||
name: "Automation: Cleanup PR caches" | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
cleanup: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# `actions:write` permission is required to delete caches | ||
# See also: https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-a-github-actions-cache-for-a-repository-using-a-cache-id | ||
actions: write | ||
contents: read | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cleanup | ||
run: | | ||
gh extension install actions/gh-actions-cache | ||
REPO=${{ github.repository }} | ||
BRANCH=refs/pull/${{ github.event.pull_request.number }}/merge | ||
echo "Fetching list of cache key" | ||
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 ) | ||
## Setting this to not fail the workflow while deleting cache keys. | ||
set +e | ||
echo "Deleting caches..." | ||
for cacheKey in $cacheKeysForPR | ||
do | ||
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm | ||
done | ||
echo "Done" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
5 changes: 5 additions & 0 deletions
5
dev-packages/browser-integration-tests/playwright.teardown.ts
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 @@ | ||
import * as childProcess from 'child_process'; | ||
|
||
export default function globalTeardown(): void { | ||
childProcess.execSync('yarn clean', { stdio: 'inherit', cwd: process.cwd() }); | ||
} |
19 changes: 19 additions & 0 deletions
19
dev-packages/browser-integration-tests/suites/feedback/captureFeedbackCsp/init.js
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,19 @@ | ||
import * as Sentry from '@sentry/browser'; | ||
// Import this separately so that generatePlugin can handle it for CDN scenarios | ||
import { feedbackIntegration } from '@sentry/browser'; | ||
|
||
window.Sentry = Sentry; | ||
|
||
Sentry.init({ | ||
dsn: 'https://[email protected]/1337', | ||
integrations: [ | ||
feedbackIntegration({ tags: { from: 'integration init' }, styleNonce: 'foo1234', scriptNonce: 'foo1234' }), | ||
], | ||
}); | ||
|
||
document.addEventListener('securitypolicyviolation', () => { | ||
const container = document.querySelector('#csp-violation'); | ||
if (container) { | ||
container.innerText = 'CSP Violation'; | ||
} | ||
}); |
13 changes: 13 additions & 0 deletions
13
dev-packages/browser-integration-tests/suites/feedback/captureFeedbackCsp/template.html
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,13 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
http-equiv="Content-Security-Policy" | ||
content="style-src 'nonce-foo1234'; script-src sentry-test.io 'nonce-foo1234';" | ||
/> | ||
</head> | ||
<body> | ||
<div id="csp-violation" /> | ||
</body> | ||
</html> |
Oops, something went wrong.