Repository navigation
V0.2.0/container isolation - #3
Merged
Merged
Conversation
csrun previously ran only natively on Windows PowerShell. This adds a Dockerfile and a stdin entry point so a manifest piped to docker run executes the bundled engine inside a Linux container with the selected .NET SDKs preinstalled.
Publishing SDK environment tags needs repeatable, checked Docker operations. The BuildAndPublish module resolves exact SDK inputs to environment tags, builds the image from the latest released engine, runs the container suite, and only publishes when explicitly requested.
The container image must prove its SDK inventories, stdin execution, xUnit discovery, exit codes, and hardened runtime behavior. These Docker tests execute the packaged engine rather than relying on the native Windows suite.
Image publication metadata and other local build outputs are written under artifacts/, which should not be committed accidentally.
Container images must be validated before release, alongside the native Windows tests. The shared container workflow runs on Ubuntu AMD64 and ARM64 for each SDK environment, and the release job waits for it before creating a draft.
The container image changes how csrun is run and published, so the README documents disposable container execution, isolation limits, and the SDK environment publishing flow. The validation document records the local checks and their limits.
The 0.2.0 release adds optional container execution and SDK environment publishing while keeping the standalone engine and manifest schema unchanged. The changelog records that release scope for users.
[High impact] The latest changes appear safe to merge; both previous findings are addressed. SummaryAdds disposable Linux container execution and a build, test, and publishing flow for exact SDK environments.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
Candidate[Candidate engine] --> Native[Native AMD64 and ARM64 tests]
Native --> OCI[Tested OCI content]
OCI --> Draft[Draft GitHub Release]
Draft --> Approval[Approved publication]
Approval --> Verify[Check released engine and saved results]
Verify --> Hub[Promote unchanged content to Docker Hub]
Reviews (3) · Last reviewed commit: "📝 document native skopeo requirement fo..." · Reviewed by Greptile |
Local and CI image builds now export one OCI archive per platform with SBOM and maximum provenance, then load that exact artifact for native container tests. The module refuses foreign CPUs instead of emulating, supports independent Docker contexts and builders, and pins the engine URL through a build argument so forks can package their own reviewed engine.
The container workflow now builds and tests each SDK variant natively on fixed Ubuntu 26.04 AMD64 and ARM64 runners. Actionlint is told these are GitHub-hosted labels, and a quality job fails when either architecture or any SDK variant does not succeed.
Pull request validation moves from the floating windows-latest label to windows-2025 and uses the published upload-artifact tag. A final quality job requires the Windows and container results to succeed, so skipped or cancelled dependencies cannot pass the gate.
Release preparation now assembles the natively tested OCI archives into a checksummed draft release. A separate deployment workflow resolves the published latest engine once, verifies it matches the tested image, and promotes the existing content to Docker Hub without rebuilding.
Repository policy now requires fixed Ubuntu 26.04 AMD64 and ARM64 labels for every Linux job, forbids floating or older Ubuntu labels, and keeps Windows validation on windows-2025 until a runner upgrade is reviewed.
The README and container validation record now describe the export-once native test flow, the draft-release and deployment stages, manual multi-context builds, and the remaining limits that require an approved push to verify.
Remote utility Docker daemons cannot bind-mount client archives or registry credentials, so builds that need the Skopeo utility container failed late. Check the transport before any metadata download or build and reject SSH and TCP daemons unless Skopeo is installed locally.
The release restore looked up the workflow run by its latest run id, which can differ from the attempt that produced the saved release. Query the recorded attempt so recovery validates the run that actually published the artifact.
The README now states that remote Docker daemons over SSH or TCP need Skopeo installed on the client, since the utility container cannot use client archives or credentials.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces optional disposable Linux container execution for csrun, so a manifest piped to Docker runs the same engine inside a container with the selected .NET SDKs preinstalled. It also adds a self-contained module for building, testing, and deliberately publishing exact SDK environment images.
Container image:
SDK environment publishing:
Validation coverage:
Continuous integration:
Documentation:
Repository hygiene:
artifacts/are ignored