Repository navigation
fix(mf4): defer asammdf imports until reader/writer construction - #2123
zariiii9003 merged 9 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Preserve UTC writer timestamps and packed error-frame decoding while retaining lazy asammdf imports. Adapt the upstream payload tests to use asammdf-owned helpers and keep runtime path annotations compatible with Sphinx.
AI Review: Request changes (minor)Thanks for the thorough analysis. The fix is right: moving the Please change before mergingTrim the subprocess tests. Changelog fragment. Please name it after this PR ( Suggestion: consider keeping the asammdf calls typed
The alternative is normal function-level imports, which this repo's ruff/pylint config only accepts with a suppression comment, as in That means six such pairs in |
|
Please move the tests into |
Current maintenance update — 23 November 2026
Latest head:
f02ac6ea4757ed1601d23497c4f31dffab90a3b8. The previous head398890apassed docs and static analysis but its hosted matrix failed four inherited MF4 reader/writer integration tests on runners without the optionalasammdfpackage. The earlier fix skipped the parametrized payload tests; this revision adds a class-level optional-dependency skip for inheritedTestMF4FileFormatintegration tests as well. Real MF4 integration tests remain enabled wheneverasammdfis installed. No production code changed in these maintenance commits.Current head requires fresh hosted validation. Historic successful CI for
dcbe0e4and historic local results below do not establish thatf02ac6epasses.Summary of Changes
Importing
asammdffirst can re-entercanthroughcanmatrix/canopenbeforeasammdffinishes initializing. The optional-import guard then permanently treats an installed dependency as missing.Closes #2122. Thanks to @nehalkpatel for the reproduction and dependency-chain analysis.
Type of Change
Checklist
Current validation — 13 November 2026
Published revision
dcbe0e4394b7286aaa4326557b7bc8805348fd4fmerges upstream86e85794f6c3505c988a4acd5d34f5b08f508b17into the existing PR. Its complete treec2d30628aaaeff97d88042704a8a4e3e9d018f2fmatches the final locally verified tree.Environment: Linux / CPython 3.12.14; asammdf 8.7.2, canmatrix 1.2, canopen 2.4.1. The shallow checkout used a local setuptools-scm version override for installation.
_thread.allocate_lockreference also present on unchanged upstream. The introduced path-annotation reference warning was repaired; no warning suppression was added.No physical CAN hardware or minimum asammdf 6 validation is claimed. The historical local full-suite and strict HTML results above retain their stated limitations; successful hosted validation below is separate.
Hosted validation — checked 18 November 2026 (Brisbane)
Tests run 43397825677 completed successfully for the same published revision
dcbe0e4394b7286aaa4326557b7bc8805348fd4f. All 21 test-matrix jobs across Ubuntu, macOS and Windows (CPython 3.11–3.15 and PyPy 3.11–3.12), static code analysis, documentation, packaging and coverage aggregation succeeded. Release publication was skipped. These hosted results supersede the earlier pending-CI wording; no source change or new local rerun was needed for this status refresh.Prepared with OpenAI Codex assistance and independent inspection.
Timothy Anderson — Spotted Ridge Engineering / OC Labs
Independent software verification · GDN (Global Decision Network)
timothyanderson096@gmail.com · Engineering evidence