~ knotless Search/
↑↓ move↵ open⇧↵ all results

zat.dev/zat

atproto utils for zig · mirror of https://tangled.org/zat.dev/zat

0
0
162 lines · 8.0 KB Raw History
.{
    .version = 1,
    .campaigns = .{
        .{
            .name = "mst",
            .build = .{ "zig", "build", "install-pbt", "-Dhegel" },
            .command = .{"zig-out/bin/pbt-mst"},
            .seeds = .{ 1, 2 },
            .cases = 100,
            .timeout_seconds = 900,
            .reach = .{
                .{ .key = "mst", .event = "bare partial reload" },
                .{ .key = "mst", .event = "copy followed by further operations" },
                .{ .key = "mst", .event = "operation refused by a block reader fault" },
                .{ .key = "mst", .event = "refused operation checked for atomicity" },
            },
        },
        .{
            .name = "codecs",
            .build = .{ "zig", "build", "install-pbt", "-Dhegel" },
            .command = .{"zig-out/bin/pbt-codecs"},
            .seeds = .{ 1, 2 },
            .cases = 100,
            .timeout_seconds = 900,
            .reach = .{
                .{ .key = "codecs", .event = "valid CAR and CBOR roundtrip" },
                .{ .key = "crypto", .event = "both curves reject modified message" },
                .{ .key = "crypto", .event = "signed commit rejects wrong identity" },
                .{ .key = "parsers", .event = "arbitrary bytes reach parser boundaries" },
                .{ .key = "structured", .event = "STAR chunked reads and structured parser mutations" },
                .{ .key = "syntax", .event = "valid TID and datetime roundtrip" },
                .{ .key = "syntax", .event = "space ref and record roundtrip" },
                .{ .key = "syntax", .event = "space uri legacy and malformed mutations" },
            },
        },
        .{
            .name = "runtime",
            .build = .{ "zig", "build", "install-pbt", "-Dhegel" },
            .command = .{"zig-out/bin/pbt-runtime"},
            .seeds = .{ 1, 2 },
            .cases = 100,
            .timeout_seconds = 900,
            .reach = .{
                .{ .key = "runtime", .event = "DPoP generated under virtual clock and entropy" },
                .{ .key = "runtime", .event = "client assertion lifetime checked" },
                .{ .key = "runtime", .event = "retry canceled before virtual time advances" },
                .{ .key = "runtime", .event = "retry timing compared with model" },
            },
        },
        .{
            .name = "xrpc",
            .build = .{ "zig", "build", "install-pbt", "-Dhegel" },
            .command = .{"zig-out/bin/pbt-xrpc"},
            .seeds = .{ 1, 2 },
            .cases = 100,
            .timeout_seconds = 900,
            .reach = .{
                .{ .key = "xrpc", .event = "call failed in transport" },
                .{ .key = "xrpc", .event = "call retried" },
                .{ .key = "xrpc", .event = "call returned XRPC error" },
                .{ .key = "xrpc", .event = "call succeeded" },
                .{ .key = "xrpc", .event = "transport replayed request after dead connection" },
            },
        },
        .{
            .name = "identity",
            .build = .{ "zig", "build", "install-pbt", "-Dhegel" },
            .command = .{"zig-out/bin/pbt-identity"},
            .seeds = .{ 1, 2 },
            .cases = 100,
            .timeout_seconds = 900,
            .reach = .{
                .{ .key = "identity", .event = "PLC document resolved" },
                .{ .key = "identity", .event = "PLC resolution refused" },
                .{ .key = "identity", .event = "did:web preflight found no usable DNS" },
                .{ .key = "identity", .event = "did:web preflight passed to TLS" },
                .{ .key = "identity", .event = "did:web preflight rejected unsafe address" },
                .{ .key = "identity", .event = "handle refused for unsafe well-known host" },
                .{ .key = "identity", .event = "handle resolution refused" },
                .{ .key = "identity", .event = "handle resolved through DNS TXT" },
                .{ .key = "identity", .event = "one address judged in isolation" },
            },
        },
        .{
            .name = "firehose",
            .build = .{ "zig", "build", "install-pbt", "-Dhegel" },
            .command = .{"zig-out/bin/pbt-firehose"},
            .seeds = .{ 1, 2 },
            .cases = 100,
            .timeout_seconds = 900,
            .reach = .{
                .{ .key = "firehose", .event = "backoff grew past 8s" },
                .{ .key = "firehose", .event = "backoff reached its 60s cap" },
                .{ .key = "firehose", .event = "events delivered" },
                .{ .key = "firehose", .event = "resumed from cursor after reconnect" },
                .{ .key = "firehose", .event = "undecodable frame skipped" },
            },
        },
        .{
            .name = "oauth",
            .build = .{ "zig", "build", "install-pbt", "-Dhegel" },
            .command = .{"zig-out/bin/pbt-oauth"},
            .seeds = .{ 1, 2 },
            .cases = 100,
            .timeout_seconds = 900,
            .reach = .{
                .{ .key = "oauth", .event = "DPoP request completed" },
                .{ .key = "oauth", .event = "DPoP request failed in transport" },
                .{ .key = "oauth", .event = "DPoP request retried with a fresh nonce" },
                .{ .key = "oauth", .event = "nonce challenge without a nonce refused" },
                .{ .key = "oauth", .event = "second nonce challenge exhausted the retry" },
            },
        },
        .{
            .name = "permissions",
            .build = .{ "zig", "build", "install-pbt", "-Dhegel" },
            .command = .{"zig-out/bin/pbt-permissions"},
            .seeds = .{ 1, 2 },
            .cases = 150,
            .timeout_seconds = 900,
            .reach = .{
                .{ .key = "permission-repo", .event = "repo relation checked" },
                .{ .key = "permission-rpc", .event = "rpc relation checked" },
                .{ .key = "permission-rpc", .event = "nested DID escape checked" },
                .{ .key = "permission-rpc", .event = "wildcard checked against bare and malformed audiences" },
                .{ .key = "permission-rpc", .event = "specific service checked against sibling and bare audiences" },
                .{ .key = "permission-blob", .event = "blob relation checked" },
                .{ .key = "permission-blob", .event = "redundant allow checked" },
                .{ .key = "permission-account-identity", .event = "account default checked" },
                .{ .key = "permission-rejection", .event = "unknown_attenuator" },
                .{ .key = "permission-rejection", .event = "duplicate_singleton" },
                .{ .key = "permission-rejection", .event = "positional_and_named" },
                .{ .key = "permission-rejection", .event = "escaped_delimiter" },
                .{ .key = "permission-rejection", .event = "malformed_escape" },
                .{ .key = "permission-rejection", .event = "double_escape" },
                .{ .key = "permission-rejection", .event = "double_rpc_wildcard" },
                .{ .key = "permission-rejection", .event = "bare_scope_audience" },
                .{ .key = "permission-rejection", .event = "invalid_wildcard_companion" },
                .{ .key = "permission-wire-aliases", .event = "equivalent wire spellings checked" },
                .{ .key = "permission-arbitrary-bytes", .event = "arbitrary bytes checked" },
            },
        },
        .{
            .name = "permission-calibration",
            .build = .{ "zig", "build", "install-pbt", "-Dhegel" },
            .command = .{"zig-out/bin/pbt-permissions"},
            .seeds = .{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 },
            .cases = 150,
            .timeout_seconds = 900,
            .mutants = "pbt/permission-mutants.zon",
        },
        .{
            .name = "calibration",
            .build = .{ "zig", "build", "install-pbt", "-Dhegel" },
            .command = .{"scripts/pbt-all"},
            .seeds = .{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 },
            .cases = 100,
            .timeout_seconds = 3600,
            .mutants = "pbt/mutants.zon",
        },
    },
}