Repository navigation
docs: BadgeSmith is the badge standard for every opencode-dotnet repository - #911
Merged
Merged
Conversation
Collaborator
Author
|
Org-level test-data secret verified on the first
Before this push the badges read 23429 / 32209 passed and pointed at run 43756205528. The badge URLs sit behind CloudFront ( |
…sitory documentation.md (Consumer documentation) records the rule: a README shows one test-result badge per CI operating system and, per package a consumer installs, one nuget.org and one GitHub Packages badge, each with prerelease=true while its feed carries only prereleases; CI posts test counts from master pushes through BadgeSmith's pinned update-test-badge action and a failed post never fails CI; every badge URL is checked live before it is committed. The SDK is the reference implementation. ci.yml moves the badge-smith pin from d778400b to bc7ed07, the commit the latest successful production deployment of api.localstackfor.net runs.
Blind-Striker
force-pushed
the
docs/badgesmith-canon
branch
from
November 15, 2026 21:37
c2c3d75 to
16edf82
Compare
…/ reports dotnet test also writes merged/merged-*.trx reports that repeat module results; test-results/**/*.trx matched them, so the reporter's totals and the BadgeSmith counts posted from them were inflated (Linux 23,621 for 11,812 tests; Windows 32,497 for 16,250). test-results/*/*.trx matches only the per-module files directly under main/, service-elections/ and native-aot/.
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.
Rule
BadgeSmith (
api.localstackfor.net) is the badge standard for every opencode-dotnet repository.docs/engineering/documentation.md("Consumer documentation") gains one bullet:The canon names no secret and no commit;
.github/workflows/ci.yml's comments own the mechanics. This SDK is the reference implementation: the README badge row and package table, and the two BadgeSmith steps inci.yml(continue-on-error,always()with the master-push guard, the action's own exit 0 on a failed post).The SDK against the rule (checked live 2026-11-15)
badges/tests/linux/opencode-dotnet/opencode-sdk-dotnet/masterbadges/tests/windows/opencode-dotnet/opencode-sdk-dotnet/masterbadges/tests/macos/opencode-dotnet/opencode-sdk-dotnet/masterbadges/packages/nuget/OpenCodeDotNet.Sdkbadges/packages/nuget/OpenCodeDotNet.Sdk.Extensionsbadges/packages/github/opencode-dotnet/OpenCodeDotNet.Sdk?prerelease=truebadges/packages/github/opencode-dotnet/OpenCodeDotNet.Sdk.Extensions?prerelease=trueredirect/test-results/{linux,windows,macos}/…/masterPin
The badge-smith checkout moves from
d778400btobc7ed07860ec4b0e702add6370c2636daccb2adf, which keeps the existing deploy-alignment rule: it is the latest of badge-smith's 31productiondeployments with asuccessstatus (2026-10-19, deployment run39317408114, which built and deployed that SHA); the one newer commit,aab23e8d, is documentation and was not deployed. The compositeupdate-test-badge/action.ymland its inputs are identical at both pins and match whatci.ymlpasses; thetools/badgesmith.csentry point it runs is the same blob at both pins, but theCommands/BadgeUpdateCommand.csfile it includes changed (an access-modifier change) and its Spectre.Console.Cli dependency moved from 0.55.0 to 0.57.2, so this is a real move to the deployed client, not a no-op.Reporter glob (folded in on review)
The test reporter's
path: "test-results/**/*.trx"also matched themerged/merged-*.trxreportsdotnet testwrites beside the per-module TRX files, and those repeat the module results, so the reporter's totals, and the counts this workflow posts to the BadgeSmith test badges, were inflated. From the artifacts of run 43761253451 (#904's merge):pathis nowtest-results/*/*.trx, the files directly undermain/,service-elections/andnative-aot/. The reporter at its pinned SHA expandspathwith fast-glob 3.3.3 (micromatch 4.0.8), where*never crosses a path separator on any runner.verify-test-rosteralready reads only the direct files, the artifact upload keepstest-results/**, and no repository gate asserts the reporter glob. After this merges, the badges show about 11.8k (Linux, macOS) and 16.2k (Windows).Verification
ci.yml, so it runs the full CI, including the Tools tests that read the docs.OpenCode.Sdk.Tools.Tests(2,823 passed, 0 failed) on the first commit, and the Release build and Tools tests again after each wording change, on this head included.masterpush after the test-data secret moved to the organization level (feat(hosting): ask the registered owner of an address for its state, as the CLI does (#847) #904's merge) posted on all three operating systems with HTTP 201; the per-leg evidence is in the comment below.