github oocx/tfplan2md v1.52.0

50 minutes ago

Release Notes: .NET 11 Migration Cleanup

No change to tfplan2md output or behavior. This cleanup finishes the move to the .NET 11 SDK and C# 15 in tooling, tests and docs.

🛠️ Maintenance

  • Updated Microsoft.CodeAnalysis.NetAnalyzers to 11.0.100.
  • Updated dotnet-reportgenerator-globaltool to 5.6.2 (ships net11.0) and removed the unused dotnet-coverage tool. Husky stays on roll-forward and is documented as an exception.
  • Deleted the stale src/build-meziantou-baseline.txt build log.
  • The Docker markdownlint tests now lint real input (the --stdin argument was previously ignored, so 0 files were linted) and check all test plans in one container.
  • scripts/update-test-snapshots.sh discovers snapshot test classes itself and fails when no snapshot is regenerated.

📚 Docs

  • README, architecture and development docs now describe .NET 11 and C# 15.
  • Updated docs/testing-strategy.md for the batched markdownlint tests.

Release Notes: Complete Attribute Rendering

Resource-specific renderers used to drop attributes they did not know about, and several reports showed long identifiers or truncated lists. This release makes every attribute of a changed resource appear in the report, in the table or in the Large values section, and tightens how long values and unchanged child rows are shown.

✨ Features

  • Nothing is silently dropped (#695): Resource-specific renderers (AzureRM, Azure DevOps, AzApi) now build on a shared default renderer. Attributes a custom renderer does not handle, and large or multi-line values, are rendered instead of omitted. A completeness test guards this invariant across the demo plans.
  • Long Azure DevOps descriptors (#667): vssgp.*, aad.* and svc.* descriptors longer than 100 characters resolve via --principal-mapping, regardless of the large-value threshold. In attribute tables they show the short display value (for example 👥 Platform Readers); Large values keeps the display value together with the full descriptor. Unmapped long values stay complete in Large values. Static svc.* keys in azdoUsers work. Graph API lookups remain out of scope.
  • Full NSG address lists (#666): azurerm_network_security_group rules show every entry of source_address_prefixes and destination_address_prefixes (CIDRs, service tags, *) with semantic formatting, never "N items" or a truncated list.
  • Unchanged child rows (#679): Inline parent-child tables hide unchanged rows on updates. When all rows are unchanged, the heading stays with a one-line note such as _5 routes unchanged._. --show-unchanged-values shows all rows.

🐛 Fixes

  • AzApi body rendering for unchanged and replaced resources.
  • Update summary lines no longer contain an empty — | segment when a resource has no context attributes.

📚 Docs

  • Updated docs/features.md, docs/architecture.md and added ADR-013; specification, design and UAT plan are under docs/features/163-complete-attribute-rendering/.

▶️ Getting started

No new CLI options are required:

terraform show -json plan.tfplan | docker run -i oocx/tfplan2md:latest > plan.md

🔗 Commits

  • feat: add DefaultResourceRenderer hooks and formatter-aware large rendering
  • feat: resolve long AzDO descriptors and large values regardless of threshold
  • feat: compose AzureRM renderers onto DefaultResourceRenderer and render full NSG address lists
  • feat: migrate AzDO and AzApi renderers and fix remaining child extractors
  • feat: show unchanged child count note when parent-child table rows are all hidden
  • feat: add completeness invariant and fix AzApi unchanged and replace body rendering
  • feat: resolve code review findings for complete attribute rendering
  • feat: show short display values for long identifiers in attribute tables
  • fix: omit empty separator in update summaries without context attributes

Cross-family review and workflow cost fixes

Internal workflow and tooling update (no shipped CLI or user-facing output changes):

  • Fixed the cross-family code review in scripts/code-review.sh: agy no longer receives a bare --print, read-only git, ls and cat commands are allowed in plan mode, and the diff is embedded in the prompt. A CLI usage error now exits 3 without a retry, and an absent CLI or transient failure exits 2. Added --self-test and --print-command, and the reviewer's token and duration figures are recorded.
  • scripts/agent-doctor.sh checks claude and gemini/agy and has --reviewer-smoke, which run-workflow runs before the first Developer attempt. scripts/workflow-gate.sh requires an open question for a same-family-fallback review. New scripts/test-review-tooling.sh covers this and runs in PR Validation.
  • Cut rework cost: UAT artifact freshness ignores src/tests/, uat_trigger_paths now includes Providers/, Platforms/ and snapshots, scripts/uat-run.sh has --check-only, state.json.lock is git-ignored, and scripts/wp-append.sh accepts --tokens and --duration.
  • scripts/update-test-snapshots.sh restores snapshots it does not regenerate, scripts/validate-snapshot-changes.sh now watches the real TUnit snapshot path (the CI check had been a no-op), and scripts/generate-release-screenshots.sh crops to the size limit.

Faster PR Validation and 160 review-tooling follow-ups

Internal workflow and CI update (no shipped CLI or user-facing output changes):

  • PR Validation now runs as parallel jobs (changes, checks, website, format, test-image, container-smoke, docker-tests, build-test and the native ARM64 job) instead of one sequential Validate PR job. The AMD64 test image is built once and shared as an artifact, and a shared .github/actions/dotnet-restore action adds the NuGet cache. build-test runs Category!=Docker and docker-tests runs Category=Docker, so every test still runs. dotnet test, the coverage enforcer and the demo use --no-build.
  • A change to pr-validation.yml or .github/actions/ runs the full validation. A .gitignore-only change does not.
  • New scripts/review-report.sh renders code-review.md (verdict, cost, markdownlint-clean prose) for code-review.sh and codex-review.sh, and scripts/review-diff.sh caps the diff embedded in the review prompt at 400 KB.
  • workflow-gate.sh release-notes (part of all) now fails when release-notes.md is missing, and PR Validation runs the same check for every PR. The workflow-tooling path list lives once in .agents/workflow.json.
  • Workflow-owned wording now says .NET 11.

Review verdict routing and 162 retrospective fixes

Internal workflow update (no shipped CLI or user-facing output changes):

  • scripts/code-review.sh and scripts/codex-review.sh retry an empty or unparseable reviewer verdict once, then exit 2 (fall back to another reviewer) and print the denied actions. Exit 1 now follows only a real REWORK verdict that was routed to the Developer. Previously an empty answer exited 1 with nothing routed and no report written.
  • Verdict extraction moved to scripts/review-extract.sh. It also accepts prose before the JSON and a repeated JSON object, both seen in live agy output.
  • The agy read-only allow-list adds git blame and grep, and the prompt steers the reviewer to its built-in read and search tools. The command denied in 162 could not be identified, so this makes denials rarer but is not proven to remove that cause.
  • scripts/review-report.sh escapes only < outside code, so > and & no longer show as HTML entities in code-review.md.
  • Requirements Engineer guidance: search-based success criteria must be case-insensitive and cover badges, URLs, hyphenated forms and table cells. Release Manager guidance: CI reruns and flaky tests are logged in Problems.
  • docs/workflow.md and the run-workflow exit-code table now state that a missing verdict exits 2.

Don't miss a new tfplan2md release

NewReleases is sending notifications on new releases.