Skip to content

V1.1.0/container version tag - #4

Open
gimlichael wants to merge 24 commits into
mainfrom
v1.1.0/container-version-tag
Open

gimlichael wants to merge 24 commits into
mainfrom
v1.1.0/container-version-tag

Conversation

@gimlichael

Copy link
Copy Markdown
Member

This pull request refactors the native multi-framework views generator to use convention-based discovery and modular helpers, expands Pester unit and integration test coverage, and updates documentation and release notes for v1.1.0.

Framework-view conventions and metadata:

  • Extract convention discovery, metadata caching, and cross-target project reference recovery into dedicated modules so the main generator script stays focused and testable.
  • Replace explicit framework-views settings files with .docfx/docfx.json and .bot/docfx defaults, metadata.dest-derived API roots, and MSBuild-evaluated target framework precedence.

Test coverage and fixtures:

  • Add Pester unit tests covering framework-view conventions and DocFX metadata helpers.
  • Align the integration and Cuemon test fixtures with the convention-based configuration and updated build script parameters.

Documentation and release notes:

  • Document the .docfx/docfx.json and .bot/docfx conventions, discovered framework precedence, and updated test suite instructions across repository and component guides.
  • Record the 1.1.0 release notes in the changelog.

gimlichael and others added 5 commits November 25, 2026 18:08
Separate convention discovery, metadata caching, and cross-target reference recovery into dedicated modules so Build-DocfxFrameworkViews.ps1 stays focused and testable.
Add Pester unit tests for DocfxMetadata and FrameworkViewConventions and align the integration and Cuemon fixtures with the convention-based configuration.
Document .docfx/docfx.json and .bot/docfx conventions, discovered framework precedence, and updated test suite instructions.
Record the 1.1.0 release notes for native multi-framework views generation, ms-style template updates, and builder image changes.
@gimlichael gimlichael self-assigned this Nov 25, 2026
@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Confidence Score: 4/5 · The registry-port promotion bug remains blocking; no new actionable issues were found.RetriggerView in GreptileConfidence Score: 4/5

[High impact] The PR changes both framework-view generation and the production builder-image release path.

The registry-port promotion bug remains blocking; no new actionable issues were found.

FindingsFix All in CodexFindings

  1. P1 Registry ports break promotion ▶
Fix with agent prompt
### Issue 1
tools/DocfxImage.psm1:undefined-401
`Test-DocfxPromotionPreflight` splits each image reference at the first colon. For a valid tag such as `localhost:5000/team/docfx:2-v1.1.0`, it saves `localhost` as the repository. `Publish-DocfxOciArchive` then uploads the tags but tries to download `localhost@<digest>` for its final check. Promotion fails after the registry writes, even when every upload succeeded. Remove only the final tag suffix when finding the repository.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

This PR adds convention-based framework views and a build-once container release flow.

  • Framework-view builds discover project targets and create matching views.
  • Builder images gain engine-version tags and a checked OCI archive build path.
  • Tagged releases assemble checked images and promote them without rebuilding.

No new actionable issues were found in the changes since the previous review. The earlier missing-reference cache issue is fixed: the generator rejects a retry that still reports missing references.

Review was static; test suites were not run.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Native AMD64 and ARM64 builds] --> B[Validate exported images]
  B --> C[Check archive hashes and sizes]
  C --> D[Assemble multi-platform image]
  D --> E[Draft release with split assets]
  E --> F[Human publishes release]
  F --> G[Restore and verify assets]
  G --> H[Promote exact image to Docker Hub]
Loading

Reviews (4) · Last reviewed commit: "🐛 fix linux bind-mount cleanup in conta..." · Reviewed by Greptile

