Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Remove the dead push-event arms from the affected-tests stats upload (#80583)

Fraserdd308471eb4f
diff --git a/.github/scripts/upload-affected-tests-stats.ts b/.github/scripts/upload-affected-tests-stats.ts
index 1b276023c59..3e20ec49458 100644
--- a/.github/scripts/upload-affected-tests-stats.ts
+++ b/.github/scripts/upload-affected-tests-stats.ts
@@ -1,6 +1,6 @@
// Appends the test-plan stats row produced by create-test-plan.ts to the
// "FE Affected Tests" table in eng-stats-importer.
-// Reads STATS_JSON, TRIGGERED_BY, PR_NUMBER, HEAD_SHA, BASE_SHA, API_KEY from env.
+// Reads STATS_JSON, PR_NUMBER, HEAD_SHA, BASE_SHA, API_KEY from env.
import type { TestPlanStats } from "./affected-tests";
import { importStats } from "./stats-import";
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index b6bd18eb407..10e27f04898 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -124,10 +124,9 @@ jobs:
- name: Upload affected tests stats
env:
STATS_JSON: ${{ needs.create-test-plan.outputs.stats }}
- TRIGGERED_BY: ${{ github.event_name == 'pull_request' && 'pr_update' || 'merge_to_master' }}
- PR_NUMBER: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || 0 }}
- HEAD_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
- BASE_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
+ PR_NUMBER: ${{ github.event.pull_request.number }}
+ HEAD_SHA: ${{ github.event.pull_request.head.sha }}
+ BASE_SHA: ${{ github.event.pull_request.base.sha }}
ENG_STATS_URL: ${{ secrets.ENG_STATS_URL }}
API_KEY: ${{ secrets.ENG_STATS_API_KEY }}
run: bun .github/scripts/upload-affected-tests-stats.ts