Repository navigation
test: the rest of the 5.x port: convention tests, nightly.yml, the SBOMs and the skills - #154
Merged
Merged
Conversation
This was referenced Nov 16, 2026
… an SBOM per package Ported from EFCore.ComplexIndexes (#35). nightly.yml calls dotnet.yml on a schedule, so that an input that changes without a diff (a container image, a package on nuget.org, the SDK's patch) is seen within a day and not in the middle of an unrelated pull request. Its report job needs every other job, runs whatever they did, and opens an issue or comments on the open one for every result but success. release.yml's verify job writes one CycloneDX SBOM per package with the tool .config/dotnet-tools.json pins, the artifact carries them, and the release job attaches them to the GitHub release. The step's output folder is a variable so that a test can run the step's own lines into a folder of its own. CycloneDX 6.3.1 targets net8.0 to net10.0 and rolls forward by its own runtime configuration: it was run on a host that has the .NET 11 runtime alone. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…-docs, for this repository Ported from EFCore.ComplexIndexes (#35), each rewritten against what is true here: the review asks whether a change keeps the ten decisions of the core and names this repository's oracles; verify-the-guard breaks a workflow, a document or a package in a copy outside the checkout; plain-docs names the tests that hold a page here, where every csharp block is compiled. Nothing about .targets or the design-time registration is carried over. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Ported from EFCore.ComplexIndexes (#35), each adapted to this repository: one line and one changelog, the version in Directory.Build.props, the heading '## [x.y.z] — yyyy-mm-dd' with '— unreleased' for the version being prepared, release.yml's four jobs, two packages and a third to come. Beside PackagingConventionTests, in the kernel's test project: ChangelogConsistencyTests, WorkflowGateConventionTests, CiInputConventionTests, ReleaseWiringConventionTests and SecurityPolicyConsistencyTests, with ReleaseVersion, WorkflowFile and Bash in Harness/. In the PostgreSQL test project, beside the other documentation tests, since they read the types of both packages: DocumentationApiTests and ClaudeMdConsistencyTests, which reads the skills as well. A rule about what a step does is held by running the step: the tag check, the release's notes, the SBOM step, dotnet.yml's gate and the nightly report are taken out of their workflow and run with bash. Each guard was shown to fail with its subject broken in a copy outside the checkout. The guards whose subject does not exist here yet are in #152; MigrationHarness is not ported, and CLAUDE.md says why. CONTRIBUTING.md loses "What is not here yet"; CLAUDE.md says what holds the release path and the documents now. Co-Authored-By: Claude Fable 5.2 <[email protected]>
An independent analysis of #154 broke subjects the guards did not notice. Each was reproduced on 5f212ce before anything changed. - WorkflowFile found a job with a regular expression that wanted the key's line to end at the colon. A job with a comment behind its key, or its key in quotes, was folded into the job before it, and every rule passed with that lane left out of the gate. Each line at two spaces under jobs: is a job's key now; a shape the reader cannot read fails the load. - The changelog's heading was trimmed before it was matched; release.yml's grep reads the line to its end. The heading is read whole, and the step is handed the repository's changelog with the date put in. - Nothing held where the SBOM steps stand. They are held in order, and the SBOMs are written before the pack checks, so that nothing is written into dist/ after it was checked. - ClaudeMdConsistencyTests did not read commands in code blocks, test class names, filters or members of test types. It does, and CLAUDE.md says what is held and what is not. - The SBOM tests read a project file's XML; a build-only reference from Directory.Build.props was listed unnoticed. They read MSBuild's evaluation, and the SBOM itself is asked. Also: a test reads what git tracks and not the folder; a step is run with pipefail only where a runner gives it; no job says continue-on-error; every action is used at a commit; no workflow but release.yml writes anything but the nightly's issue; a SECURITY.md row is found whatever its mark. Co-Authored-By: Claude Fable 5.2 <[email protected]>
CaffeinatedCoder
force-pushed
the
chore/35-port-conventions
branch
from
November 16, 2026 20:31
5f212ce to
b0e5e0d
Compare
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.
Closes #35
Problem
release.ymland the pack checks came over from CaffeinatedCoder/EFCore.ComplexIndexes with #124. The rest of what holds that repository together did not: CONTRIBUTING.md said under "What is not here yet" that the changelog's form, the CI gate and the release wiring were held by review. A lane left out of the gate'sneeds, anid-tokenhanded toverify, apublishcondition turned into an exclusion, a version with no changelog section, a README naming a method that was renamed: each of them built and passed.Change
Four commits, in the order below. One pull request and not three: the guards of the nightly and of the SBOMs need the helpers of the other guards, the closing edits need all of it, a pull request whose base is not
mainruns neitherdotnet.ymlnorpr-hygiene.yml, and #137 was closed by GitHub when its base branch was deleted at the merge. The first two commits change nothing a test reads but one changelog line; both suites were run on a copy of the second, where everything passes but the Source Link check, which needs the clone'sorigin. The branch is rebased ontomainat bae199d, with #158 and #146 in it.1.
nightly.ymland the SBOMsnightly.ymlcallsdotnet.ymlevery night. Itsreportjob needs every other job, runsif: always(), and opens an issue or comments on the open one for every result but success.release.yml:verifygets the step "Generate SBOMs" (one CycloneDX SBOM per project undersrc/, with the tool.config/dotnet-tools.jsonpins) between "Pack" and "Pack checks", so that nothing is written intodist/after it was checked. The artifact carriesdist/*.cdx.json, andreleasegets "Attach the SBOMs". Nothing else in that file changed but the comment that said the SBOMs were still to come. The step's output folder is a variable (DIST: dist), so that a test can run the step's own lines into a folder of its own.net8.0tonet10.0. It rolls forward through its own runtime configuration: run on a host with the .NET 11 runtime alone, it wrote both SBOMs. The manifest keepsrollForward: false, as in 5.x.CHANGELOG.md: one line under Added.2. The skills, under
.claude/skills, rewritten against this repository:migration-safety-reviewasks whether a change keeps the ten decisions of the core and names the oracles that exist here;verify-the-guardbreaks a workflow, a document or a package in a copy outside the checkout;plain-docsnames the tests that hold a page here. Nothing about.targetsor the design-time registration came over.3. The convention tests
ChangelogConsistencyTestsConventions/##heading is## [x.y.z] — yyyy-mm-ddto its line's last character, as the release step'sgrepreads it;— unreleasedfor the shipped version alone; the terse form; absolute links;### Changed answersin a minor only; no README with a version sectionWorkflowGateConventionTestsdotnet.yml'sCIjob: its name,if: always(), every lane inneeds, and its script run with a runner's results; no job of any workflow sayscontinue-on-errorCiInputConventionTestsglobal.json(feature band,latestPatch, no prerelease); every job that builds takes its SDK from it; every action is used at a commit, with its version in a comment; the nightly's schedule, its call ofdotnet.yml, and its report, run with aghthat writes its calls downReleaseWiringConventionTestspublish's token andrelease's contents, and no other workflow writes anything but the nightly's issue;publishneeds the whole of CI; it names the events it runs for; the tag check, the notes and the SBOM step, each run, the notes on the repository's own changelog as well; where the SBOM steps stand; the SBOMs leave out the references MSBuild evaluates as build-only, and nothing else; Latest; the pack checks' filter; one publishing pathSecurityPolicyConsistencyTestsWorkflowFileTestsDocumentationApiTestsDocumentation/Type.Memberin a page's prose exists; a package's README names no call only another provider's package hasClaudeMdConsistencyTests--filternames; and a name written alone occurs in a C# or project fileWith them:
ReleaseVersionand its tests,WorkflowFile(which also takes a step'srun:block out of a workflow) andBashinHarness/.RepositoryLayout.Files()is what a test that reads the repository reads: the files git tracks, so a file that was never added and another worktree's copy answer nothing.Two classes stand in the PostgreSQL test project and not beside
PackagingConventionTests: they read the types of both packages, and the kernel's test project does not reference the PostgreSQL package.DocumentationLinkTestsandDocumentationSampleTestsare there for the same reason.Where a rule is about what a step does, the test runs the step.
ReleaseWiringConventionTeststakes the lines of "The tag is the package version", "Release notes from the changelog" and "Generate SBOMs" out ofrelease.ymland runs them as a runner does: withbash --noprofile --norc -eo pipefailwhere the step, its job or its workflow saysshell: bash, and withbash -ewhere none does. With #158 onmainthat ispipefailfor the gate's script too. In 5.x a lane ofdotnet.ymlgenerated the SBOMs on every pull request; here the test does, sincedotnet.ymlwas not to be touched. It restores the tool from nuget.org the first time, and is inconclusive without a network unlessCIis set.4. Five holes, closed
An independent analysis of the first three commits broke 16 subjects and saw every guard fail, and found five ways a broken subject stayed green. Each was reproduced on that head (5f212ce) before anything changed: every seed below passed there.
WorkflowFilefound a job with a pattern that wanted the line to end at the colon, soextra: # a lane added laterand"extra":were no jobs, and a lane left out of the gate passed. A job is now every line at two spaces underjobs:; one written on its key's line, and any line there that is no key, fails the test that loads the file.release.yml'sgrepdoes not. A space behind the heading, or CRLF line ends, passed here and stopped the tag. The tests read the line to its last character, and one test hands the release step the repository's own changelog with the date put in.dist/after the pack checks had read it. The order is held inverifyand inrelease, and the step moved up, which is the one change torelease.ymlbeyond the first commit's.--filter's names and members of test types were not checked, and the file list was the folder's and not git's, so a contributor's untracked skill failed two tests CI never fails. All of that is read now. A misspelt class name that no longer ends inTestsneeded more than a rule about test classes: a name written alone has to occur in a C# or project file, with three names listed as another library's.Directory.Build.props. The test read the project files, so a reference every project gets from the props reached the SBOMs unnoticed. References are read as MSBuild evaluates a project, and the SBOM the step writes is asked whether it lists one.Smaller, from the same analysis: no job says
continue-on-error; every action is used at a commit; no workflow butrelease.ymlwrites anything but the nightly's issue; a SECURITY.md row is read with✅or:white_check_mark:; a step is run withpipefailonly where a runner gives it; the skillverify-the-guardcopies a commit withgit archiveand not the folder, which holds build outputs and inner worktrees.Where this differs from the analysis:
continue-on-error. GitHub's documentation says it "prevents a workflow run from failing when a job fails". It does not say whatneeds.<job>.resultreads for such a lane, and I did not measure it, so the guard's message claims the documented part alone..github/workflows/dotnet.ymlis not changed, and needs no change. A lane that is added passes these tests when it is in the gate'sneeds, sets .NET up withglobal-json-file: global.json, uses its actions at a commit with the version in a comment, says nocontinue-on-erroron the job, asks for no write permission, and is written as a block under its key. Put into a copy of this branch, thedotnet.ymlof #157 (9dd7525, with its SQL Server lane) passes all 47 tests of the four workflow classes.CLAUDE.md and CONTRIBUTING.md: "What is not here yet" is gone; CLAUDE.md's sections on the release, the documentation and the 5.x port say what is held now.
Not ported
MigrationHarness.Contexts,LiveDatabaseandAssertMigratesTocover what it did that has a subject here; the comparison is in a comment on Port the convention tests, MigrationHarness, release workflow and skills #35.### Changed answersanddocs/upgrading.md(no minor yet), the package-validation baseline (nothing published), the build-only reference checks (no such reference), package release notes (no pack target). Two are decisions and not dates: a length for a changelog line (CONTRIBUTING.md states none, and the introduction of11.0.0-preview.1has 68 words against 5.x's 40), and changelogs per package.ClaudeMdConsistencyTests: the differ it counts does not exist here.Found on the way
release.ymlstops at the changelog's— unreleasedheading, which is the state ofmainfrom the commit that opens a version to the one that dates it. Measured by running the step. Not changed here.plain-docstable replaces ("refus…" 27 times, "scaffold…" 16). Left as they are.pipefail, is not taken here.WorkflowFile.Pipefailsays which shell a step runs with; a comment on A convention test holds every piped run: script of a workflow to pipefail #160 lists what that test still needs.Tests
dotnet build CodoMetis.EFCore.SchemaKit.slnx -c Release: no warning. Without the integration category, in Release, on b0e5e0d: 723 passed inCodoMetis.EFCore.SchemaKit.Tests, 176 inCodoMetis.EFCore.SchemaKit.PostgreSQL.Tests. The integration tests were not run locally: no server was set. Neither workflow was run:nightly.ymlfirst runs onmain, andrelease.ymlis not mine to trigger.Each guard, shown to fail
Each subject was broken in a copy of the repository outside the checkout, one break at a time, and the guard's class was run: 63 breaks that need no build, and three that change the source and rebuild. All 66 were run again on b0e5e0d, the head after the rebase, and every message below is in that run's output. Where a row lists several breaks, each was a run of its own, and the messages are in the same order.
ChangelogConsistencyTestsDirectory.Build.propsset to11.0.0-preview.211.0.0above the preview10.9.0above the preview##heading is a version heading## Unreleasedabove the first section11.0.0-preview.0 — unreleasedbelow## 11.0.0-preview.1in the PostgreSQL README### Notes### Changed answersin a minor onlyWorkflowGateConventionTestsname: CI→name: Gatecijob no longer reports as 'CI'."if: always()removedcijob's condition is '(none)', not always()."needsspikestaken outcijob's needs."!= "success"→== "failure"needsCiInputConventionTestsglobal.jsonlatestFeature;allowPrerelease: truedotnet-version: 11.0.xin the probes laneif: always()removed; a job the report does not needif: always()"; "other is not in thereportjob's needs"!= "success"→== "failure"ReleaseWiringConventionTestsrelease.yml→publish.ymlenvironment: productionpublishjob does not run in the 'nuget' environment."publishmints a tokenid-token: writeinverifypublishmay"contents: writeinpublishverifywithoutneeds: ci;verifywithif: always()publishdoes not depend on ci throughneeds"; "verify has a status function in itsif:"publishnames its eventsbranches: [ main ]on push;dry_rundefaulting to falsev*alone"; "does not default to true"exit 1removed from the stepblob/mainremovedblob/main/…whereblob/v11.0.0/…is expected--latest=falsetaken off a previewClassName~PackagingTestsdist/*.cdx.jsonoff the artifactverifydoes not hold dist/*.cdx.json"PrivateAssets="all"reference with no filter; a filter for Npgsql EF--include-project-references; without--set-versionscripts/publish.sh; aNUGET_API_KEYsecret; a push in the nightlynuget pushis run by: nightly.yml: report; release.yml: publish."SecurityPolicyConsistencyTests11.0.x ✅row today; the sentence reworded;11.0.0dated with the policy as it is;11.1.0dated with the table at11.0.xClaudeMdConsistencyTestsplain-docsremovedHarness/TestKit.csrenamed;design/schemakit-api.mdmoved;Scaffolded/renamed; the smoke test'srun.shrenamedwaivers.txtrenamedLegacyFormats.csRequireRewrittenrenamed in the source and the tests, rebuiltDocumentationApiTestsSuppressBtreeGistInjectionrenamed in the source and the tests, rebuilt;Deferral.InitiallyDeferedin the guideDeclarePostgres(…)in the kernel's READMEReleaseVersionTestsTwo breaks did what the design says and are no failures of a guard:
needsremoved, the{}row still passes: the loop over the results refuses an emptyneedsas well. With both removed the row fails.release.ymlrenamed, every test ofReleaseWiringConventionTestsfails, and not the first one alone: each loads the file by that name.The five holes, each shown on its seed
The seeds are the analysis's, and two more of the same kind (a class and a type renamed in the source). The 19 that existed then were run on 5f212ce first: 18 passed there, which is the hole, and the untracked skill failed two tests. On b0e5e0d each fails for the reason its row gives, and the untracked skill passes.
dotnet.yml: a failing jobextra: # a lane added later, left out of the gate'sneeds; the same job as"extra":cijob's needs."nightly.yml: a jobother: # a second part, left out of the report'sneedsreportjob's needs, so its failures are reported by nobody."dotnet.yml:extra: { runs-on: ubuntu-latest, steps: [ { run: exit 1 } ] }dotnet.yml: "dotnet.yml: the jobextrahas its body behind its key" … "write the job as a block."## [11.0.0-preview.1] — unreleasedCHANGELOG.mdwith CRLF line endsverifyrun as:" … "Build, Pack, Collect packages, Upload packages, Generate SBOMs, Pack checks."releaserun as: Download packages, Attach the SBOMs, Create the release if it does not exist."WorkflowFile.RunTheStep, a member a test type does not haveDeclarationStoreTestzDeclarationStoreTestsrenamed in the source, the guides leftSchemaKitWiringConventionrenamed in the source, CLAUDE.md leftDirectory.Build.propsMicrosoft.SourceLink.GitHubwithPrivateAssets="all", for every projectcontinue-on-error: trueon the probes lane11.0.xrow marked:white_check_mark:in SECURITY.mdactions/checkout@v6inrelease.ymlowner/name@<40 hex digits> # vX.Y.Z." … "release.yml:88: actions/checkout@v6"contents: writefor the whole ofnightly.ymlcontents: writeon the test lane ofdotnet.yml🤖 Generated with Claude Code