Add failureThreshold support to #[Repeat] for tolerated-failure repeated runs#115
Draft
Add failureThreshold support to #[Repeat] for tolerated-failure repeated runs#115
failureThreshold support to #[Repeat] for tolerated-failure repeated runs#115Conversation
Agent-Logs-Url: https://github.com/php-testo/testo/sessions/7fa54e17-8f39-49a4-bbe9-502f2db130e8 Co-authored-by: roxblnfk <4152481+roxblnfk@users.noreply.github.com>
Agent-Logs-Url: https://github.com/php-testo/testo/sessions/7fa54e17-8f39-49a4-bbe9-502f2db130e8 Co-authored-by: roxblnfk <4152481+roxblnfk@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add failureThreshold parameter to #[Repeat] attribute
Add Apr 17, 2026
failureThreshold support to #[Repeat] for tolerated-failure repeated runs
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.
#[Repeat]previously failed on the first failed iteration and only accepted repetition count. This change adds configurable failure tolerance so repeated execution can continue until a failure threshold is reached, while preserving current behavior by default.API: extend
RepeatattributefailureThresholdas a second constructor argument (default: 1).<= 0) alongside existingtimesvalidation.Execution semantics: update repeat interceptor
failures >= failureThreshold.Coverage: unit + feature updates
#[Repeat(times: ..., failureThreshold: ...)]for both tolerated and threshold-reaching cases.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/DaveRandom/LibDNS/zipball/b84c94e8fe6b7ee4aecfe121bfe3b6177d303c8a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/Nyholm/psr7/zipball/a71f2b11690f4b24d099d6b16690a90ae14fc6f3/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/f81ccf51ca60cc9dd21358ffba0e79ebd2ebb78a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/amphp/amp/zipball/fa0ab33a6f47a82929c38d03ca47ebb71086a93f/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/amphp/byte-stream/zipball/55a6bd071aec26fa2a3e002618c20c35e3df1b46/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/amphp/cache/zipball/46912e387e6aa94933b61ea1ead9cf7540b7797c/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/amphp/dns/zipball/78eb3db5fc69bf2fc0cb503c4fcba667bc223c71/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/amphp/parallel/zipball/296b521137a54d3a02425b464e5aee4c93db2c60/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/amphp/parser/zipball/3cf1f8b32a0171d4b1bed93d25617637a77cded7/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/amphp/pipeline/zipball/7b52598c2e9105ebcddf247fc523161581930367/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/amphp/process/zipball/52e08c09dec7511d5fbc1fb00d3e4e79fc77d58d/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/amphp/serialization/zipball/fdf2834d78cebb0205fb2672676c1b1eb84371f0/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/amphp/socket/zipball/58e0422221825b79681b72c50c47a930be7bf1e1/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/amphp/sync/zipball/217097b785130d77cfcc58ff583cf26cd1770bf1/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/buggregator/trap/zipball/f146f04ee7be14740d8b35311f1a136a929976ed/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/carthage-software/mago/releases/usr/bin/php php /home/REDACTED/work/testo/testo/vendor/bin/dload get --no-interaction -v --no-checkout che/composer/vcs--reference k/testo/testo/ve/home/REDACTED/.cache/composer/vcs/https---github.com-danog-php-advanced-json-rpc.add --dissociate --reference che/composer/vcsset-url git remo�� add composer git REDACTED m.git t git(http block)https://api.github.com/repos/clue/stream-filter/zipball/049509fef80032cb3f051595029ab75b49a3c2f7/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/composer/semver/zipball/198166618906cb2de69b95d7d47e5fa8aa1b2b95/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/composer/xdebug-handler/zipball/6c1925561632e83d60a44492e0b344cf48ab85ef/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/cweiske/jsonmapper/zipball/980674efdda65913492d29a8fd51c82270dd37bb/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/danog/php-advanced-json-rpc/zipball/ae703ea7b4811797a10590b6078de05b3b33dd91/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/doctrine/deprecations/zipball/d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/felixfbecker/php-language-server-protocol/zipball/a9e113dbc7d849e35b8776da39edaf4313b7b6c9/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/kelunik/certificate/zipball/7e00d498c264d5eb4f78c69f41c8bd6719c0199e/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/nikic/PHP-Parser/zipball/dca41cd15c2ac9d055ad70dbfd011130757d1f82/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/php-http/message/zipball/06dd5e8562f84e641bf929bfe699ee0f5ce8080a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/php-internal/destroy/zipball/93068c4f7da218034f5373e31407f564b74b4a06/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/php-internal/dload/zipball/34864dd02c84ace3ba02df4ac93c02d387635c01/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/php-internal/path/zipball/ec0ddb060a204793f1ddfb5219bb024a754df0e0/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/php-internal/toml/zipball/c6b2769e7b8ff25a9667337767eff6ec7967405c/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/7bae67520aa9f5ecc506d646810bd40d9da54582/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/327a05bbee54120d4786a0dc67aad30226ad4cf9/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/phpstan/phpdoc-parser/zipball/a004701b11273a26cd7955a61d67a7f1e525a45a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/reactphp/async/zipball/635d50e30844a484495713e8cb8d9e079c0008a5/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/reactphp/event-loop/zipball/ba276bda6083df7e0050fd9b33f66ad7a4ac747a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/reactphp/promise/zipball/23444f53a813a3296c1368bb104793ce8d88f04a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/revoltphp/event-loop/zipball/b6fc06dce8e9b523c9946138fa5e62181934f91c/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/sebastianbergmann/diff/zipball/9c957d730257f49c873f3761674559bd90098a7d/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/spatie/array-to-xml/zipball/88b2f3852a922dd73177a68938f8eb2ec70c7224/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/spiral/code-style/zipball/a0407ffcb300c9d2977cb3d1c36af0d13b2ffb72/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/symfony/console/zipball/5b66d385dc58f69652e56f78a4184615e3f2b7f7/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/symfony/filesystem/zipball/66b769ae743ce2d13e435528fbef4af03d623e5a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/symfony/finder/zipball/8da41214757b87d97f181e3d14a4179286151007/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/symfony/http-client-contracts/zipball/75d7043853a42837e68111812f4d964b01e5101c/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/symfony/http-client/zipball/356e43d6994ae9d7761fd404d40f78691deabe0e/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/symfony/polyfill-ctype/zipball/141046a8f9477948ff284fa65be2095baafb94f2/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/ad1b7b9092976d6c948b8a187cec9faaea9ec1df/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6a21eb99c6973357967f6ce3708cd55a6bec6315/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/symfony/service-contracts/zipball/45112560a3ba2d715666a509a0bc9521d10b6c43/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/symfony/string/zipball/ae9488f874d7603f9d2dfbf120203882b645d963/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/symfony/var-dumper/zipball/cfb7badd53bf4177f6e9416cfbbccc13c0e773a1/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/theofidry/cpu-core-counter/zipball/db9508f7b1474469d9d3c53b86f817e344732678/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/thephpleague/uri-interfaces/zipball/85d5c77c5d6d3af6c54db4a78246364908f3c928/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/thephpleague/uri/zipball/08cf38e3924d4f56238125547b5720496fac8fd4/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/vimeo/psalm/zipball/7e751c06a756fa64dc4c759c09fe4a173afcb433/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/webmozarts/assert/zipball/eb0d790f735ba6cff25c683a85a1da0eadeff9e4/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)https://api.github.com/repos/yiisoft/injector/zipball/d3f718256b734933670ad11143cca724d340fc90/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/j9r108 /usr/bin/composer update --no-interaction --ignore-platform-req=php(http block)If you need me to access, download, or install something from one of these locations, you can either: