Skip to content

Write downgrade report before publishing the RVT - #364

Merged
mahach666 merged 1 commit into
mainfrom
codex/downgrade-report-before-output
Dec 4, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/downgrade-report-before-output

Conversation

@mahach666

@mahach666 mahach666 commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Write the requested downgrade JSON report after verifying the staged RVT and before moving it to --output.
  • Preserve the report error exit code and remove the staged RVT when writing the report fails. Retrying with the same output path works after the report path is fixed.
  • Add regression coverage for a missing report directory and for the loss report from the successful retry.

Verification

  • Reproduced the failure on an Autodesk structural sample from Revit 2027 targeting 2023. The original CLI exited 1 and left the RVT without a report.

  • With the fix, the first run exited 1 with an empty output directory. After creating the report directory, the same command exited 0. The report listed 183 omitted record owners, the RVT bytes matched the original output and Revit 2023 opened the result.

  • Release build and full test suites passed on .NET 8 and .NET 10.

  • Rechecked the exact PR build with a missing report directory and with an existing report locked on Windows. Both attempts left the output unpublished, both retries succeeded, and the two outputs had the same SHA-256. Revit 2023 opened the retried output.

Follows up on #362.

@mahach666
mahach666 merged commit 5546404 into main Dec 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant