Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

Quality gates and acceptance

The checks Exponential already runs on every change (CI workflows, test suites, design and accessibility tests, CSP reports) and how to build your project's own quality gates and acceptance on top of them.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/leadership/quality-gates-and-acceptance.md

On this page

Quality gates and acceptance

This page is for project managers who must say "this is good enough to ship", and for the developers who give them the evidence. It explains which checks the Exponential project itself runs on every change, which of them your own project can reuse, and how to put them together into quality gates and an acceptance procedure with a clear sign-off.

A quality gate is a point in the project where work only moves on when named checks pass. Acceptance is the last gate: the people who will use the site confirm that it does what was agreed.

Contents

  1. What the project checks on every change
  2. The test suites
  3. Accessibility checks
  4. Security checks: the Content Security Policy and its reports
  5. Checks on a running site
  6. Designing your project's gates
  7. Acceptance: procedure and checklist
  8. Reading a red check

What the project checks on every change

The kernel repository se7enxweb/exponential runs four GitHub Actions workflows from .github/workflows/. The map of them is Continuous integration; the checks are described in Quality checks.

WorkflowRuns onWhat it checksBlocks a change
Quality (quality.yml)Every push to main, every pull request to it, and by handPHP syntax of changed files (PHP 8.3), JavaScript syntax of changed scripts (Node.js 22), the file manifest share/filelist.md5, commit messages, code style of changed files, PHPStan, the tests of the code style sniffs (PHP 8.4), and PHP 8.0 syntax and bootYes. Code style is a warning; the manifest is a warning on a pull request and blocking on main
PHPUnit (phpunit.yml)Every push to main and every pull request, with no paths filterThe test suite on PHP 8.1 to 8.5 without a database, and database tests on MySQL 8.0 and PostgreSQL 15Yes
Performance (performance.yml)A change to PHP, templates, settings/, the German translation or tests/benchmark/A micro benchmark on PHP 8.5 against tests/benchmark/baseline.jsonNo, a warning only
CI health (ci-health.yml)Mondays 06:17 UTC, and by handA report of pass rates, the steps and tests that fail most, and flaky runsNo, it only reports

Points worth knowing as a manager:

  • A pull request is tested as merged into main. A branch that was green can turn red when main moves (CI).
  • No PHPUnit paths filter. The tests also read templates, stylesheets, scripts, translations, settings and documentation, so a change to any of them runs the suite (Quality checks).
  • Contributors are not blocked by commit message style. A contributor's subject outside the Added: / Updated: / Fixed: / Removed: / Renamed: format is a warning; it is an error only for the project's own authors.
  • The same checks run locally. make hooks installs Git hooks that check syntax, the manifest, code style and the commit message at git commit, and PHPStan at git push; make check runs lint, manifest, phpcs and phpstan as CI does (Quality checks).

The CI health baseline

The project measured its own CI on 2026-10-17 for the period 2026-10-03 to 2026-10-17, before that week's repairs: 1,540 finished runs, 61.7 % passed (CI, "The baseline"). The page says to compare later reports with these figures. The report itself is python3 .github/scripts/ci_health_report.py --days 14. Use the same report on your own repositories if they run on GitHub Actions: it is one way to put a number on "how reliable is our pipeline".

The test suites

phpunit.xml groups the tests into suites. The names in the file are:

SuiteCovers
securitysecurity-related kernel tests
kernel-classes, kernel-content, kernel-datatypes, kernel-search, kernel-privatethe kernel
kernel-contentfinder, kernel-contentcheck, kernel-logviewer, kernel-requestlogthe content finder, content checks, log viewer and request logs
libthe libraries in lib/
mongodb, mongodb-livethe MongoDB layer; the live part needs a server
cjw_newsletter, explayouts_admin, ezjscore, ezmultiupload, expservices, ezoe, maps, admin-extensionsextensions
qualitythe project's own code style sniffs
designthe administration designs: styling rules, accessibility, keyboard, CSP

Facts from Quality checks:

  • The whole run has "more than 10,000 tests" and takes a long time on a busy machine.
  • For an everyday change it is enough to run the test files that cover the touched files, found through tests/test-map.json, the class names and the paths. The full run stays the check before a release.
  • Tests that need a live database or web server read their address from environment variables and skip without them, so a plain vendor/bin/phpunit passes on a machine without those servers.

For your project: your own extensions can carry their own tests in the same style. Ask your developers which suite covers which of your features, and put that list into the gate definition.

Accessibility checks

The admin4 design follows WCAG rules that tests check (Languages and accessibility). These tests are in tests/tests/design/ and run in the design suite on every change:

TestWhat it checksSource
AdminTokenContrastTestContrast of the color tokens with the WCAG 2 formula, light and dark: text 4.5:1, focus ring and field edges 3:1the test file
AdminLandmarksTestSkip link, landmarks, one main landmarkadmin4 design
AdminKeyboardTestThe markup and hooks keyboard use relies onadmin4 design
AdminFormLabelsTest, AdminFormErrorsTestEvery form field has a name; errors are announcedStyling the administration
StandardContentEditAccessibleNamesTestEvery control of the public edit form has an accessible namethe test file
AdminStylingRulesTestNo inline CSS in admin templates; tokens with dark valuesStyling the administration

axe. The changelog records manual checks with the axe accessibility engine, for example "axe reports no serious finding in the page frame on 10 classic pages at 1440 px and at 960 px with 200 % zoom, on both web servers" (6.0.15 changelog). axe is not one of the CI workflows. If your acceptance needs an automated audit of your own pages, plan it as a separate task with its own tool and owner.

