Pre-release. Parity is not publicly available yet: the CLI, the GitHub Action and the hosted workspace open at launch. The demo runs on example data.

Skip to content

The hosted workspace

What the optional hosted workspace adds to the CLI, how project tokens and uploads work, and exactly when a review classification applies to a difference.

The CLI does the comparing and needs no account. The hosted workspace is an optional place to keep runs and review them: history across pull requests, an interactive view of every difference, and a record of what was judged a regression and what was intended.

You can try it on demonstration data, without an account, at parity.x1991labs.com/demo.

Parity is pre-release. Billing is not live (test mode only) and plans may change; see pricing.

#What it adds

CLI aloneWith the workspace
Compare, generate scenarios, gate CIYesYes — unchanged; still done by the CLI
Review one runThe HTML reportThe comparison workspace: filter, search, keyboard navigation, side-by-side bodies
HistoryThe report files you keepRuns per project, retained for 7 days (Free) or 90 days by default (Pro, Team)
Classify differences—Regression, intentional or nondeterministic, with notes
Teams—Shared workspaces, roles, audit history, run notification e-mails (Team, proposed)

The workspace only ever receives reports the CLI uploads. It does not run comparisons and has no access to your environments. What is stored is described in Security and data handling.

#Projects and tokens

A project corresponds to one API (usually one repository). Uploads are authenticated with a project token:

  • created in the project's settings, by a workspace admin;
  • shown once, at creation — only a SHA-256 hash is stored;
  • prefixed pty_, and scoped to one thing: uploading reports to that project. It cannot read runs or change settings;
  • revocable at any time.

Store it as a secret in your CI system.

#Uploading

Set PARITY_TOKEN and add --upload to the comparison:

bash
export PARITY_TOKEN=pty_…
parity compare --upload

The report is uploaded after the comparison finishes and its link is printed. Or upload a report that already exists:

bash
parity upload .parity/report.json

With the GitHub Action, pass the token as an input:

yaml
- name: Check API behaviour
  uses: x1991labs/parity-action@v1
  with:
    baseline: http://localhost:8080
    candidate: http://localhost:8081
    token: ${{ secrets.PARITY_TOKEN }}

Things worth knowing:

  • Uploads never change the verdict. If the upload fails — no network, a revoked token, a plan limit — the CLI prints a warning and exits with the comparison's own exit code.
  • A missing token is not an error. --upload without PARITY_TOKEN prints a warning and skips the upload. This is what happens for pull requests from forks, which do not receive secrets.
  • Uploads are idempotent. The run id is the idempotency key; sending the same report again does not create a second run.
  • The report is already redacted when it leaves your machine. See redaction.
  • To target a different deployment, set PARITY_API_URL or --api-url. A token is never sent over plain HTTP to a non-local host.

Record revisions (--baseline-revision, --candidate-revision; the action does this for you) so that runs in the workspace can be tied to commits and so that reviews can be scoped.

#Review classifications

In the workspace each difference can be classified:

ClassificationMeaning
UnreviewedNobody has looked at it yet. The default.
RegressionAn unintended change.
IntentionalA change that was meant to happen.
NondeterministicNoise: the field varies on its own. A prompt to add an ignore rule.

On Pro, workspace admins can classify. On Team (proposed), any member can.

Classifications are a review record. They do not change the CLI's exit code or the result of a CI check; what blocks a merge is decided by the policy the CLI ran with.

#Scope

A classification is attached to one specific difference under specific conditions. It applies to a difference in a run only when all of these match exactly:

  1. the project;
  2. the scenario (its id);
  3. the difference (its id — a fingerprint of the step, location, path, kind and both values);
  4. the baseline revision;
  5. the candidate revision;
  6. the configuration fingerprint (the comparison and generation settings).

So a classification made on one run applies to a re-run of the same two revisions with the same configuration — a retried CI job, for instance — and to nothing else.

Classifications are never carried over silently. If the candidate gets a new commit, the comparison rules change, or the value at that path changes again, the difference starts as unreviewed. "This was marked intentional last week" must not be what lets a different change through.

When an earlier classification exists for the same scenario under a different scope, the workspace shows it as a hint next to the difference — what it was classified as, by whom, for which revisions — and leaves the decision to the reviewer.

#API

The ingestion endpoint and the rest of the hosted API are described in the hosted API reference.

    Loading the index…