About these results

Atproto spaces are new, and a few servers already support them. I wanted to know whether those servers actually work with each other, so I wrote one set of tests, pointed it at all of them, and put the results here.

How a run works

Every test talks to a server over HTTP, the same way an app would. Each one is tied to the sentence in the spec it checks, so if something fails, you can click through and read the exact rule it broke.

Each run gets its own private network: the server, whatever it needs to run (a database, sometimes a second server), a PLC directory, a TLS proxy and the test runner. Nothing in there can reach the internet. The runner makes its own accounts and spaces, then runs every test that applies. I don’t grade the setup steps, so a server that creates spaces the older way still gets tested on everything else.

Every server runs from an image pinned by digest. HappyView uses its own published image. The others are built from each project’s source. When a new image shows up, it gets tested first, and if nothing new breaks, a pull request bumps the pin. If something does break, an issue opens here and the pin stays where it is.

Every night, anything with a new image, new tests or a new spec revision gets run again. Everything else is left alone. Results go into the results branch as they came out of the run, along with the list of known gaps they were graded against. I don’t edit results. If one is wrong, a new run replaces it.

Yes, I make one of these

I’m Trezy. I build HappyView and run HappyProto, and HappyView is one of the servers on this page. It goes through the same tests as everyone else, from its published image, and its list of known gaps is public like everyone else’s. The test runner implements the crypto and wire formats from the spec itself and doesn’t use code from any of the servers it tests.

Which version of the spec

The spec has changed a lot in the last few months, so I pin each version I test against: the proposal text by commit (checked by hash) and the lexicons that go with it. A test is graded against whichever version it ran at. If a sentence changed between versions, each version gets checked on its own terms.

Each server says which versions it’s aiming for. The grid on the front page shows the first one in its list, and the server’s own page shows the rest.

How scoring works

Every test has a level. Required tests come from a MUST in the spec, or from a sentence that defines a format, a field or a method. Recommended tests come from a SHOULD and get a separate score. Info tests just record what a server does where the spec doesn’t say, and they never count.

A server’s score is the share of required tests it passes, for each job it does. Known gaps still count as failures. Listing a gap tells you why something fails, but it’s still a fail.

ResultCounts asMeans
passPassesIt does what the spec says.
known deviationFailsIt fails the way the project’s known-gaps list says it will.
failFailsIt fails, and it isn’t on any list.
deviation changedFailsIt’s on the list, but the failure changed, so it counts as new.
fixed, still listedPassesIt passes now, so the entry can come off the list.
fail (provisional)Not scoredIt failed, but the test isn’t confirmed yet, so it doesn’t count.
errorNot scoredThe run broke on my end, twice.
pendingNot scoredIt couldn’t be graded this run. The row says why.
no test yetNot scoredThis applies, but I haven’t written the test.
not applicableNot scoredThe server doesn’t do this job.

Known gaps

Each server can keep a list of tests it knows it fails. Every entry names the issue tracking the fix and describes the failure it expects, so a known gap can’t hide a different bug in the same test. If the failure changes, it shows up as new. If the test starts passing, the entry comes off the list. The list can live here or in the project’s own repo. HappyView keeps its list in the HappyView repo.

Who tests the tests?

My tests have bugs too, and a bug in the crypto tests would be the worst kind. So any test that depends on the runner’s crypto starts out provisional. It stops being provisional once the runner’s test vectors for that crypto have been cross-checked, and the test has passed on two servers that don’t share code for that piece. Until then, a failure shows up on the page but doesn’t count against anyone.

Two servers built on the same library count as one here, since a bug in that library would show up the same way in both. A server that doesn’t say which library it uses doesn’t count toward this at all.

Jobs and kinds of host

The spec splits the work into jobs. A repo host stores and serves people’s space repos. A space host handles credentials, writers and notifications. A PDS does both, plus a baseline set of methods. Each server says which jobs it does, and only those tests apply to it.

Some rules assume a space belongs to an account someone signs in to. A standalone space host keeps its spaces on DIDs it creates itself, so those rules don’t apply to it. I decide which tests each kind of host gets, not the server, so nobody can skip a test they’d rather not take. Each server’s page lists the tests that don’t apply to it.

Getting your server on here

If you’re building a PDS or a space host, I’d love to test it. The easiest way is to open an “Add a PDS” issue and I’ll take it from there.

If you’d rather do it yourself, send a pull request to happyproto/spaces-conformance. Add a folder under implementations/ with a manifest (which jobs your server does, and which library handles each piece of crypto), a compose file that starts it on the test network, and a small adapter if createAccount and createSpace aren’t enough to set it up. Then add your image, pinned by digest, to pins/images.env.

Think I got something wrong?

You might be right. Open an issue with the run ID from the server’s page and the name of the test. I’ll assume my test is wrong until I can show it isn’t, and if it is wrong, I’ll fix it and the next run replaces the result. This suite never posts on anyone else’s issue tracker on its own.

Tests only run again when something changes. If a result looks like a fluke, fill in a rerun request with the server, the run ID and what looks off, and I’ll start a fresh run.