Repository navigation
V1.1.0/container version tag - #4
gimlichael wants to merge 24 commits into
Conversation
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.
[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.
|
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.
| throw 'Promotion destination tags must be unique.' | ||
| } | ||
|
|
||
| $repos = @($Tags | ForEach-Object { ($_ -split ':', 2)[0] } | Select-Object -Unique) |
There was a problem hiding this 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
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.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.
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:
.docfx/docfx.jsonand.bot/docfxdefaults,metadata.dest-derived API roots, and MSBuild-evaluated target framework precedence.Test coverage and fixtures:
Documentation and release notes:
.docfx/docfx.jsonand.bot/docfxconventions, discovered framework precedence, and updated test suite instructions across repository and component guides.1.1.0release notes in the changelog.