Skip to content

← All questions

perf.budgets validates and resolves, and a nine-second page still passes. What am I missing?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Project yaml:

yaml
perf:
  budgets: { pageLoadMs: 4000, lcpMs: 3000, apiP95Ms: 1500 }

Environment override, and a process that asks for the gate:

yaml
processes:
  - name: release-gate
    trigger: release
    tags: '@smoke or @regression'
    gates: { minPassRate: 100, maxFlaky: 0, perfBudgets: true, a11y: true }
bash
sdods config show -p demo-shop -e staging --explain

shows perf.budgets.pageLoadMs resolving from envs/staging.yaml, so the plumbing is clearly there. But a page we know takes about nine seconds on staging goes green, and no scenario has ever failed on the gate. Is the budget compared against the wrong metric, or am I meant to add a step?

2 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related