DEV Community

Aleksander Sekowski
Aleksander Sekowski

Posted on Fully Autonomous

OpenRTB fixtures need a specification snapshot as well as a version number.

Two engineers can both report that they validated an OpenRTB 2.6 fixture while using different dated releases of the specification. If their tools load different definitions, the disagreement may be reproducible even though neither person changed the payload.

The major and minor version identify part of the contract. A reproducible fixture also needs the specification snapshot, applicable profile and tool revision used to interpret it.

This matters for partner debugging, validator upgrades and any published result that another engineer may need to reproduce later.

Record the contract beside the payload

OpenRTB's versioning policy provides dated releases within 2.6. Record the selected release identifier and a source reference rather than keeping only a label such as latest OpenRTB.

Include the exchange profile or application policy if it changes which inputs are accepted. A tool using general specification checks and one applying additional partner requirements can legitimately produce different findings on the same document.

Also retain the exact validator release or executable identity. Pinning the specification does not pin the tool's interpretation, and fixing a validator bug can change a result without changing the underlying standard.

Keep this metadata in the fixture corpus. Do not add application-owned provenance fields to an actual bid request unless a documented extension contract requires them.

Build a small manifest that identifies the inputs

This complete Node.js example constructs metadata for synthetic request and response fragments. It uses content hashes to identify the exact serialized inputs:

import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';

const sha256 = bytes => createHash('sha256').update(bytes).digest('hex');
const requestBytes = JSON.stringify({ id: 'auction-17', imp: [{ id: 'slot-a' }] });
const responseBytes = JSON.stringify({ id: 'auction-17', seatbid: [] });

const manifest = {
  fixture_set: 'synthetic-video-regressions',
  specification: 'OpenRTB',
  snapshot: '2.6-202606',
  profile: 'application-example-profile-v1',
  validator_release: 'synthetic-validator-1.0.0',
  inputs: {
    request_sha256: sha256(requestBytes),
    response_sha256: sha256(responseBytes)
  },
  expected_checks: ['request-response identity']
};

assert.equal(manifest.inputs.request_sha256, sha256(requestBytes));
assert.notEqual(manifest.inputs.request_sha256,
  sha256(JSON.stringify({ id: 'auction-18', imp: [{ id: 'slot-a' }] })));
assert.equal(manifest.inputs.response_sha256.length, 64);
Enter fullscreen mode Exit fullscreen mode

The profile and validator names are invented labels. In a real corpus they should resolve to maintained documentation and an actual tool artifact or release.

The hashes identify bytes. Whitespace or property-order changes can change a hash even when parsed JSON has equivalent meaning. That is useful for exact artifact tracking. If you also need a normalized semantic comparison, define and version that transformation separately.

Preserve external definitions that affect the result

OpenRTB references maintained definitions beyond the main document, including AdCOM enumerations. If a fixture depends on a particular enum value or interpretation, retain the relevant source revision with the test environment.

Do the same for exchange-specific extensions and policy files. A pinned main specification cannot make an unpinned partner profile reproducible.

You do not need to freeze every dependency indefinitely. You need a record that makes an intentional update distinguishable from an accidental download of different definitions.

For dependencies loaded at runtime, record their resolved identities in the test result. A configuration file saying latest is weaker evidence than a result identifying the actual revision used in that run.

Upgrade one dimension at a time

Start with the unchanged corpus and current environment. Save the findings. Then run the same bytes against the proposed environment and compare results.

If possible, isolate the specification update from the validator upgrade and partner-profile update. Changing all three together makes the cause of a difference harder to identify.

Classify changed findings. A new result may reflect a specification addition, a corrected tool interpretation, an exchange policy change or a regression in the tool itself. Do not automatically rewrite every failing fixture until the suite becomes green.

Keep a short explanation with each accepted expectation change. A future reviewer should be able to find why the result changed without reconstructing the migration from commit messages and old downloads.

Test defaults and unsupported values under both environments

Fixtures that rely on defaults deserve special attention. An absent field may be interpreted according to a snapshot or profile, while an explicit field can preserve a different diagnostic path.

Include unknown enum values and malformed types as separate cases. The upgrade should not silently convert unsupported input into a familiar default merely to preserve compatibility.

Where the tool supports several profiles, run the same fixture under each intended profile and label the outputs. This catches configuration mistakes in CI, such as a partner-specific check accidentally running under a general default.

A fixture's expected finding should identify the rule or relationship it protects. A generic expected-failure flag can stay red for the wrong reason after an upgrade.

Save the resolved invocation with the CI artifact, including configuration flags that affect validation. A manifest that names a profile is not enough if the actual job forgot to enable it. Compare the requested configuration with the tool's reported configuration at startup, and fail the run if they disagree. This catches reproducibility problems before anyone begins investigating the payload itself.

Make a disagreement reproducible for another team

When sharing a validation result, include the sanitized fixture pair, input hashes, selected snapshot, profile and tool release. State the exact finding and the command or invocation needed to reproduce it.

If the partner uses a different environment, run both against the same bytes before concluding that either result is wrong. The difference may be an intentional acceptance requirement rather than a specification disagreement.

Keep conformance and operational acceptance distinct in the report. Passing the checks you selected does not establish that every exchange will accept the response or that it arrived before a deadline.

I maintain RTBlint. Its OpenRTB version guide helps orient an investigation across versions. Preserve the resolved snapshot and test environment with the fixture so the next reviewer can reproduce the actual contract you used.

Sources

Technical sources checked October 25, 2026. Drafted with AI; examples are synthetic unless explicitly stated otherwise.

Top comments (0)