oc-chef-pedant Compatibility Report
Date: 2026-11-05
Server under test: microwave-server 0.3.1, binary built from 9366b3d
(chore(e2e): track the cinc-console latest tag), run on main at 9366b3d; no server source
changed between the build and the run
Pedant: vendored chef-server/oc-chef-pedant (gemspec version 2.2.0)
Harness: scripts/run-pedant.sh + scripts/pedant-bootstrap.rb
Result
Every core tag passes: 652 passed / 0 failed / 8 pending out of 660 examples. This record is a
full scripts/run-pedant.sh strict run on 2026-11-05. The pending examples are pedant's own skips in
clients (3) and nodes (5), not server gaps.
Environment
| Component | Version / value |
|---|---|
| OS | macOS 26.6.2 (25G83), arm64 |
| Ruby | ruby 3.4.12 (2026-10-23 revision 366f5fdc00) +PRISM [arm64-darwin25] |
| Bundler | 2.6.9 |
| Rust | rustc 1.99.0 (b940084d7 2026-09-28) |
| Cargo | cargo 1.99.0 (5f94df478 2026-08-27) |
| Pedant API version header | X-Ops-Server-API-Version: 0 |
Pedant X-Chef-Version | 18.10.17 (hard-coded in lib/pedant/request.rb) |
The binary was built once with cargo build --locked --bin microwave-server --bin microwave-ctl
and reused with MW_SKIP_BUILD=1, so every tag ran against the same server build.
Command line
MW_SKIP_BUILD=1 PEDANT_ARTIFACTS=/tmp/mw-pedant-current \
scripts/run-pedant.sh strict
strict expands to core, extended, and extra; the core part is
headers users organizations clients nodes. Each tag gets its own fresh server, data directory,
and seeded actors: pedant deletes the requestor clients in its after-suite hook even when they were
pre-existing, so a shared instance produces bogus 401s after the first tag. Per tag the script
starts target/debug/microwave-server serve on a loopback ephemeral port with a temporary SQLite
data directory, waits for /_status, seeds actors, writes a pedant config, then runs:
cd chef-server/oc-chef-pedant
SUPERUSER_KEY=<data-dir>/pivotal.pem \
bundle exec ./bin/oc-chef-pedant \
-c <artifacts>/<tag>/pedant_config.rb \
-L <artifacts>/<tag>/http-traffic.log \
--focus <tag>
Exit status of the run was 0. Logs, generated keys, config, and HTTP traffic captures are in
/tmp/mw-pedant-current.
Counts per tag
RSpec's own summary lines, after stripping ANSI colour codes:
| Tag | Examples | Passed | Failed | Pending |
|---|---|---|---|---|
headers | 7 | 7 | 0 | 0 |
users | 165 | 165 | 0 | 0 |
organizations | 15 | 15 | 0 | 0 |
clients | 142 | 139 | 0 | 3 |
nodes | 331 | 326 | 0 | 5 |
| Total | 660 | 652 | 0 | 8 |
Raw summary lines:
headers 7 examples, 0 failures
users 165 examples, 0 failures
organizations 15 examples, 0 failures
clients 142 examples, 0 failures, 3 pending
nodes 331 examples, 0 failures, 5 pending
Harness notes and still-true limitations
scripts/pedant-bootstrap.rbcreates the org, validator, clients, and users through the public signed API, then seeds the default groups through the/organizations/:org/groupsAPI. It writes a generatedpedant_config.rbwithcreate_me: falsefor all requestors.- Pedant's requestor setup drops the
admin/associateflags for pre-existing users, so the org admin user is left to pedant's owncreate_me. The other users and clients are pre-created so the group membership is in place before pedant starts. - The org-creation response carries the validator name and private key, which the bootstrap reuses as the validator key. When that key is absent the bootstrap creates the validator itself.
- Each tag runs against a separate server and data directory, as described above.
headersneeds a vendored harness patch: the nginx-default-error example calledrequest_url.sub!("https", "http"), andsub!returnsnilfor an already plain-HTTP URL, so the example signed a nil URL. It now passesrequest_urlunchanged. The patch is listed under "Vendored harness-only patches" at the top ofscripts/run-pedant.shand must be re-applied on every re-vendor.- Pending examples are pedant's, not harness failures: 3 in
clients, 5 innodes. - The harness restores the vendored
Gemfile.lockafter each run. Bundler adds the localarm64-darwin-25platform and drops therackfloor because the omnibussafe_versions.rbfile is not present in this checkout; committing that host-specific rewrite is undesirable.
The extended, extra, and harness-specific notes are in
docs/pedant-extended-report.md.