The code review checklist for administration templates asks for a check "in light and dark mode at 1440 px and at 960 px with scale 2: no light card on the dark page, text contrast at least 4.5:1, no horizontal overflow, no console errors". It is a good model for your own front-end gate.

Right-to-left languages are part of accessibility for many audiences: see Right to left and Accessibility, security and compliance checklists.

Security checks: the Content Security Policy and its reports

Exponential sends a Content Security Policy from site.ini [ContentSecurityPolicy]; by default it is report-only on the administration and off on the sites (Content Security Policy). The kernel collects the browser's reports itself: the view csp/report writes one line per violation to var/log/csp.log, which the log viewer lists as Content Security Policy reports (Reports).

This gives you a measurable gate before you switch a policy to enforce:

  1. Run the policy in report-only while editors work normally for an agreed period.
  2. Read the error digest of the csp log (Setup > Log files > Error digest), grouped by directive and blocked source (Log viewer).
  3. The gate passes when no unexplained violation remains. Then follow "Switching to enforce, step by step" on the Content Security Policy page.

The test AdminContentSecurityPolicyTest in the design suite keeps the administration's templates compatible with a strict policy.

Checks on a running site

These checks need no developer and can be part of every gate from "staging is ready" on.

CheckWherePasses whenSource
Health checksSetup > System informationNo failure; warnings explainedSystem information
File consistencySetup > Upgrade checkOnly files changed on purpose are listedThe upgrade check
Database consistencySetup > Upgrade checkNo difference, or only engine notessame
Broken relations, missing filesSetup, content checksNothing unexplainedContent checks
ErrorsSetup > Log files > Error digestNo new group you cannot explainLog viewer
Audit chainAudit tab, or ./console exp:audit verifyEvery channel intactAudit trail
CronjobsSetup > Cronjobs, Recent runsRuns are OK; issues explainedCronjobs
Performance./console exp:benchmark --baseline=<file>Exit status 0, no regressionBenchmarking
Security hardeningThe checklist of the help pageEvery line ticked or consciously waivedSecurity hardening

Designing your project's gates

A simple model with four gates. Adapt the names and checks; keep the rule that a gate has named checks and a named owner who says "pass".

GateWhenChecksOwner
G1: Change readyEach pull request of your own codeYour CI green (or the project's checks run locally with make check); review done; tests of the change passLead developer
G2: Staging readyBefore editors see the buildG1 for every change; site checks of the table above on staging; content model matches the agreed modelLead developer and administrator
G3: AcceptanceBefore go-liveAcceptance checklist below signed; accessibility and CSP gates passed; performance baseline savedProject manager with the product owner
G4: LiveAfter go-liveLaunch checklist done; first-week checks of 10.15 doneAdministrator

Tip

Write the definition of each gate into the project charter at the start (Project templates). A gate that is only defined when the deadline is near is a negotiation, not a gate.

Definition of done for a change

Definition of done: <project name>
[ ] The change does what its ticket says; the ticket names how it was tested
[ ] php -l passes for every touched PHP file
[ ] Commit subject starts with Added: / Updated: / Fixed: / Removed: / Renamed:
[ ] Tests that cover the change pass; new behavior has a test, or the ticket says why not
[ ] Template changes: no inline CSS; checked in light and dark mode at 1440 px and 960 px at 200 %
[ ] Settings changes are in version control, not written on the server
[ ] Documentation updated where users or administrators will notice the change
[ ] Reviewed by a second person

Acceptance: procedure and checklist

  1. Agree the scenarios early. Each requirement of the charter gets at least one scenario: "As an editor I create an article in two languages and publish it".
  2. Prepare the acceptance site. A copy with realistic content, the real roles and the real siteaccesses. Give each tester an account with the role they will have on the live site, never a shared administrator account.
  3. Run the scenarios. Testers record pass or fail with the page address and, on an error page, the error reference shown at the bottom (When something goes wrong).
  4. Triage. Each failure becomes "fix before launch", "fix after launch" or "not a defect". A failure in Exponential itself is reported upstream (Working with the community).
  5. Sign off. The product owner signs the checklist; the project manager files it with the handover document.
Acceptance checklist: <project name>, build <version or commit>, date <date>
Testers: <roles>          Site: <acceptance copy address>

Content and editing
[ ] Every content class of the model can be created, edited, previewed and published by its role
[ ] Versions: a previous version can be viewed and restored
[ ] Translations: every agreed language can be added and published
[ ] Media: images and files upload; alt text can be entered
[ ] Layouts (if used): a layout can be edited, previewed and published

Roles and access
[ ] Each role sees only what it should; a forbidden page shows the access message, not an error
[ ] No tester needed the Administrator role for their daily tasks

Site
[ ] Every siteaccess answers; language switch works; right-to-left languages read right to left
[ ] Search finds new content
[ ] Forms and mail reach their recipients

Quality
[ ] System information shows no failure
[ ] Error digest shows nothing unexplained after the test period
[ ] CSP reports reviewed
[ ] Accessibility checks of your project passed
[ ] Performance baseline saved

Sign-off: <product owner role>   Result: accepted / accepted with listed defects / rejected

Reading a red check

When a workflow of the project is red, CI tells developers how to find the failed step (gh run view <id> --log-failed) and run the same command on their machine. Points for a manager:

  • A red check on a pull request that conflicts with main shows no checks at all. The fix is to merge main into the branch, not to re-run anything.
  • A cancelled run on a pull request is not a failure: a newer push replaced it.
  • The first pull request of a new contributor waits for a maintainer's approval before any workflow runs.
  • Performance is a warning. A slower benchmark does not block a change; it asks for a look.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x