About these results

We test each implementation over HTTP, the same way any app talking to it would. Every check points at the sentence of the spec it comes from, so you can always see why something passed or failed.

How we test

For each run we start a fresh, private network with the implementation, a PLC directory and our test runner, and nothing else. Nothing in it can reach the internet. The test runner makes its own accounts and spaces, then works through every check that applies. We don’t grade the setup, so an implementation that creates spaces in an older way still gets tested on everything after that.

  • When a project ships a new image, we test it. If nothing surprising turns up, we open a pull request to switch to it. If something does, we open an issue in our repository and stay on the current image.
  • Every night, we re-test anything whose inputs changed since its last run: the pinned image, our tests, or the pinned spec text.
  • Every result goes into the results branch as it was recorded, along with the list of known gaps it was judged against. We never edit a result. If one is wrong, a new run replaces it.

Who runs this

We’re HappyProto. We also make HappyView, and it’s tested here like everything else: from its published image, by the same tests, with its whole list of known gaps in view. Our test runner implements the spec’s crypto and wire formats itself, straight from the spec, and doesn’t use any implementation’s code.

How scores work

Every check has a level. Required checks come from a MUST in the spec, or from a sentence that defines a format, field or method. Recommended checks come from a SHOULD, and get their own score. Info checks just record what an implementation does where the spec doesn’t say, and never count.

An implementation’s score is the share of required checks it passes, for each job it does. Known gaps still count as failures, so listing one never raises a score.

ResultCounts asMeans
passPassesIt does what the spec says.
known deviationDoesn’t passIt fails in exactly the way the project told us to expect, and they’re tracking a fix.
failDoesn’t passIt fails, and nobody has flagged it yet.
deviation changedDoesn’t passIt’s a known gap, but it failed in a different way than expected, so we treat it as a new failure.
fixed, still listedPassesIt passes now, but the project still lists it as a known gap. Time to take it off the list.
fail (provisional)Left outIt fails a check we haven’t yet confirmed on two independent implementations, so the bug could be ours.
errorLeft outSomething broke on our side. We retry once, and if it breaks again there’s no result.
pendingLeft outWe can’t test this against this implementation yet. The details say why.
no test yetLeft outIt applies, but we haven’t written the test yet.
not applicableLeft outThe implementation doesn’t do the job this check is about.

Why some failures don’t count yet

Tests that check crypto can have bugs too. So until one of those checks has passed on two implementations that don’t share code for it, a failure is shown but doesn’t count. Two projects built on the same library count as one.

Jobs and kinds of host

The spec splits the work into three jobs. A repo host stores and serves people’s space repos. A space host handles credentials, who can write, and notifications. A PDS also has to serve a baseline set of methods. Each implementation tells us which jobs it does, and only those checks apply.

Some rules assume a space belongs to an account someone signs in as. A standalone space host keeps its spaces on DIDs it creates, so those rules don’t apply to it. We decide which checks each kind of host gets, not the implementation, so nobody can opt out of a check. Each implementation’s page says what doesn’t apply to it.

Adding an implementation

The easiest way is to open an “Add a PDS” issue, and we’ll take it from there. If you’d rather send a pull request to happyproto/spaces-conformance, add a folder under implementations/ with:

  • a manifest: the jobs it does, what it supports, and which library handles each piece of crypto;
  • a compose file that starts it on our test network;
  • an adapter for creating accounts and spaces, if createAccount and createSpace aren’t enough;
  • its image, pinned by digest.

Its list of known gaps can live in our repository or in its own.

If a result looks wrong

Open an issue with the run id from the implementation’s page and the name of the check. We assume our tests are wrong until proven otherwise. If they are, we fix them, and the next run replaces the result. We never post on another project’s tracker automatically.

Asking for a re-run

We only test something again when it changes. If you think a result was a fluke, fill in the re-run request with the implementation, the run id from its page, and why. One of us will start a fresh run.