When to use it
By default Fronelta rehearses each migration in its own sandbox on synthetic rows. Lock hold times and rewrite costs depend on how much data a table holds and how it is distributed, so synthetic rows give indicative numbers. If you already have a disposable copy of production — a Neon branch, a staging clone, a restored snapshot — you can run the rehearsal there instead.
The rehearsal then runs in your GitHub Actions. Fronelta builds the bundle of migration files, your workflow runs them on the copy and sends back the measurements, and Fronelta computes the verdict and posts the check as usual.
What Fronelta receives, and what it does not
| Fronelta receives | Fronelta never receives |
|---|---|
| Per-statement timings, locks, rewrites and errors | The database connection string or password |
| The schema before and after the migration (definitions, no rows) | Your Neon API key |
| Error messages with row values removed | Rows from your tables |
PostgreSQL error details (for example Key (email)=(…)), hints and context are dropped, values quoted in data-type errors are replaced with …, and messages raised by your own code (RAISE) are hidden. The full messages stay in your CI log.
Set it up with Neon
- In Neon, connect your project to the repository. Neon's GitHub integration adds the
NEON_API_KEYsecret andNEON_PROJECT_IDvariable. - In Fronelta, create an API token with the CI runner scope and save it as the repository secret
FRONELTA_TOKEN. Tokens with the default Runs scope can start and read runs but can't upload results. - In the project's settings, under Where Runs Execute, choose Your CI and copy the generated workflow to
.github/workflows/fronelta.yml.
The workflow creates a branch of your production database for each pull request, with an expiry time, then runs the Fronelta action with the branch's direct connection string. Pooled endpoints (-pooler) are refused: lock observation needs its own session. Add Neon masking_rules to the branch step to anonymize personal data before the migrations run.
Not on Neon? Replace the Neon step with any step that produces a disposable copy and its direct connection string.
How runs behave
- A run waits for your workflow. If no workflow claims it within 30 minutes, it ends as Couldn't verify so a pull request is never left pending.
- To verify a commit again, re-run the workflow in GitHub Actions. Re-run in Fronelta or on the check creates a new run that also waits for the workflow.
- Pull requests from forks have no access to your secrets, and drift checks need extra databases, so both still run in Fronelta's sandbox.
- The check and the report say Measured in your CI. Anyone who can change the workflow could change what it reports, as with any CI result, so protect the workflow file like other CI configuration.
- Fronelta can't confirm that the copy matches your default branch or production's size. A copy taken before recent migrations were deployed gives misleading results.