Skip to content

test(dotnet): consolidate managed PE and field constant contracts - #13365

Merged
morluto merged 1 commit into
mainfrom
test/campaign-managed-metadata-witnesses
Nov 22, 2026
Merged

morluto merged 1 commit into
mainfrom
test/campaign-managed-metadata-witnesses

Conversation

@morluto

@morluto morluto commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Changes

  • Put the three ARM and four ReadyToRun OS machine values through one real file and provider matrix. Keep the exact subject, COFF value, architecture and ReadyToRun bit for every row. Representative direct and OS-override rows also exercise member and native-boundary inspection. The matrix now makes 11 provider calls instead of 25.
  • Use one selected metadata report to prove non-monotonic Constant parents, exact unique values and two distinct rejected declarations. An admitted field now establishes a real selection while an excluded type holds a malformed default. The historical omission check uses the same ordinary field that projects as null.
  • Preserve the backed CLI range and independent physical and virtual refusals. Replace repeated fixture inspection and a loop that exhausted the Constant budget with authored offsets and a single controlled prior reservation.

Four fewer cases and 28 fewer test lines. The shared fixture gains a second declaring type for the scoped Constant regression, leaving the combined test/support diff at minus 11 lines.

Validation

  • Nine exact suites passed 305 tests, including compiled CLI and stdio MCP pointer acceptance, retained MCP Constant Evidence, and comparison behavior. npm run check:fast passed.
  • Eleven controls caught discarded parent diagnostics, implicit null on omission, excluded-field decoding, wrong Constant row ordering and selection, independent budget allocation, lost CLI extension validation or location, and broken machine or ReadyToRun admission.
  • The fixtures are authored PE bytes. The checks do not load an assembly or establish real runtime interoperability.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T09:16:10.496721Z 72dfff9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable defects were found in the test consolidation or fixture change.

Summary

This PR consolidates managed PE and field-constant tests without changing production readers.

  • Managed PE machine tests cover ARM and ReadyToRun rows together.
  • Field-constant tests follow selected fields through one metadata report.
  • The CLI range test uses the fixture's known header offset.
  • The field-budget test uses one controlled prior reservation.

No actionable issues or security concerns were identified. The changed fixture writes authored bytes; it does not load or run target assemblies. Tests were not run during this review. GitHub access required authentication, so whether this PR has been superseded could not be checked.

Reviews (1) · Last reviewed commit: "test(dotnet): consolidate managed PE and..." · Reviewed by Greptile

@morluto
morluto enabled auto-merge (squash) November 22, 2026 09:20
@morluto
morluto merged commit da6f898 into main Nov 22, 2026
37 checks passed
@morluto
morluto deleted the test/campaign-managed-metadata-witnesses branch November 22, 2026 09:31
Davmunrey added a commit to Davmunrey/rea that referenced this pull request Nov 22, 2026
Main split field and method decoding into decodeFieldRow and
decodeMethodRow with per-call contexts (morluto#13317) and rewrote the field
constant budget test (morluto#13365). Carry the parameter defaults onto that
shape: the inspection's shared Constant reader goes into parseFields and
parseMethods, the field context calls it with the Field table, and the
method context holds the Param default reader so both the full scan and
the selected-interval path report parameter_defaults. The budget test
now calls the shared reader with the Field table.
@morluto morluto added the area: domain Domain logic, errors, and pure functions label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: domain Domain logic, errors, and pure functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant