4.0 polish: docs, examples, property tests, stress tests, optimizer fix#696
Merged
gijzelaerr merged 1 commit intomasterfrom Apr 16, 2026
Merged
4.0 polish: docs, examples, property tests, stress tests, optimizer fix#696gijzelaerr merged 1 commit intomasterfrom
gijzelaerr merged 1 commit intomasterfrom
Conversation
Documentation: - Add logging doc page (API/log.rst) to index - Update CHANGES.md with all recent features (block transfer, array helpers, setters, cpu_info fix) - Add s7 examples (s7_basic.py, s7_symbols.py, s7_server.py) Optimizer fix: - Exclude counter (0x1C) and timer (0x1D) areas from byte-range merging — they use element-based addressing SymbolTable: - Accept both snap7.Client and s7.Client (use Any type hint) Property-based tests (Hypothesis): - Round-trip tests for all 20 getter/setter pairs - Found and fixed float precision bug in set_ltime/set_ltod/set_ldt (use integer arithmetic instead of float multiplication) Multi-client stress tests: - Concurrent reads from 4 clients - Concurrent writer + reader on same DB - Rapid connect/disconnect cycles Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Final polish for 4.0 readiness.
Documentation:
s7examples (basic, symbols, server)Bug fixes:
set_ltime,set_ltod,set_ldt(integer arithmetic instead oftotal_seconds() * 1e9)snap7.Clientands7.ClientProperty-based tests (Hypothesis):
timedelta(seconds=128, microseconds=72)which lost 1 microsecond through float conversionMulti-client stress tests:
Numbers: 1501 tests, 0 mypy errors, ruff clean, Sphinx clean.
Test plan
🤖 Generated with Claude Code