-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: add psalm static analysis workflow #396
Conversation
Warning Rate limit exceeded@lotyp has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 29 minutes and 39 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughThe updates introduce new static and dependency analysis workflows, enhance Composer validation, and refine database configurations for testing. Additionally, type declarations for constants in PHP files are updated, and the PHP version in coding standards workflow is bumped to 8.3.7 with the addition of the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- .github/workflows/static-analysis.yml (1 hunks)
- app/psalm-baseline.xml (5 hunks)
Files skipped from review due to trivial changes (1)
- app/psalm-baseline.xml
Additional comments not posted (8)
.github/workflows/static-analysis.yml (8)
97-98
: The checkout step is correctly configured.
100-106
: The PHP setup step is correctly configured with appropriate PHP version and extensions.
108-109
: The setup of problem matchers is correctly configured to enhance error reporting.
111-112
: The validation of composer files is correctly configured, ensuring consistency in PHP dependency configurations.
114-117
: Setting up the composer cache directory is correctly configured to optimize dependency installation times.
119-124
: The restoration of cached dependencies is correctly configured, which is essential for efficient build processes.
126-130
: The installation of dependencies is correctly configured to ensure compatibility across different setups.
132-133
: The static analysis step usingvimeo/psalm
is correctly configured, aligning with the PR's objectives to enhance code quality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
.github/workflows/dependency-analysis.yml (1)
77-86
: Use of phive for dependency management andcomposer-require-checker
for dependency analysis are appropriate. Consider documenting the use of phive to aid in maintenance and understanding.
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
app/composer.lock
is excluded by!**/*.lock
Files selected for processing (2)
- .github/workflows/dependency-analysis.yml (1 hunks)
- Makefile (1 hunks)
Files skipped from review due to trivial changes (1)
- Makefile
Additional comments not posted (4)
.github/workflows/dependency-analysis.yml (4)
3-15
: Trigger conditions are appropriately set for dependency analysis.
40-57
: Setup of PHP and validation of composer files are well-handled using specific versions of actions and tools for reproducibility.
23-39
: Job setup with matrix strategy for OS and PHP versions is robust. Consider increasing the timeout if builds frequently exceed the current limit.Verification successful
No timeout issues were found in the recent build logs, indicating that the current timeout setting is likely sufficient.
Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check recent build logs for timeout issues. # Test: Search for timeout logs. Expect: No frequent timeout logs. gh pr view 396 --json comments --jq '.[] | select(.body | contains("timeout"))'Length of output: 148
Script:
#!/bin/bash # Description: Check recent build logs for timeout issues. # Test: Search for timeout logs. Expect: No frequent timeout logs. gh pr view 396 --json comments --jq '.comments[] | select(.body | contains("timeout"))'Length of output: 89
59-76
: Caching and installation of dependencies are efficiently handled. Keep an eye on the custom GitHub Actions used here for any updates or issues.Verification successful
The latest release of the custom GitHub Actions used (
wayofdev/gh-actions
) isv3.1.0
, which matches the version specified in your workflow. This indicates that you are using the most recent version of the action.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check for updates or issues related to custom GitHub Actions used. # Test: Search for recent issues or updates. Expect: No critical issues or updates. gh repo view wayofdev/gh-actions --json releases --jq '.[0].tagName'Length of output: 1170
Script:
#!/bin/bash # Description: Check for updates or issues related to custom GitHub Actions used. # Test: Search for recent issues or updates. Expect: No critical issues or updates. gh repo view wayofdev/gh-actions --json latestRelease --jq '.latestRelease.tagName'Length of output: 90
38a6273
to
c00b143
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
app/composer.lock
is excluded by!**/*.lock
Files selected for processing (9)
- .github/workflows/dependency-analysis.yml (1 hunks)
- .github/workflows/static-analysis.yml (2 hunks)
- .github/workflows/testing.yml (1 hunks)
- Makefile (2 hunks)
- app/composer.json (1 hunks)
- app/config/database.php (1 hunks)
- app/phpunit.xml.dist (2 hunks)
- app/src/Bridge/Laravel/Providers/RouteServiceProvider.php (1 hunks)
- app/tests/Bridge/Laravel/Admin/Category/Controllers/CategoryControllerTest.php (1 hunks)
Files skipped from review due to trivial changes (1)
- app/tests/Bridge/Laravel/Admin/Category/Controllers/CategoryControllerTest.php
Files skipped from review as they are similar to previous changes (3)
- .github/workflows/dependency-analysis.yml
- .github/workflows/static-analysis.yml
- Makefile
Additional comments not posted (5)
app/src/Bridge/Laravel/Providers/RouteServiceProvider.php (1)
22-22
: Type declaration for constantHOME
enhances type safety and is a good practice in modern PHP.app/phpunit.xml.dist (1)
31-31
: SettingDB_CONNECTION
to "memory" is appropriate for testing environments and can lead to faster test execution..github/workflows/testing.yml (1)
1-93
: The testing workflow is well-structured and includes all necessary steps for robust testing. Using a matrix strategy for different PHP versions and dependencies is a good practice.app/config/database.php (1)
26-32
: The addition of the 'memory' database connection is well-configured for use with SQLite's in-memory feature, ideal for testing environments.app/composer.json (1)
149-154
: SettingDB_CONNECTION
to "memory" in test scripts is consistent with other configuration changes and supports using an in-memory database for testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- .github/workflows/testing.yml (1 hunks)
- app/composer.json (1 hunks)
- app/config/database.php (1 hunks)
- app/phpunit.xml.dist (2 hunks)
Files skipped from review as they are similar to previous changes (4)
- .github/workflows/testing.yml
- app/composer.json
- app/config/database.php
- app/phpunit.xml.dist
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #396 +/- ##
==========================================
Coverage 48.36% 48.36%
Complexity 48 48
==========================================
Files 23 23
Lines 122 122
==========================================
Hits 59 59
Misses 63 63 ☔ View full report in Codecov by Sentry. |
e0a500f
to
728ed37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- .github/workflows/coding-standards.yml (1 hunks)
- .github/workflows/testing.yml (1 hunks)
- app/composer.json (1 hunks)
- app/config/database.php (1 hunks)
- app/phpunit.xml.dist (2 hunks)
Files skipped from review as they are similar to previous changes (4)
- .github/workflows/testing.yml
- app/composer.json
- app/config/database.php
- app/phpunit.xml.dist
Additional comments not posted (1)
.github/workflows/coding-standards.yml (1)
160-161
: Update PHP version and adddecimal
extension.The update to PHP version
8.3.7
and the addition of thedecimal
extension align with the latest PHP standards and requirements for precision arithmetic operations. This is a good practice to ensure the workflow uses the most current and supported PHP features.
Summary by CodeRabbit
New Features
vimeo/psalm
in GitHub Actions workflow.Improvements
Updates
8.3.7
and addeddecimal
extension in coding standards workflow.RouteServiceProvider
andCategoryControllerTest
.