Skip to content

Adapter: map HostEnvironmentInfo, hard-cutover ParseFile/ParsePath to BenchmarkRun #43

Open

Description

@AamiriYouness

Implements ADR-0006 Decision 1's parser changes and Decision 2's sentinel/unknown-token handling.

  • BdnHostEnvironmentDto, BdnChronometerFrequencyDto; HostEnvironmentInfo on BdnReportRootDto.
  • Compile BDN DTOs into BenchmarkEnvironment. Never expose BDN DTOs to Core.
  • ParseFile / ParsePath return BenchmarkRun directly (breaking change, pre-1.0, no shim). Migrate all callers in the same PR.
  • Unrecognized Architecture / HardwareTimerKind tokens: reject with a dedicated parse diagnostic, never deserialize as null or an arbitrary member.
  • Recognized sentinels (e.g. HardwareTimerKind.Unknown): preserve as the enum's Unknown member, never collapse to null.
  • Add a sanitized copy of the BDN 0.15.8 fixture as a permanent parser test fixture in this repo.
  • Never parse DisplayInfo.

Depends on: #42.

Non-goals: multi-document coherence validation (next issue).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:adaptersize:mtype:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions