Repository navigation
Fix GitVersion configuration to generate clean release versions instead of pre-release versions - #8
Conversation
- Updated GitVersion.yml from v5.x to v6.x syntax (changed 'tag' to 'label') - Updated GitHub Actions workflow to use GitVersion v6.x instead of v5.x - Master branch now produces clean versions (2.0.1) instead of pre-release (2.0.1-alpha.1) - Feature branches will continue to get alpha pre-release labels Co-authored-by: larsbuch <11513991+larsbuch@users.noreply.github.com>
- Changed nuGetVersionV2 references to use semVer (v6.x doesn't have nuGetVersionV2) - Simplified fallback version configuration - Verified complete workflow: GitVersion produces 2.0.1 and packages are correctly named Co-authored-by: larsbuch <11513991+larsbuch@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
This PR fixes GitVersion configuration to generate clean release versions instead of pre-release versions for NuGet packages. The issue was caused by using outdated GitVersion v5.x syntax with v6.x configuration, resulting in packages being published with pre-release tags like 2.0.1-ci0028 instead of clean versions like 2.0.1.
- Updated GitVersion configuration from v5.x
tagproperty to v6.xlabelproperty - Upgraded GitHub Actions workflow to use GitVersion v6.x
- Updated output field references from
nuGetVersionV2tosemVerfor v6.x compatibility
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| GitVersion.yml | Updated branch configuration syntax from tag to label for GitVersion v6.x compatibility |
| .github/workflows/dotnet-cicd.yml | Upgraded GitVersion to v6.x and updated output field references |
| README.md | Added test change comment |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
|
||
| **TDS Implementation Status**: ✅ Complete - All requirements implemented and validated | ||
|
|
||
| # Test change |
There was a problem hiding this comment.
This test change appears to be unrelated to the GitVersion configuration fix and should be removed before merging to keep the commit focused on its stated purpose.
| # Test change |
…bernetes (feeds #36 Stage C and the #52 local harness) - #56: KubernetesOrchestrator.ExecuteAsync now runs a real Kubernetes exec (IKubernetes.NamespacedPodExecAsync, SPDY) instead of the NotImplementedException SimulateExecution placeholder; InputData goes to the process stdin (default command /app/plugin-executor, overridable via ExecutionConfiguration["command"]), ContainerExecutionResult carries real exit code/stdout/stderr/duration, and ContainerExecutionRequest.Timeout kills the exec on deadline (linked CTS) and reports a failed result; caller cancellation still propagates as OCE - #57: CreateContainerAsync treats Succeeded as terminal (returns Stopped instead of a Ready-timeout for batch-style plugin pods), fails fast with the kubelet reason on Failed phase / Pending+Status.Reason / container waiting reasons (CreateContainerError, ImagePullBackOff, ...) / non-zero terminated exit codes; ContainerSpec gains Command/Args entrypoint overrides, ContainerSecurity gains RunAsUser; pod-ready polling configurable via PodReadyMaxAttempts/PollIntervalMs - K8s transport moved behind protected virtual wrappers (CreatePodAsync/ReadPodAsync/ DeletePodAsync/ListPodsAsync/ExecInPodAsync) as the fakeable seam for tests/harness - Tests: hermetic KubernetesOrchestratorTests (mocked NamespacedPodExecAsync + fake cluster) and live KubernetesLiveContractTests gated on CRPCF_K8S_LIVE_TESTS=1 for local k8s-testkit-style runs (#52) - Docs: CRPCF_DEPLOYMENT_GUIDE #8 documents the fixed Kubernetes backend contract, image requirements/per-plugin security overrides, and the #56/#57 minimum version (#36); CHANGELOG updated Co-authored-by: larsbuch <larsbuch@users.noreply.github.com>
…bernetes (feeds #36 Stage C and the #52 local harness) - #56: KubernetesOrchestrator.ExecuteAsync now runs a real Kubernetes exec (IKubernetes.NamespacedPodExecAsync, SPDY) instead of the NotImplementedException SimulateExecution placeholder; InputData goes to the process stdin (default command /app/plugin-executor, overridable via ExecutionConfiguration["command"]), ContainerExecutionResult carries real exit code/stdout/stderr/duration, and ContainerExecutionRequest.Timeout kills the exec on deadline (linked CTS) and reports a failed result; caller cancellation still propagates as OCE - #57: CreateContainerAsync treats Succeeded as terminal (returns Stopped instead of a Ready-timeout for batch-style plugin pods), fails fast with the kubelet reason on Failed phase / Pending+Status.Reason / container waiting reasons (CreateContainerError, ImagePullBackOff, ...) / non-zero terminated exit codes; ContainerSpec gains Command/Args entrypoint overrides, ContainerSecurity gains RunAsUser; pod-ready polling configurable via PodReadyMaxAttempts/PollIntervalMs - K8s transport moved behind protected virtual wrappers (CreatePodAsync/ReadPodAsync/ DeletePodAsync/ListPodsAsync/ExecInPodAsync) as the fakeable seam for tests/harness - Tests: hermetic KubernetesOrchestratorTests (mocked NamespacedPodExecAsync + fake cluster) and live KubernetesLiveContractTests gated on CRPCF_K8S_LIVE_TESTS=1 for local k8s-testkit-style runs (#52) - Docs: CRPCF_DEPLOYMENT_GUIDE #8 documents the fixed Kubernetes backend contract, image requirements/per-plugin security overrides, and the #56/#57 minimum version (#36); CHANGELOG updated Co-authored-by: larsbuch <larsbuch@users.noreply.github.com>
…bernetes (feeds #36 Stage C and the #52 local harness) - #56: KubernetesOrchestrator.ExecuteAsync now runs a real Kubernetes exec (IKubernetes.NamespacedPodExecAsync, SPDY) instead of the NotImplementedException SimulateExecution placeholder; InputData goes to the process stdin (default command /app/plugin-executor, overridable via ExecutionConfiguration["command"]), ContainerExecutionResult carries real exit code/stdout/stderr/duration, and ContainerExecutionRequest.Timeout kills the exec on deadline (linked CTS) and reports a failed result; caller cancellation still propagates as OCE - #57: CreateContainerAsync treats Succeeded as terminal (returns Stopped instead of a Ready-timeout for batch-style plugin pods), fails fast with the kubelet reason on Failed phase / Pending+Status.Reason / container waiting reasons (CreateContainerError, ImagePullBackOff, ...) / non-zero terminated exit codes; ContainerSpec gains Command/Args entrypoint overrides, ContainerSecurity gains RunAsUser; pod-ready polling configurable via PodReadyMaxAttempts/PollIntervalMs - K8s transport moved behind protected virtual wrappers (CreatePodAsync/ReadPodAsync/ DeletePodAsync/ListPodsAsync/ExecInPodAsync) as the fakeable seam for tests/harness - Tests: hermetic KubernetesOrchestratorTests (mocked NamespacedPodExecAsync + fake cluster) and live KubernetesLiveContractTests gated on CRPCF_K8S_LIVE_TESTS=1 for local k8s-testkit-style runs (#52) - Docs: CRPCF_DEPLOYMENT_GUIDE #8 documents the fixed Kubernetes backend contract, image requirements/per-plugin security overrides, and the #56/#57 minimum version (#36); CHANGELOG updated Co-authored-by: larsbuch <larsbuch@users.noreply.github.com>
Problem
The NuGet packages were being published with pre-release versions like
2.0.1-ci0028and2.0.1-alpha.1instead of clean release versions like2.0.1and2.0.2. This caused packages to not be listed correctly in NuGet feeds and prevented proper semantic versioning.Root Cause
The issue was caused by two configuration problems:
GitVersion.ymlfile was using v5.x syntax with thetagproperty, which is incompatible with GitVersion v6.xChanges Made
1. Updated GitVersion Configuration (
GitVersion.yml)tagproperty tolabelfor GitVersion v6.x compatibility2. Updated GitHub Actions Workflow (
.github/workflows/dotnet-cicd.yml)versionSpec: '6.x')nuGetVersionV2tosemVer(v6.x compatibility)Results
Before:
{ "SemVer": "2.0.1-alpha.1", "NuGetVersion": "2.0.1-alpha0001" }After:
{ "SemVer": "2.0.1", "FullSemVer": "2.0.1" }Verification
Tested complete CI/CD workflow simulation:
2.0.12.0.1DevelApp.RuntimePluggableClassFactory.2.0.1.nupkgDevelApp.RuntimePluggableClassFactory.Interface.2.0.1.nupkgExpected Behavior
When merged to master:
2.0.1,2.0.2, etc.2.1.0-alpha.12.0.2-beta.1This ensures proper semantic versioning and correct package discovery in NuGet.org.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.