Skip to content

fix: parse #[Depends] attributes when building retry filters#17

Merged
ItzNotABug merged 2 commits into
ItzNotABug:mainfrom
ChiragAgg5k:fix/phpunit-depends-attributes
Jul 16, 2026
Merged

fix: parse #[Depends] attributes when building retry filters#17
ItzNotABug merged 2 commits into
ItzNotABug:mainfrom
ChiragAgg5k:fix/phpunit-depends-attributes

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Teach the dependency parser to resolve #[Depends('…')] (and the FQCN attribute form) in addition to @depends docblocks.

Why

Retries filter failed tests via the dependency graph. Suites that only use PHPUnit 10 attributes (e.g. Appwrite Cloud e2e) had an empty graph, so retries ran the failed method alone → PHPUnit skipped it → exit 0 → false green.

Test plan

  • bun test tests/unit/
  • CI on this PR

PHPUnit 10+ suites use #[Depends] instead of @Depends docblocks.
Without attribute support, retries omit prerequisites, PHPUnit skips
the failed test, and exit 0 falsely marks the suite as passed.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ChiragAgg5k
ChiragAgg5k force-pushed the fix/phpunit-depends-attributes branch from f5478cd to ab2624a Compare July 16, 2026 08:33
@ChiragAgg5k ChiragAgg5k changed the title fix: resolve #[Depends] attributes and reject skip-as-pass retries fix: parse #[Depends] attributes when building retry filters Jul 16, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
@ItzNotABug
ItzNotABug merged commit c3585ae into ItzNotABug:main Jul 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants