Skip to content

Move coding standards to the shared v1 workflow and modernize tooling - #8

Merged
koriym merged 4 commits into
1.xfrom
modernize-ci-tooling
Nov 23, 2026
Merged

koriym merged 4 commits into
1.xfrom
modernize-ci-tooling

Conversation

@koriym

@koriym koriym commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Coding Standards: ray-di/.github/.github/workflows/coding-standards.yml@v2 (stale branch, PHP fixed at 8.3) → @v1 with php_version: 8.4. CI and Static Analysis were already on @v1.
  • Dev tools: PHPUnit ^10.5.46 → ^11.5 (the newest major PHP 8.2 allows), PHPStan ^1.10 → ^2.1, PHPMD ^2.15 → ^3.0, PHP_CodeSniffer ^3.8 → ^4.0, Psalm ^5.18 || ^6.0 || ^7.0 → ^6.0 || ^7.0 (Psalm 5 needs nikic/php-parser 4 and cannot install next to PHPUnit 11; Psalm 7 keeps PHP 8.6 installable).
  • Removed the unused bamarni/composer-bin-plugin (no vendor-bin/ directory) and the stale dealerdirect allow-plugins entry.
  • phpunit.xml.dist schema 11.5, psalm.xml schemaLocation points to vendor/vimeo/psalm, composer sa uses the phpmd analyze syntax.
  • PHPStan 2 findings in tests fixed (always-true assertIsArray, @var class-string on literals).
  • Added .gitattributes (export-ignore for tests and tool configs), ignored build/ and coverage.xml, removed RELEASE-NOTES-1.0.0-rc1.md (duplicates the GitHub release and CHANGELOG), fixed the fixtures' $schema path.
  • Added the MIT LICENSE file declared in composer.json.

No change to src/, the PHP floor (^8.2), or runtime dependencies.

Local checks (PHP 8.4)

phpunit, phpcs, phpstan, psalm, phpmd, composer-require-checker, composer validate --strict pass; lowest dependencies pass PHPUnit on PHP 8.2.

Summary by CodeRabbit

  • Documentation
    • Added an MIT license.
    • Removed the 1.0.0-rc1 release notes.
  • Chores
    • Updated development and testing tool configurations, and added build and coverage outputs to ignored files.
    • Updated repository export settings and corrected schema references used by test fixtures.
  • Tests
    • Adjusted test checks for query results and invalid entity and factory cases.

- Call ray-di/.github coding-standards.yml@v1 with php_version 8.4 instead of the stale v2 branch.
- PHPUnit ^11.5 (the newest major PHP 8.2 allows), PHPStan ^2.1, PHPMD ^3.0, PHP_CodeSniffer ^4.0; Psalm ^6.0 || ^7.0 since Psalm 5 cannot install next to PHPUnit 11.
- Remove the unused bamarni/composer-bin-plugin and its config; there is no vendor-bin directory.
- Point the PHPUnit and Psalm schema locations at the installed versions and use the phpmd analyze syntax in the sa script.
- Drop assertions PHPStan 2 reports as always true, and supply the missing-entity class name from a fixture instead of a @var on a literal.
- Add .gitattributes so tests and tool configs are left out of the dist archive.
- Ignore the build/ and coverage.xml outputs of the coverage scripts.
- Remove RELEASE-NOTES-1.0.0-rc1.md; the GitHub release and CHANGELOG.md hold the same notes.
- Point the fixtures' $schema at docs/web_query.json, where the schema lives.
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c5c0b3e) to head (dfbac53).

Additional details and impacted files
@@             Coverage Diff             @@
##                 1.x        #8   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity        66        66           
===========================================
  Files             11        11           
  Lines            167       167           
===========================================
  Hits             167       167           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@koriym

koriym commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request updates repository export and ignore rules, adds an MIT license, removes the 1.0.0-rc1 release notes, revises PHP tooling and CI configuration, and adjusts test fixtures and assertions.

Changes: Repository and test-tooling updates

Layer / File(s) Summary
PHP tooling and CI configuration
.github/workflows/coding-standards.yml, composer.json, phpunit.xml.dist, psalm.xml
The coding-standards workflow switches to version v1 and passes PHP 8.4. Development tool constraints and the PHPMD command are updated. PHPUnit uses the 11.5 schema, and the Psalm schema path changes.
Test fixtures and assertions
tests/Fake/FakeMissingEntity.php, tests/Fake/*.json, tests/WebQueryBdrTest.php, tests/WebResponseMapperTest.php
The fixture schema paths change. The invalid-entity test inputs change, and two array-type assertions are removed. Other described test assertions remain.
Repository metadata and release files
.gitattributes, .gitignore, LICENSE, RELEASE-NOTES-1.0.0-rc1.md
Git export and ignore rules are added. The MIT license is added, and the 1.0.0-rc1 release-notes file is removed.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Merge Risk: Minimal · up to dfbac

This PR updates development tooling, CI configuration, test fixtures and repository metadata, and adds the MIT license. It does not change runtime source or runtime dependencies. CI runs for the reviewed commit succeeded, and no merge-blocking concern remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: the coding-standards workflow moves to the shared v1 workflow with PHP 8.4. It also names the tooling modernization, which the PR does through the PHPUnit, PHPStan, PH…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the coding-standards workflow moves to the shared v1 workflow with PHP 8.4. It also names the tooling modernization, which the PR does through the PHPUnit, PHPStan, PHPMD, PHP_CodeSniffer, and Psalm version updates. The title does not mention the other cleanup items (license, release notes removal, export-ignore), but it does not need to cover every detail.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML; Path: .coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9f3ccb69-a2fc-47d6-9046-dd6e7038531f
Commits

Reviewing files that changed from the base of the PR and between c5c0b3e and dfbac53.

Files selected for processing: 13

  • .gitattributes
  • .github/workflows/coding-standards.yml
  • .gitignore
  • LICENSE
  • RELEASE-NOTES-1.0.0-rc1.md
  • composer.json
  • phpunit.xml.dist
  • psalm.xml
  • tests/Fake/FakeMissingEntity.php
  • tests/Fake/web_product.json
  • tests/Fake/web_query.json
  • tests/WebQueryBdrTest.php
  • tests/WebResponseMapperTest.php
Files with no reviewable changes: 2

  • RELEASE-NOTES-1.0.0-rc1.md
  • tests/WebQueryBdrTest.php

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@koriym
koriym merged commit 9dde3a0 into 1.x Nov 23, 2026
37 checks passed
@koriym
koriym deleted the modernize-ci-tooling branch November 23, 2026 16:49
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.

1 participant