From 73fe04f8c30a734fe2e269a71d4628cdf7131062 Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Mon, 12 Oct 2026 21:28:57 +0400 Subject: [PATCH] fix: support with paratest --- .github/workflows/static.yml | 4 +- .github/workflows/tests.yml | 4 +- .hod/lock | 136 ++++++++++++++---- AGENTS.md | 36 ++++- CLAUDE.md | 1 + composer.json | 6 +- src/Pest.php | 2 +- .../Parallel/Paratest/WrapperRunner.php | 68 ++++----- ...isual_snapshot_of_help_command_output.snap | 2 +- ...isual_snapshot_of_help_command_output.snap | 2 +- 10 files changed, 174 insertions(+), 87 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 0772586a..78a4dd79 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -31,7 +31,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup PHP - uses: shivammathur/setup-php@4424c9aab975b57bd706ee5a39c6b4334d6e4f60 # v2 + uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0 with: php-version: 8.4 tools: composer:v2 @@ -44,7 +44,7 @@ jobs: run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache Composer dependencies - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v5 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ steps.composer-cache.outputs.dir }} key: static-php-8.4-${{ matrix.dependency-version }}-composer-${{ hashFiles('**/composer.json', '**/composer.lock') }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c981712d..a25def19 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,7 +35,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup PHP - uses: shivammathur/setup-php@4424c9aab975b57bd706ee5a39c6b4334d6e4f60 # v2 + uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0 with: php-version: ${{ matrix.php }} tools: composer:v2 @@ -48,7 +48,7 @@ jobs: run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache Composer dependencies - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v5 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ matrix.os }}-php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-${{ hashFiles('**/composer.json', '**/composer.lock') }} diff --git a/.hod/lock b/.hod/lock index 426e6ddc..9aa168e2 100644 --- a/.hod/lock +++ b/.hod/lock @@ -1,34 +1,110 @@ -8fee50af5e8d9ff55db278de9701b10e11dfef6eecfc4127f2608c85f0f0fdd1 .agents/skills/code-immutability/SKILL.md -d489e18e5863e814795f5674a58f507e98fbbeb341a218dbd5bc9173d39554d3 .agents/skills/code-immutability/agents/openai.yaml -0c47a67a1bcb590b057984fa4e9c4704fb3485652864f3e5ac6a3ba8200e74f4 .agents/skills/code-messages/SKILL.md -fc01d0c81e189623e6e7c912498f46f63f489bbe59967cccde742ea2c4e31b5a .agents/skills/code-messages/agents/openai.yaml -3d39b47c159c0bbdc413781afe12cdb9fcad4086d4810a6c11dfd0c909d90e81 .agents/skills/code-quality/SKILL.md -f47191e1bad34e547d1b3ee3ae111c417c383ec5459d467bfae5e832d86275c9 .agents/skills/code-quality/agents/openai.yaml -9d5e921bdfa05ef955657d59702e79a83b44853c075d513793bb76a7f479004f .agents/skills/code-slop/SKILL.md -520a3834948850bf7e2232d92341f07ff7bfc9e67247818b56fb576ca6dbf169 .agents/skills/code-slop/agents/openai.yaml -2f9d68ed1b93eb74bc1c23cad34a88b765bd0ab306faacab1105d9489ede8ad1 .agents/skills/code-tooling/SKILL.md -868c67118e15aa9eb8f4ee35228fc2d04b1c0cf129ee3fec9177113a77f5863e .agents/skills/code-tooling/agents/openai.yaml -5df241fc65e271c93d13708f868f9a624669bcfc06b3d84af9cf6fce03a25558 .agents/skills/deps-upgrade/SKILL.md -984c7232ae1681ebba980ede2a0543db9a850dd2406990cdfa011384f929e981 .agents/skills/deps-upgrade/agents/openai.yaml -275df9900027499c1ab97ab2675b2992e4267559bd61933a637d6a15d25a9350 .agents/skills/init/SKILL.md -14ea76cbc5a8f35356ccf6aa20beddb249c6bc4aeb9999ec722c3acf92389d57 .agents/skills/init/agents/openai.yaml +bd51565d7579df2154cd0bc19634e3b63937a115a4629066c0273d91b65ebc12 .agents/skills/rules-code-boundaries/SKILL.md +bfc54327927d453c85ed1ff8bdad1a622daf2e40c8dd42a45674acb8c470a0ab .agents/skills/rules-code-boundaries/agents/openai.yaml +82c83eefaa2b66a46f82a9aab8e9175b2798958e2fe4ac3db961d938d2fe3b24 .agents/skills/rules-code-data-integrity/SKILL.md +0ad49f243c9d68d8ae27e62b2ab7a18f407941dcbbea2cb1424f66304aa67d94 .agents/skills/rules-code-data-integrity/agents/openai.yaml +82b351872a511b58b631eacf67ad08bde769d424579270f784976782371d17f5 .agents/skills/rules-code-error-messages/SKILL.md +dd97fbf09609c58ba5eaf56929b0efbde1cc0afde879b8e3f1176796d4ada4c8 .agents/skills/rules-code-error-messages/agents/openai.yaml +997d223fd8a3cc178b307c451b91be0d65300511290df4836683786048c62d63 .agents/skills/rules-code-immutability/SKILL.md +2da047ed8e2c2077f92fe7e6f4306815279068cbc1ddec32f2432c0053da7473 .agents/skills/rules-code-immutability/agents/openai.yaml +eb2f772945c71be4f6e5c016bb748e1970e9f94373159533bbe60ea63fe00989 .agents/skills/rules-code-migrations/SKILL.md +dcee7ce6b9f4a323862afe331c4f83d1f79ea8b95498774a80dbcf9b47bd8655 .agents/skills/rules-code-migrations/agents/openai.yaml +13a18cab02aab5df43b3ec1deec9d6c2a5de130bd090d9a042feb667df513e57 .agents/skills/rules-code-modules/SKILL.md +a8b603bc89ff861bac1be959c857048f196b54df459dec23e355d68fd1b2a0b6 .agents/skills/rules-code-modules/agents/openai.yaml +52d00eb81180dadea878a8578e0ae743055f9ed31e17b52035d35deb918801b2 .agents/skills/rules-code-public-api/SKILL.md +48ec566cc39d2a88c5240404fbb9243162994a08adfdb7e682fed2a3c45a4195 .agents/skills/rules-code-public-api/agents/openai.yaml +514e0021f91d7d8624d1bce754ccff83e1f4ab3709549d8f85684ed98a7500e7 .agents/skills/rules-code-queries/SKILL.md +21d8709328aa899e26750b3ba33ee2461af25815f7be6e4451eae405f6342b6d .agents/skills/rules-code-queries/agents/openai.yaml +44bda34c653a04d9d63f717091c944380ff6fa7f092daaab9000d68ccbb341e2 .agents/skills/rules-code-security/SKILL.md +5b1c1ad9cf5b0866ed62160d5ca7428b8acfd820ac4fd1998035f23c75d8c0c2 .agents/skills/rules-code-security/agents/openai.yaml +af3e08e12e21cb7e8940f31cff0f1fdad6c5ba84762b81e17f7fa88e0433371f .agents/skills/rules-code-tests/SKILL.md +2a2ab6138b8e6b361d910d7af836dfd2cd9b279eb7977f07e6c0126afa11a1e9 .agents/skills/rules-code-tests/agents/openai.yaml +6adfd8df3877b41e48c6dccc77c2ca1f8df80b8f67e6d0587589f402b57cc52e .agents/skills/rules-code-tooling/SKILL.md +dcd0d7595edf1445d2cc66d1af4a89d4158193927911e7c793860083893241cd .agents/skills/rules-code-tooling/agents/openai.yaml +1a77293439ff9598f6bc65c3fd3df222cb9dd1f30051a70c3d3553e9f61f828a .agents/skills/rules-code-type-safety/SKILL.md +ab6716ecbb2b9e9531a166623a73efe87452e3a51b054bba1290e3640730d647 .agents/skills/rules-code-type-safety/agents/openai.yaml +a64c6dfa8a2c23c2f0b8aaeea824a5903375ab4495d1f1baffc37995d4b4849a .agents/skills/rules-code-without-slop/SKILL.md +d6cb4df200554a2cce76b81a54ee3f3227882bdcc2844bf5d918639ba5f864ee .agents/skills/rules-code-without-slop/agents/openai.yaml +66f6ff39f51853dafef4e4caf333cea661801294e29ae70ddc1988e77c1c2bd0 .agents/skills/rules-git-commits/SKILL.md +c13a17096ff7c6ad4d8c49d68281ab694df7c984e29d50a5f19a8bda533de4eb .agents/skills/rules-git-commits/agents/openai.yaml 3f7f77275ada85b55ed874cea8ada94ad6f838800311f46ecb2a31b68ae95ac7 .agents/skills/snapshots-update/SKILL.md bb5339d7abcaba163a384a00a9ba8607ddf8b6820a63be3570e9b6fc6a912479 .agents/skills/snapshots-update/agents/openai.yaml -8fee50af5e8d9ff55db278de9701b10e11dfef6eecfc4127f2608c85f0f0fdd1 .claude/skills/code-immutability/SKILL.md -d489e18e5863e814795f5674a58f507e98fbbeb341a218dbd5bc9173d39554d3 .claude/skills/code-immutability/agents/openai.yaml -0c47a67a1bcb590b057984fa4e9c4704fb3485652864f3e5ac6a3ba8200e74f4 .claude/skills/code-messages/SKILL.md -fc01d0c81e189623e6e7c912498f46f63f489bbe59967cccde742ea2c4e31b5a .claude/skills/code-messages/agents/openai.yaml -3d39b47c159c0bbdc413781afe12cdb9fcad4086d4810a6c11dfd0c909d90e81 .claude/skills/code-quality/SKILL.md -f47191e1bad34e547d1b3ee3ae111c417c383ec5459d467bfae5e832d86275c9 .claude/skills/code-quality/agents/openai.yaml -9d5e921bdfa05ef955657d59702e79a83b44853c075d513793bb76a7f479004f .claude/skills/code-slop/SKILL.md -520a3834948850bf7e2232d92341f07ff7bfc9e67247818b56fb576ca6dbf169 .claude/skills/code-slop/agents/openai.yaml -2f9d68ed1b93eb74bc1c23cad34a88b765bd0ab306faacab1105d9489ede8ad1 .claude/skills/code-tooling/SKILL.md -868c67118e15aa9eb8f4ee35228fc2d04b1c0cf129ee3fec9177113a77f5863e .claude/skills/code-tooling/agents/openai.yaml -5df241fc65e271c93d13708f868f9a624669bcfc06b3d84af9cf6fce03a25558 .claude/skills/deps-upgrade/SKILL.md -984c7232ae1681ebba980ede2a0543db9a850dd2406990cdfa011384f929e981 .claude/skills/deps-upgrade/agents/openai.yaml -275df9900027499c1ab97ab2675b2992e4267559bd61933a637d6a15d25a9350 .claude/skills/init/SKILL.md -14ea76cbc5a8f35356ccf6aa20beddb249c6bc4aeb9999ec722c3acf92389d57 .claude/skills/init/agents/openai.yaml +eb6cb534bc7adead5175e457dbc690164f27862ba834b25dea76e8bca3fb2b22 .agents/skills/task-code-architecture/SKILL.md +912d856661e4eb8f0880c26b9d45b8bbdbe104ceb1a307e7ee7a9c574a1bac0a .agents/skills/task-code-architecture/agents/openai.yaml +a6c6ce5c2eff237d6578084af88ac0f52ca15dbc1fab91dd9097d9fd1fd46147 .agents/skills/task-code-bug/SKILL.md +6c1798aaebe3e7f7da194100354fe9faa5f83bf02a019a1b54e0fb598f09aff1 .agents/skills/task-code-bug/agents/openai.yaml +fb52abffb5de2165977237f0f55202da13403436259a6f2d093b89af3b43e2c1 .agents/skills/task-code-feature/SKILL.md +87bdc9a650a6c2d2765eea4e2507d148d9e6e4459dea079ecbeb495ffdb285f7 .agents/skills/task-code-feature/agents/openai.yaml +13a5580b308cfe3567b674fc2299159dec29338cb67c22aa51c668d36ce776b3 .agents/skills/task-code-plan/SKILL.md +e4fb9575774792251f3b99bab5f3621b9f6b83556fa04599100d3c096a08c8d4 .agents/skills/task-code-plan/agents/openai.yaml +c6404f7b7e8015b0374e1cf79e6068924d203352b5c70826ed7010e1189ca0ae .agents/skills/task-code-review/SKILL.md +d6cf11faa9dc588a50d4e5750bcbc683415f256357edabd30fb3161cb53d2365 .agents/skills/task-code-review/agents/openai.yaml +fe3f29bbad3932841fb88e7bfeb7d7f2a40f4df65289ae367a333bea339424c3 .agents/skills/task-issues-triage/SKILL.md +d87c9bc10b0abe2eac366e015ca6de8abac8f5f014929ecc4a8bf27d46379c30 .agents/skills/task-issues-triage/agents/openai.yaml +bfd908de525dee564d73e84b2cc9e663d8d2bc453156785826a0a24c226c8043 .agents/skills/task-project-glossary/SKILL.md +a3f3d3e9ef2e150a3dbcd2315683dfc10d5640aeb2af42d2ba759cf31f58bdc8 .agents/skills/task-project-glossary/agents/openai.yaml +93ade39e9bc9595a24bf4ad773f9b427e09c4e3c233135fe903e82fc8d77a381 .agents/skills/task-project-health/SKILL.md +1c5997b7f3eac5b3fa64afcafe9ef2bef50194b74347b4a3a36eba8aaa43884c .agents/skills/task-project-health/agents/openai.yaml +0a40dcc178d0998fcdb1b6d6ece8b12125cad06c3459270c87e63483a93ab1e0 .agents/skills/task-project-init/SKILL.md +253f9d1183e8ff1fd84e0136ea70844187d731ab2504f7f679ecf337f83893c8 .agents/skills/task-project-init/agents/openai.yaml +c77ebaea9b3f9d9833cb306013e71f6bd83172166944a1f0c9840bb33fe4e4e4 .agents/skills/task-project-retro/SKILL.md +0ad86d84ff56e56603816b0e7d9d04067c99482a5e442b88b05c781743b8b618 .agents/skills/task-project-retro/agents/openai.yaml +bd09f10f3bd0f284b59747c37c7879ab19ffb3603ec9b6f3c7401a5e8c128835 .agents/skills/task-pulls-triage/SKILL.md +0ecb81c140c37bba372f0033c8bf388ad976c1a7cf095a62af9e57c4ce46857a .agents/skills/task-pulls-triage/agents/openai.yaml +1304d3bb730aa0af55a7713337567b6c7412c84cf530199c4383228e01f89b41 .agents/skills/task-session-handoff/SKILL.md +fbd41d31c150dea316d189a8f5973d3d5abbd769cb22217b8cd6646061477bac .agents/skills/task-session-handoff/agents/openai.yaml +bd51565d7579df2154cd0bc19634e3b63937a115a4629066c0273d91b65ebc12 .claude/skills/rules-code-boundaries/SKILL.md +bfc54327927d453c85ed1ff8bdad1a622daf2e40c8dd42a45674acb8c470a0ab .claude/skills/rules-code-boundaries/agents/openai.yaml +82c83eefaa2b66a46f82a9aab8e9175b2798958e2fe4ac3db961d938d2fe3b24 .claude/skills/rules-code-data-integrity/SKILL.md +0ad49f243c9d68d8ae27e62b2ab7a18f407941dcbbea2cb1424f66304aa67d94 .claude/skills/rules-code-data-integrity/agents/openai.yaml +82b351872a511b58b631eacf67ad08bde769d424579270f784976782371d17f5 .claude/skills/rules-code-error-messages/SKILL.md +dd97fbf09609c58ba5eaf56929b0efbde1cc0afde879b8e3f1176796d4ada4c8 .claude/skills/rules-code-error-messages/agents/openai.yaml +997d223fd8a3cc178b307c451b91be0d65300511290df4836683786048c62d63 .claude/skills/rules-code-immutability/SKILL.md +2da047ed8e2c2077f92fe7e6f4306815279068cbc1ddec32f2432c0053da7473 .claude/skills/rules-code-immutability/agents/openai.yaml +eb2f772945c71be4f6e5c016bb748e1970e9f94373159533bbe60ea63fe00989 .claude/skills/rules-code-migrations/SKILL.md +dcee7ce6b9f4a323862afe331c4f83d1f79ea8b95498774a80dbcf9b47bd8655 .claude/skills/rules-code-migrations/agents/openai.yaml +13a18cab02aab5df43b3ec1deec9d6c2a5de130bd090d9a042feb667df513e57 .claude/skills/rules-code-modules/SKILL.md +a8b603bc89ff861bac1be959c857048f196b54df459dec23e355d68fd1b2a0b6 .claude/skills/rules-code-modules/agents/openai.yaml +52d00eb81180dadea878a8578e0ae743055f9ed31e17b52035d35deb918801b2 .claude/skills/rules-code-public-api/SKILL.md +48ec566cc39d2a88c5240404fbb9243162994a08adfdb7e682fed2a3c45a4195 .claude/skills/rules-code-public-api/agents/openai.yaml +514e0021f91d7d8624d1bce754ccff83e1f4ab3709549d8f85684ed98a7500e7 .claude/skills/rules-code-queries/SKILL.md +21d8709328aa899e26750b3ba33ee2461af25815f7be6e4451eae405f6342b6d .claude/skills/rules-code-queries/agents/openai.yaml +44bda34c653a04d9d63f717091c944380ff6fa7f092daaab9000d68ccbb341e2 .claude/skills/rules-code-security/SKILL.md +5b1c1ad9cf5b0866ed62160d5ca7428b8acfd820ac4fd1998035f23c75d8c0c2 .claude/skills/rules-code-security/agents/openai.yaml +af3e08e12e21cb7e8940f31cff0f1fdad6c5ba84762b81e17f7fa88e0433371f .claude/skills/rules-code-tests/SKILL.md +2a2ab6138b8e6b361d910d7af836dfd2cd9b279eb7977f07e6c0126afa11a1e9 .claude/skills/rules-code-tests/agents/openai.yaml +6adfd8df3877b41e48c6dccc77c2ca1f8df80b8f67e6d0587589f402b57cc52e .claude/skills/rules-code-tooling/SKILL.md +dcd0d7595edf1445d2cc66d1af4a89d4158193927911e7c793860083893241cd .claude/skills/rules-code-tooling/agents/openai.yaml +1a77293439ff9598f6bc65c3fd3df222cb9dd1f30051a70c3d3553e9f61f828a .claude/skills/rules-code-type-safety/SKILL.md +ab6716ecbb2b9e9531a166623a73efe87452e3a51b054bba1290e3640730d647 .claude/skills/rules-code-type-safety/agents/openai.yaml +a64c6dfa8a2c23c2f0b8aaeea824a5903375ab4495d1f1baffc37995d4b4849a .claude/skills/rules-code-without-slop/SKILL.md +d6cb4df200554a2cce76b81a54ee3f3227882bdcc2844bf5d918639ba5f864ee .claude/skills/rules-code-without-slop/agents/openai.yaml +66f6ff39f51853dafef4e4caf333cea661801294e29ae70ddc1988e77c1c2bd0 .claude/skills/rules-git-commits/SKILL.md +c13a17096ff7c6ad4d8c49d68281ab694df7c984e29d50a5f19a8bda533de4eb .claude/skills/rules-git-commits/agents/openai.yaml 3f7f77275ada85b55ed874cea8ada94ad6f838800311f46ecb2a31b68ae95ac7 .claude/skills/snapshots-update/SKILL.md bb5339d7abcaba163a384a00a9ba8607ddf8b6820a63be3570e9b6fc6a912479 .claude/skills/snapshots-update/agents/openai.yaml -d1e4a22c7e3b8b833d873b139d331d85fb9f5247818911b35082ae9a8f6edf9f AGENTS.md -336cc4fbf19beaada7ccf9986414fa91851a8d7a07dfb3ccbe800a69eed0ab49 CLAUDE.md +eb6cb534bc7adead5175e457dbc690164f27862ba834b25dea76e8bca3fb2b22 .claude/skills/task-code-architecture/SKILL.md +912d856661e4eb8f0880c26b9d45b8bbdbe104ceb1a307e7ee7a9c574a1bac0a .claude/skills/task-code-architecture/agents/openai.yaml +a6c6ce5c2eff237d6578084af88ac0f52ca15dbc1fab91dd9097d9fd1fd46147 .claude/skills/task-code-bug/SKILL.md +6c1798aaebe3e7f7da194100354fe9faa5f83bf02a019a1b54e0fb598f09aff1 .claude/skills/task-code-bug/agents/openai.yaml +fb52abffb5de2165977237f0f55202da13403436259a6f2d093b89af3b43e2c1 .claude/skills/task-code-feature/SKILL.md +87bdc9a650a6c2d2765eea4e2507d148d9e6e4459dea079ecbeb495ffdb285f7 .claude/skills/task-code-feature/agents/openai.yaml +13a5580b308cfe3567b674fc2299159dec29338cb67c22aa51c668d36ce776b3 .claude/skills/task-code-plan/SKILL.md +e4fb9575774792251f3b99bab5f3621b9f6b83556fa04599100d3c096a08c8d4 .claude/skills/task-code-plan/agents/openai.yaml +c6404f7b7e8015b0374e1cf79e6068924d203352b5c70826ed7010e1189ca0ae .claude/skills/task-code-review/SKILL.md +d6cf11faa9dc588a50d4e5750bcbc683415f256357edabd30fb3161cb53d2365 .claude/skills/task-code-review/agents/openai.yaml +fe3f29bbad3932841fb88e7bfeb7d7f2a40f4df65289ae367a333bea339424c3 .claude/skills/task-issues-triage/SKILL.md +d87c9bc10b0abe2eac366e015ca6de8abac8f5f014929ecc4a8bf27d46379c30 .claude/skills/task-issues-triage/agents/openai.yaml +bfd908de525dee564d73e84b2cc9e663d8d2bc453156785826a0a24c226c8043 .claude/skills/task-project-glossary/SKILL.md +a3f3d3e9ef2e150a3dbcd2315683dfc10d5640aeb2af42d2ba759cf31f58bdc8 .claude/skills/task-project-glossary/agents/openai.yaml +93ade39e9bc9595a24bf4ad773f9b427e09c4e3c233135fe903e82fc8d77a381 .claude/skills/task-project-health/SKILL.md +1c5997b7f3eac5b3fa64afcafe9ef2bef50194b74347b4a3a36eba8aaa43884c .claude/skills/task-project-health/agents/openai.yaml +0a40dcc178d0998fcdb1b6d6ece8b12125cad06c3459270c87e63483a93ab1e0 .claude/skills/task-project-init/SKILL.md +253f9d1183e8ff1fd84e0136ea70844187d731ab2504f7f679ecf337f83893c8 .claude/skills/task-project-init/agents/openai.yaml +c77ebaea9b3f9d9833cb306013e71f6bd83172166944a1f0c9840bb33fe4e4e4 .claude/skills/task-project-retro/SKILL.md +0ad86d84ff56e56603816b0e7d9d04067c99482a5e442b88b05c781743b8b618 .claude/skills/task-project-retro/agents/openai.yaml +bd09f10f3bd0f284b59747c37c7879ab19ffb3603ec9b6f3c7401a5e8c128835 .claude/skills/task-pulls-triage/SKILL.md +0ecb81c140c37bba372f0033c8bf388ad976c1a7cf095a62af9e57c4ce46857a .claude/skills/task-pulls-triage/agents/openai.yaml +1304d3bb730aa0af55a7713337567b6c7412c84cf530199c4383228e01f89b41 .claude/skills/task-session-handoff/SKILL.md +fbd41d31c150dea316d189a8f5973d3d5abbd769cb22217b8cd6646061477bac .claude/skills/task-session-handoff/agents/openai.yaml +bc65941b8bd587c4d6cc695adafd876afbe95941ebc10e1750f8801bbc5b8856 AGENTS.md +e3979fac270270eacf852d47848cbaab874c0934732e1888d4b63b9adcf745c8 CLAUDE.md diff --git a/AGENTS.md b/AGENTS.md index 1cb561ba..aeda732f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,7 +2,7 @@ Read `.hod/PROJECT.md` first. It holds the intention of this project. -`hod` writes this file. Write no sentence in it, because `hod update` writes it again. Write the intention of the project in `.hod/PROJECT.md`. Write a rule in a file in `.hod/rules/`. Write a skill in a directory in `.hod/skills/`. +`hod` writes this file. Write no sentence in it, because `hod update` writes it again. Write the intention of the project in `.hod/PROJECT.md`. Write a rule in the form of section 2. Write a skill in a directory in `.hod/skills/`. --- @@ -30,9 +30,15 @@ A fact that you learned during one task is not a rule. Use it in that task, then `.hod/PROJECT.md` holds two items: the intention of the project, and a reason that the code cannot hold. Write no sentence below that level. +Read `.hod/PROJECT.md` again before you finish a change. Correct each sentence that your change made wrong, and delete each sentence that the project no longer obeys. Add a fact of your change only when each agent needs it at the start of each task, such as the command that starts the program. Keep the file short, because each agent reads it in each session. + Write no sentence for a fact that an agent finds when it reads the code. The cost of that read does not change the answer: a fact that four files hold is in the code. Put the fact in the code first, because a test stops the agent that breaks it and a sentence here does not. -Ask the user before you write a rule. Give the fault, and write the rule after the user agrees. Give the file the path `.hod/rules/.md`. Give `` two or three words with a hyphen between them, and name the subject of the rule. Give the file `name` and `description` in its front matter, and write one rule in one file. Run `hod update --project` after the write, thus this file names the rule in section 6. Keep the number of the rules: delete a rule file in the same change, or ask the user to accept one more rule. A correction from the user is a rule and needs no question: write it in a file before you continue the work. +Ask the user before you write a rule. Give the fault, and write the rule after the user agrees. Give the file the path `.hod/rules/.md`. Give `` two or three words with a hyphen between them, and name the subject of the rule. Give the file `name` and `description` in its front matter, and write one rule in one file. Run `hod update --project` after the write, thus this file names the rule in section 7. Keep the number of the rules: delete a rule file in the same change, or ask the user to accept one more rule. A correction from the user is a rule and needs no question: write it in a file before you continue the work. + +When the project holds `boost.json`, write each rule with the MCP tool `record-rule` of Laravel Boost instead of a file in `.hod/rules/`. That tool writes the rule in `.ai/rules/`, and the guidelines of Boost in this file tell each agent to read that directory. Obey each other sentence of the paragraph above. + +When the user asks you to learn or to remember a fact, treat the request as a correction: write the fact as a rule in the form of this section. Write no fact into the memory directory of Claude Code or of a different client, and read no fact from that directory, because a file outside the project reaches no other client and no other computer. Give no new part of the program its own rule, because the code of that part holds its design. Delete text that follows the order of a file of source code: that text describes the file, and the file describes itself. Replace an old rule. Do not write a second rule near it. Delete a rule that the project does not obey. Do not keep a record of what the project stopped doing, in a file or in a directory. Git holds the history. @@ -56,11 +62,13 @@ Obey three limits. Do not promise a feature that does not exist today. Do not gi These rules control each file of source code and each manifest in this repository. Sections 1, 2 and 3 do not control these files. -Write no comment. Delete each comment that you find in a file that you change. Turn off the lint that asks for a documentation comment, because that lint asks you to say the name of an item again. +Before you write code, call the Skill tool with "rules-code-without-slop". Before you write code, call the Skill tool with "rules-code-type-safety". Before you write an entry point or change one, such as a controller, a component that a page calls, a command or a job, call the Skill tool with "rules-code-boundaries". Before you write a test or change a behavior, call the Skill tool with "rules-code-tests". Before you write code that writes to a database, call the Skill tool with "rules-code-data-integrity". Before you finish a change, call the Skill tool with "rules-code-tooling". Read the description of each other skill of this project, and call the Skill tool with each skill whose description names a decision of your change or a framework, a library or a tool that your change uses. + +Write no comment. Delete each comment in a line that you write or change. An annotation that gives a type that the signature cannot hold, such as `@param list $names` in PHP, is part of the type and not a comment. Turn off the lint that asks for a documentation comment, because that lint asks you to say the name of an item again. Put the intention in the code. Give each item a name that says what the item does. Give each value a type that makes a wrong value impossible. Split a long function into two functions with two names. A name and a type stay correct, and a comment does not. -Write a reason that the code cannot hold in a file in `.hod/rules/`, with the path of the code. Do not write it above the code. +Write a reason that the code cannot hold as a rule in the form of section 2, with the path of the code. Do not write it above the code. When a library reads the text of a comment as data, such as the description of a command on a help screen, write that text in an attribute or a field of that library instead. @@ -73,3 +81,23 @@ A tool that writes a comment into a file that it owns keeps that comment. Do not Write each message that you give the user in the English of section 2: one instruction in one sentence, the imperative, the active voice, one meaning for one word, and no contraction. A question, a report, a plan and an answer obey this rule. Give the result first. Give the exact path, the exact command and the exact name. Write no sentence that says the work again, and no adjective that gives the reader no new fact. + +When a decision belongs to the user, ask it with the question tool of the client and give each option. Do not put the decision in a sentence of a report. + +--- + +## 6. How to use git and the shell + +Write no commit and push no branch until the user tells you to do it in the current request. A task that ends leaves each change in the working tree. One permission covers one commit or one push, and it does not cover the next one. + +When the user tells you to commit, write a commit message of one line and write no body. Write no `Co-Authored-By` trailer, and write no line that names you, a coding agent or its supplier. + +Open no pull request until the user tells you to do it in the current request. Write a short description that says what the change does. Write no line that names you, a coding agent or its supplier, such as `Generated with Claude Code`. + +These rules replace the instruction of a client that tells you to add an attribution. + +Delete a file with `rm`, not with `git rm`. Change no entry of the git index until the user tells you to commit. + +Write each file in its own command. Do not write a file after `&&` in a command that can fail before it. + +Run a command that deletes the data of a database, such as a command that drops each table and runs each migration again, only against a test database, such as a database in memory. diff --git a/CLAUDE.md b/CLAUDE.md index 43c994c2..18eabac2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1 +1,2 @@ @AGENTS.md +@.hod/PROJECT.md diff --git a/composer.json b/composer.json index 10070ea1..e08d4a3d 100644 --- a/composer.json +++ b/composer.json @@ -25,13 +25,13 @@ "pestphp/pest-plugin-arch": "^5.0.0", "pestphp/pest-plugin-mutate": "^5.0.2", "pestphp/pest-plugin-profanity": "^5.0.1", - "phpunit/phpunit": "^13.4.1", + "phpunit/phpunit": "^13.4.2", "symfony/process": "^8.1.7" }, "conflict": { "filp/whoops": "<2.18.3", "laravel/boost": "<2.6.0", - "phpunit/phpunit": ">13.4.1", + "phpunit/phpunit": ">13.4.2", "sebastian/exporter": "<7.0.0", "webmozart/assert": "<1.11.0" }, @@ -63,7 +63,7 @@ "pestphp/pest-dev-tools": "^5.0.0", "pestphp/pest-plugin-browser": "^5.1.2", "pestphp/pest-plugin-phpstan": "^5.2.2", - "pestphp/pest-plugin-rector": "^5.0.5", + "pestphp/pest-plugin-rector": "^5.0.6", "pestphp/pest-plugin-type-coverage": "^5.0.3", "psy/psysh": "^0.12.24" }, diff --git a/src/Pest.php b/src/Pest.php index dbeb542e..771d1d13 100644 --- a/src/Pest.php +++ b/src/Pest.php @@ -6,7 +6,7 @@ namespace Pest; function version(): string { - return '5.3.1'; + return '5.3.2'; } function testDirectory(string $file = ''): string diff --git a/src/Plugins/Parallel/Paratest/WrapperRunner.php b/src/Plugins/Parallel/Paratest/WrapperRunner.php index b89191ed..3c3ba9f7 100644 --- a/src/Plugins/Parallel/Paratest/WrapperRunner.php +++ b/src/Plugins/Parallel/Paratest/WrapperRunner.php @@ -173,7 +173,7 @@ final class WrapperRunner implements RunnerInterface $this->timer->start(); - $this->runTmpDir = $this->createPrivateRunTmpDir(); + $this->runTmpDir = $this->createRunTmpDir(); $this->startWorkers(); $this->assignAllPendingTests(); $this->waitForAllToFinish(); @@ -208,17 +208,17 @@ final class WrapperRunner implements RunnerInterface } /** @return non-empty-string */ - private function createPrivateRunTmpDir(): string + private function createRunTmpDir(): string { $runTmpDir = sprintf( - '%s%spest_%s', + '%s%sparatest_%s', $this->options->tmpDir, DIRECTORY_SEPARATOR, bin2hex(random_bytes(16)), ); if (! @mkdir($runTmpDir, 0700)) { - throw new RuntimeException(sprintf('Unable to create private temporary directory "%s"', $runTmpDir)); + throw new RuntimeException(sprintf('Unable to create the private temporary directory [%s].', $runTmpDir)); } return $runTmpDir; @@ -410,44 +410,26 @@ final class WrapperRunner implements RunnerInterface array_merge_recursive($testResultSum->testTriggeredPhpunitErrorEvents(), $testResult->testTriggeredPhpunitErrorEvents()), array_merge_recursive($testResultSum->testTriggeredPhpunitNoticeEvents(), $testResult->testTriggeredPhpunitNoticeEvents()), array_merge_recursive($testResultSum->testTriggeredPhpunitWarningEvents(), $testResult->testTriggeredPhpunitWarningEvents()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->testRunnerTriggeredDeprecationEvents(), $testResult->testRunnerTriggeredDeprecationEvents()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->testRunnerTriggeredNoticeEvents(), $testResult->testRunnerTriggeredNoticeEvents()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->testRunnerTriggeredWarningEvents(), $testResult->testRunnerTriggeredWarningEvents()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->testRunnerTriggeredIssueDeprecationEvents(), $testResult->testRunnerTriggeredIssueDeprecationEvents()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->testRunnerTriggeredIssueErrorEvents(), $testResult->testRunnerTriggeredIssueErrorEvents()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->testRunnerTriggeredIssueNoticeEvents(), $testResult->testRunnerTriggeredIssueNoticeEvents()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->testRunnerTriggeredIssuePhpDeprecationEvents(), $testResult->testRunnerTriggeredIssuePhpDeprecationEvents()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->testRunnerTriggeredIssuePhpNoticeEvents(), $testResult->testRunnerTriggeredIssuePhpNoticeEvents()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->testRunnerTriggeredIssuePhpWarningEvents(), $testResult->testRunnerTriggeredIssuePhpWarningEvents()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->testRunnerTriggeredIssueWarningEvents(), $testResult->testRunnerTriggeredIssueWarningEvents()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->errors(), $testResult->errors()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->deprecations(), $testResult->deprecations()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->notices(), $testResult->notices()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->warnings(), $testResult->warnings()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->phpDeprecations(), $testResult->phpDeprecations()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->phpNotices(), $testResult->phpNotices()), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->phpWarnings(), $testResult->phpWarnings()), + array_merge($testResultSum->testRunnerTriggeredDeprecationEvents(), $testResult->testRunnerTriggeredDeprecationEvents()), + array_merge($testResultSum->testRunnerTriggeredNoticeEvents(), $testResult->testRunnerTriggeredNoticeEvents()), + array_merge($testResultSum->testRunnerTriggeredWarningEvents(), $testResult->testRunnerTriggeredWarningEvents()), + array_merge($testResultSum->testRunnerTriggeredIssueDeprecationEvents(), $testResult->testRunnerTriggeredIssueDeprecationEvents()), + array_merge($testResultSum->testRunnerTriggeredIssueErrorEvents(), $testResult->testRunnerTriggeredIssueErrorEvents()), + array_merge($testResultSum->testRunnerTriggeredIssueNoticeEvents(), $testResult->testRunnerTriggeredIssueNoticeEvents()), + array_merge($testResultSum->testRunnerTriggeredIssuePhpDeprecationEvents(), $testResult->testRunnerTriggeredIssuePhpDeprecationEvents()), + array_merge($testResultSum->testRunnerTriggeredIssuePhpNoticeEvents(), $testResult->testRunnerTriggeredIssuePhpNoticeEvents()), + array_merge($testResultSum->testRunnerTriggeredIssuePhpWarningEvents(), $testResult->testRunnerTriggeredIssuePhpWarningEvents()), + array_merge($testResultSum->testRunnerTriggeredIssueWarningEvents(), $testResult->testRunnerTriggeredIssueWarningEvents()), + array_merge($testResultSum->errors(), $testResult->errors()), + array_merge($testResultSum->deprecations(), $testResult->deprecations()), + array_merge($testResultSum->notices(), $testResult->notices()), + array_merge($testResultSum->warnings(), $testResult->warnings()), + array_merge($testResultSum->phpDeprecations(), $testResult->phpDeprecations()), + array_merge($testResultSum->phpNotices(), $testResult->phpNotices()), + array_merge($testResultSum->phpWarnings(), $testResult->phpWarnings()), $testResultSum->numberOfIssuesIgnoredByBaseline() + $testResult->numberOfIssuesIgnoredByBaseline(), self::numberOfDeprecationsByTrigger($testResultSum, $testResult), - // @phpstan-ignore-next-line - array_merge_recursive($testResultSum->retriedTests(), $testResult->retriedTests()), + array_merge($testResultSum->retriedTests(), $testResult->retriedTests()), ); } @@ -656,7 +638,7 @@ final class WrapperRunner implements RunnerInterface */ private function getTestFiles(SuiteLoader $suiteLoader): array { - /** @var array $files */ + /** @var array $files */ $files = []; foreach (array_filter( @@ -668,7 +650,7 @@ final class WrapperRunner implements RunnerInterface } foreach (TestSuite::getInstance()->tests->getFilenames() as $filename) { - if ($this->shouldIncludeBootstrappedTestFile($filename)) { + if ($filename !== '' && $this->shouldIncludeBootstrappedTestFile($filename)) { $resolved = realpath($filename) ?: realpath($this->options->cwd.DIRECTORY_SEPARATOR.$filename) ?: $filename; @@ -676,7 +658,7 @@ final class WrapperRunner implements RunnerInterface } } - return array_keys($files); // @phpstan-ignore-line + return array_keys($files); } private function shouldIncludeBootstrappedTestFile(string $filename): bool diff --git a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap index b2480b86..2a5abd6b 100644 --- a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap @@ -1,5 +1,5 @@ - Pest Testing Framework 5.3.1. + Pest Testing Framework 5.3.2. USAGE: pest [options] diff --git a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap index 414bbe82..e71390a4 100644 --- a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap @@ -1,3 +1,3 @@ - Pest Testing Framework 5.3.1. + Pest Testing Framework 5.3.2.