SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
ci(e2e): stop label events from failing the e2e check (#13167)
Ashwin Bhatkal65fc5a9cbb94
diff --git a/.github/workflows/e2eci.yaml b/.github/workflows/e2eci.yamlindex 79f6db0980..c607dfe097 100644--- a/.github/workflows/e2eci.yaml+++ b/.github/workflows/e2eci.yaml@@ -2,25 +2,13 @@ name: e2ecion:pull_request:- types:- - opened- - synchronize- - reopened- - labeled- pull_request_target:- types:- - labeled- merge_group:- types:- - checks_requestedconcurrency:- group: e2eci-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}cancel-in-progress: truejobs:changes:- if: github.event_name != 'merge_group'runs-on: ubuntu-latestoutputs:e2e: ${{ steps.changes.outputs.e2e }}@@ -30,17 +18,21 @@ jobs:env:GH_TOKEN: ${{ github.token }}PR_NUMBER: ${{ github.event.pull_request.number }}- LABELED: ${{ contains(github.event.pull_request.labels.*.name, 'safe-to-e2e') }}+ FORCE: ${{ contains(github.event.pull_request.labels.*.name, 'safe-to-e2e') }}run: |- files=$(gh api "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER/files" --paginate --jq '.[].filename')- if [ "$LABELED" = true ] || grep -qE '^(frontend|tests/e2e)/' <<< "$files"; then+ CHANGED_FILES=$(gh api "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER/files" --paginate --jq '.[].filename | select(startswith("tests/integration/") | not)')+ PATTERN='^(frontend/|tests/|\.github/workflows/e2eci\.yaml$|cmd/enterprise/Dockerfile\.with-web\.integration$)'++ if [ "$FORCE" = "true" ]; then+ echo "e2e=true" >> "$GITHUB_OUTPUT"+ elif printf '%s\n' "$CHANGED_FILES" | grep -qE "$PATTERN"; thenecho "e2e=true" >> "$GITHUB_OUTPUT"+ else+ echo "e2e=false" >> "$GITHUB_OUTPUT"fifmtlint:needs: changes- if: |- ((github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork && github.event.pull_request.user.login != 'dependabot[bot]' && ! contains(github.event.pull_request.labels.*.name, 'safe-to-test')) ||- (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))) && needs.changes.outputs.e2e == 'true'+ if: needs.changes.outputs.e2e == 'true'runs-on: ubuntu-lateststeps:- name: checkout@@ -70,9 +62,7 @@ jobs:- chromiumshard: [1, 2, 3, 4]needs: changes- if: |- ((github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork && github.event.pull_request.user.login != 'dependabot[bot]' && ! contains(github.event.pull_request.labels.*.name, 'safe-to-test')) ||- (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))) && needs.changes.outputs.e2e == 'true'+ if: needs.changes.outputs.e2e == 'true'runs-on: ubuntu-latesttimeout-minutes: 30steps:@@ -181,17 +171,14 @@ jobs:name: playwright-artifacts-${{ matrix.project }}-${{ matrix.shard }}path: tests/e2e/artifacts/retention-days: 5- # Required status check. Fails when e2e was needed but did not pass,- # including fork and dependabot PRs still waiting on safe-to-test.+ # Required status check. Fails when e2e was needed but did not pass.e2e:if: always()needs: [changes, fmtlint, test]runs-on: ubuntu-lateststeps:- name: verdict- if: |- github.event_name != 'merge_group' && (needs.changes.result != 'success' ||- (needs.changes.outputs.e2e == 'true' && (needs.fmtlint.result != 'success' || needs.test.result != 'success')))+ if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')run: |- echo "::error::e2e did not pass. Fork and dependabot PRs need the safe-to-test label."+ echo "::error::e2e did not pass."exit 1