Repository navigation
Smoke-test bundled modules during inspect - #89
Merged
Merged
Conversation
Coverage Report for CI Build 47242357192Coverage increased (+0.004%) to 99.969%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
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.
Check the python modules of a fresh build
A C extension that fails to build or link doesn't fail the CPython build:
makeonly mentions it in its output, and the module is silently missing.At the end of a build
The python modules relying on external modules are now imported and smoke tested in the freshly built python. How strictly depends on how the build provided the external module:
static(compiled by this build), or listed in the newcpython-required-modulessettingshared(found on the build host)tk.h, but_tkinterdoesn't get built)absentm_providesattribute (for example,opensslprovides_ssl _hashlib). Sub-modules share their parent's outcome.SMOKE_TESTSinexternal/_inspect.py: compression round-trips,ssl.create_default_context(), a sha256 via_hashlib, an in-memorysqlite3query, actypescallback (exercising libffi), adbmwrite and read, and a Tcl expression.readlineand_cursesare only imported, since they need a terminal.With
inspectstatic:entry of its.manifest.ymlsays what was compiled. Modules relying on those are checked strictly, andinspectexits non-zero if one isn't working. Other modules are only reported._hashlibis in the default module list,_decimaland_cursesnow report their libmpdec and ncurses versions,tkintergets a smoke test, and absent modules no longer show a strayNone.Docs
inspectpage explains the markers, and that-mreplaces the default module list (-m +nameadds to it).cpython-required-modules, and the add-a-module guide mentionsm_provides.Tested
inspect, the smoke tests, and the markers._ssl,_hashlib,_lzma,_zstdand_decimalare checked strictly and pass, and_tkinter(shared, absent) gets a warning.inspectpasses on that build, on older portable-python builds, and on Apple's/usr/bin/python3.inspectreport the version mismatch.🤖 Generated with Claude Code