Move metadata caching and reuse helpers from Build-DocfxFrameworkViews.ps1 into DocfxMetadata.ps1 so they can be unit tested independently.
Add Pester unit tests for Build-DocfxFrameworkViews, expand DocfxMetadata test coverage, and update the integration test scripts.
Update framework-views and test suite READMEs to reflect the expanded Pester unit tests and metadata helper changes.
Support independent Codebelt engine versioning alongside the DocFX CLI version so releases emit engine-qualified tags, enforce Semantic Versioning and preflight tag-conflict checks, and embed OCI provenance labels.
Cover local builds, convenience and engine-qualified tag generation, Semantic Versioning and Docker repository validation, and publish preflight and manifest/label verification.
Explain the dual-dimension versioning contract, consumer control trade-offs, OCI metadata labels, and updated local test and release publishing commands.
Record the new engine-aware Docker image versioning, OCI metadata labels, and builder script test coverage under the 1.1.0 release notes.
Exclude transient OCI archives, release staging directories, and coverage reports from Git while restricting the Docker build context to Dockerfile, templates, and framework-views.
Introduce shared PowerShell and .NET 10 OCI artifact tooling for build-once export, SBOM and SLSA provenance verification, multi-platform index assembly, and official registry direct-publish safeguards.
Add unit, OCI contract, release-delivery, and native container verification suites alongside a unified Pester 5 runner enforcing 100% PowerShell code coverage.
Implement the PR quality gate, reusable native AMD64/ARM64 container validation, tag-triggered draft release assembly, and release-approved Docker Hub promotion workflows.
Document repository engineering standards, GitHub Actions policies, build-once delivery lifecycle rules, and .NET 10 tooling requirements.
Document local -BuildOnly OCI verification, the four-workflow release and promotion lifecycle, recovery procedures, and manual repository administration requirements.
Record the build-once CI/CD workflows, shared PowerShell and .NET 10 delivery tooling, repository guidance, and expanded test coverage under the 1.1.0 release notes.
Comment thread tools/DocfxImage.psm1
throw 'Promotion destination tags must be unique.'
}

$repos = @($Tags | ForEach-Object { ($_ -split ':', 2)[0] } | Select-Object -Unique)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Registry ports break promotion

Test-DocfxPromotionPreflight splits each image reference at the first colon. For a valid tag such as localhost:5000/team/docfx:2-v1.1.0, it saves localhost as the repository. Publish-DocfxOciArchive then uploads the tags but tries to download localhost@<digest> for its final check. Promotion fails after the registry writes, even when every upload succeeded. Remove only the final tag suffix when finding the repository.

Knowledge Base Used: Image publishing automation

Prompt To Fix With AI
This is a comment left during a code review.
Path: tools/DocfxImage.psm1
Line: 401

Comment:
**Registry ports break promotion**

`Test-DocfxPromotionPreflight` splits each image reference at the first colon. For a valid tag such as `localhost:5000/team/docfx:2-v1.1.0`, it saves `localhost` as the repository. `Publish-DocfxOciArchive` then uploads the tags but tries to download `localhost@<digest>` for its final check. Promotion fails after the registry writes, even when every upload succeeded. Remove only the final tag suffix when finding the repository.

**Knowledge Base Used:** [Image publishing automation](https://app.greptile.com/-/switch-tenant?tenant=geekle&next=%2Fcustom-context%2Fknowledge-base%2Fcodebeltnet%2Fdocfx%2F-%2Fdocs%2Fimage-publishing-automation.md)

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Fix in Codex

Use StrictMode-safe hashtable lookups for optional DocFX config keys and strip ANSI color sequences when parsing DocFX metadata diagnostics in CI.
Verify StrictMode execution with omitted optional keys, colorized metadata warning recovery, and colorized metadata error detection.
Ensure Invoke-Assemble validates each native OCI archive SHA-256 and byte size against its native verification record before merging.
Add Pester test cases confirming assembly rejects mismatched ArchiveSha256 and OciArchiveBytes values without invoking merge.
Restore host user ownership on Linux bind-mounted workspace outputs generated by the root container user before removing the temporary directory.
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.

2 participants