Repository navigation
ci: pack on pull requests in the private pipeline too (#62) - #63
Merged
Merged
Conversation
dotnet-private.yml had no Validate Package step, and `ktsubuild ci` packs only inside a release, which a pull request never reaches. A private repository's PR that broke package validation went green, was auto-merged, and left main unreleasable: the gap #41 closed for dotnet.yml only. Add the same pull_request-only, pack-only step after the KtsuBuild step. Held repositories pack too; nothing is pushed or tagged. The script is a copy of dotnet.yml's, since a reusable workflow cannot read this repository's scripts, and dotnet-pr-pack.tests.ps1 now runs both copies and fails if they differ. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vfJW3u8Ga41rqFWd6Sy25
|
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.



Fixes #62
What was wrong
#57 added a Validate Package step to
dotnet.yml, so a PR that breaksdotnet packpackage validation fails instead of being auto-merged (#41).ci-shared.ymlsends private .NET repositories todotnet-private.yml, which had no such step. There, a PR runsktsubuild ci, and KtsuBuild packs only inside a release, which a PR ref never reaches. So a private repository's Dependabot PR that broke ApiCompat would build green, be merged, and leavemainunable to release.Change
dotnet-private.yml: a Validate Package step after Run KtsuBuild CI Pipeline in thebuildjob. It has the same gates as the public one (pull_requestonly, and not when the build was skipped) and the same script. That script packs the projects a release would, with--no-buildin Release, intoRUNNER_TEMP. Nothing is pushed or tagged.KTSU_RELEASE_HOLD=true) pack on PRs too. Validating a package publishes nothing. I checked thatktsubuild builddefaults to the Release configuration, ascidoes (KtsuBuild.Tool/Commands/GlobalOptions.cs), so the--no-buildpack finds its output.ktsu-dev/.githubat the right ref. So the private step holds a byte-for-byte copy ofdotnet.yml's script, and comments in both files point at each other.scripts/tests/dotnet-pr-pack.tests.ps1now runs every case against both pipelines. It checks placement (after the build step and in the same job, beforeReleasewhere there is one), gating, the "no publishing" rule, and the stub-dotnetpack behaviour. A new case fails if the two copies differ.docs/shared-ci.mdandCLAUDE.mddescribe the private step.As with #57, callers pick this up only once the
releasetag moves (#49).Tests
dotnet-pr-pack.tests.ps1: 11/11 pass.dotnet-private.ymlreverted tomain: 2 of 7 cases fail ("no Validate Package step" and "no step in both pipelines to compare").scripts/tests/*.tests.ps1passes locally underpwsh(14 files). Both workflows parse as YAML.Generated by Claude Code