[codex] Fix graph subsystem correctness bugs#7186
Draft
somethingwithproof wants to merge 5 commits into
Draft
Conversation
php-cs-fixer flagged array() in graph_realtime.php; convert to [] for the coding-standards gate. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
phpstan 2.2.2 added a stricter is_numeric() always-true inference that fails on pre-existing develop code (lib/data_query.php); pin until that is addressed upstream so CI is reproducible. Signed-off-by: Thomas Vincent <thomasvincent@gmail.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
finallyso failed collector calls do not leak handlers.Open PR overlap
1.2.xonly.develop, but its graph changes are unrelated theme/remote-agent hardening and do not fix these graph correctness issues.Validation
php -l graph_image.phpphp -l graph_realtime.phpphp -l lib/functions.phpphp -l lib/rrd.phpphp -l tests/e2e/graph_subsystem_probe.phpbash -n tests/e2e/graph_subsystem_docker.shbash tests/e2e/graph_subsystem_docker.shThe Docker probe passes. It emits existing PHP deprecation notices from Cacti/vendor code under the container PHP version before printing
PASS graph subsystem docker probe.