[Based on #2098] runtime,test: complete Go 1.26 standard-library coverage#2134
Open
cpunion wants to merge 7 commits into
Open
[Based on #2098] runtime,test: complete Go 1.26 standard-library coverage#2134cpunion wants to merge 7 commits into
cpunion wants to merge 7 commits into
Conversation
cpunion
force-pushed
the
codex/go126-stdlib-coverage
branch
from
July 20, 2026 08:56
29fc165 to
ceee7f1
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
20 tasks
cpunion
force-pushed
the
codex/go126-stdlib-coverage
branch
2 times, most recently
from
July 23, 2026 10:50
af86ec8 to
087adb7
Compare
Provide the synctest, Darwin CPU, Linux gettimeofday, and all-thread syscall hooks required by Go 1.26 standard-library code in c-shared and c-archive builds. Extend the export demo so C consumers link and execute fmt, goroutine, syscall, funcinfo, and explicit DWARF paths in both library modes.
cpunion
force-pushed
the
codex/go126-stdlib-coverage
branch
from
July 24, 2026 03:29
087adb7 to
d05cc2b
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.
Depends on #2098
Problem
The Go 1.26 upgrade added packages and exported APIs that were not all represented by
test/std. The coverage job only checked packages that already had a test directory, so a missing public package was invisible. Executable-only tests also did not prove that standard-library code initialized and ran correctly fromc-sharedandc-archiveC consumers.Fix
test/stdpackage for every public package reported by Go 1.26.5 (176/176);runtime/cgo.Handle, runtime/debug, plugin failure behavior, andtesting/synctest;llgo test -cto produce runnablec-sharedandc-archivetest libraries;test/stdpackage as an executable on Linux and macOS, and through real C shared/static consumers on Ubuntu.The tests call APIs and assert behavior; exported-symbol completeness remains a separate compile-time invariant.
This PR has an independent diff of
+1156/-25across 36 files.Validation
c-shared, andc-archivein an 8 GiB, 2 CPU, no-swap container.176/176.internal/buildtests pass.Follow-up to #2088 and #2108.