Skip to content

Commit 85f3199

Browse files
authored
build(ci): Ensure we run E2E tests when profiling node is skipped (#10512)
With the recent change to skip the node profiling compile step when it was not changed, we implicitly also skipped the "Prepare E2E tests" job - as that is by default skipped if the dependent job is skipped. This PR changes this so that we should be running this even if that was skipped. We have to make sure to check that `build` itself was not skipped though (as then we want to _actually_ skip this).
1 parent 0c56836 commit 85f3199

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,13 @@ jobs:
952952
953953
job_e2e_prepare:
954954
name: Prepare E2E tests
955-
if:
955+
# We want to run this if:
956+
# - The build job was successful, not skipped
957+
# - AND if the profiling node bindings were either successful or skipped
958+
# AND if this is not a PR from a fork or dependabot
959+
if: |
960+
always() && needs.job_build.result == 'success' &&
961+
(needs.job_compile_bindings_profiling_node.result == 'success' || needs.job_compile_bindings_profiling_node.result == 'skipped') &&
956962
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
957963
github.actor != 'dependabot[bot]'
958964
needs: [job_get_metadata, job_build, job_compile_bindings_profiling_node]
@@ -1014,7 +1020,10 @@ jobs:
10141020
name: E2E ${{ matrix.label || matrix.test-application }} Test
10151021
# We only run E2E tests for non-fork PRs because the E2E tests require secrets to work and they can't be accessed from forks
10161022
# Dependabot PRs sadly also don't have access to secrets, so we skip them as well
1023+
# We need to add the `always()` check here because the previous step has this as well :(
1024+
# See: https://github.com/actions/runner/issues/2205
10171025
if:
1026+
always() && needs.job_e2e_prepare.result == 'success' &&
10181027
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
10191028
github.actor != 'dependabot[bot]'
10201029
needs: [job_get_metadata, job_build, job_e2e_prepare]

dev-packages/e2e-tests/test-applications/vue-3/tests/performance.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ test('sends a navigation transaction with a parameterized URL', async ({ page })
5353
'sentry.source': 'route',
5454
'sentry.origin': 'auto.navigation.vue',
5555
'sentry.op': 'navigation',
56-
'params.id': '456',
56+
'params.id': '123',
5757
},
5858
op: 'navigation',
5959
origin: 'auto.navigation.vue',

0 commit comments

Comments
 (0)