:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(devex): skip the timing upload for product jobs without junit (#105715)
Julian Bez0bf529801159
diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.ymlindex 9f19b1364bb0..0701be8d3e9f 100644--- a/.depot/workflows/ci-backend.yml+++ b/.depot/workflows/ci-backend.yml@@ -1445,7 +1445,11 @@ jobs:uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0# Only the legacy-schema variant uploads durations — both schema variants run the# same test IDs, and two artifacts for the same tests would race in the merge.- if: ${{ needs.wait-for-handoff.outputs.handed_off == 'true' && (github.ref == 'refs/heads/master' && !matrix.new-events-schema) }}+ # A job whose products have no backend tests writes no JUnit, so it has no fresh+ # timings either. Its artifact would hold only the restored map, and the timing+ # refresh then rejects the whole Products slice because the timing and JUnit shard+ # sets differ.+ if: ${{ needs.wait-for-handoff.outputs.handed_off == 'true' && (github.ref == 'refs/heads/master' && !matrix.new-events-schema && hashFiles('junit-staging/junit-product-*.xml') != '') }}with:name: timing_data-Products-${{ strategy.job-index }}path: .test_durationsdiff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.ymlindex 5c22c2da1e64..daba33b74e50 100644--- a/.github/workflows/ci-backend.yml+++ b/.github/workflows/ci-backend.yml@@ -1313,7 +1313,11 @@ jobs:uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0# Only the legacy-schema variant uploads durations — both schema variants run the# same test IDs, and two artifacts for the same tests would race in the merge.- if: ${{ github.ref == 'refs/heads/master' && !matrix.new-events-schema }}+ # A job whose products have no backend tests writes no JUnit, so it has no fresh+ # timings either. Its artifact would hold only the restored map, and the timing+ # refresh then rejects the whole Products slice because the timing and JUnit shard+ # sets differ.+ if: ${{ github.ref == 'refs/heads/master' && !matrix.new-events-schema && hashFiles('junit-staging/junit-product-*.xml') != '' }}with:name: timing_data-Products-${{ strategy.job-index }}path: .test_durations