Skip to content

Performance Benchmarks has never run: deno errors on a sibling tsconfig, continue-on-error hides it, and the PR comment is an empty code block #987

Closed

Description

@thinkclay

Performance Benchmarks has been reporting success while producing nothing. The step it runs exits 1, continue-on-error: true swallows it, and the job then uploads an empty artifact and posts an empty code block to the PR.

The proof

The comment the job left on #973, verbatim:

## 📊 Performance Benchmark Results

An empty fenced block. That is what every PR reaching this job has been getting.

Two breakages, stacked

1. deno picks up a tsconfig from a different app. .github/workflows/api-tests.yml runs the bench with no --config:

deno bench --allow-all functions/api/__tests__/benchmarks/rest-vs-trpc.bench.ts > benchmark-results.txt

Config discovery walks out of packages/supabase and lands on a sibling:

error: Unsupported 'jsx' compiler option value 'react-native'.
       Supported: 'react-jsx', 'react-jsxdev', 'react', 'precompile'
  at apps/ui-storybook-native/tsconfig.json

"jsx": "react-native" is valid for React Native and unsupported by deno. That file has been there since the Expo 55→56 upgrade (#298), so the bench has been dead roughly that long. Reproduced locally, identical message. The > redirect still creates benchmark-results.txt, empty — which is why the artifact and the comment are empty rather than absent, and why nothing looked broken.

2. With the config fixed, the bench still does not compile. Passing --config=functions/api/deno.json clears the jsx error and uncovers a real type error in the benchmark's own dependency:

TS2552 [ERROR]: Cannot find name 'url'. Did you mean 'URL'?
          [...url.searchParams.keys()].join(", ") || "none"
    at packages/supabase/functions/api/__tests__/setup.ts:305:15

That is a genuine bug, not a config artifact — setup.ts:299 has const params = … and no url in scope, so the error branch would throw ReferenceError instead of logging if it were ever reached. Introduced or last touched by #932 / #922.

So fixing the config alone will not make this green; both need doing, and the second one is a live defect in a shared test fixture.

The continue-on-error question

It is there so a flaky benchmark cannot block a PR, which is reasonable. The problem is that it also hides "the benchmark did not run", and those are different states. Options, roughly in order of preference:

  1. Keep continue-on-error on the measurement, but fail the job if benchmark-results.txt is empty or missing — "it ran and was slow" stays non-blocking, "it never ran" becomes loud.
  2. Drop continue-on-error once it actually runs, and let a genuine regression fail.
  3. Delete the job. It has produced no data since chore(deps): upgrade Expo SDK 55 → 56 (atomic) #298 and nobody missed it, which is its own argument.

Same family as #941 (checks that only run in prepush) and #961 (test files no runner executes): a green that means nothing is worse than a red, because people spend the green.

Acceptance

Found while merging #972; the empty comment above is from #973.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backendagent-ready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions