Skip to content
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

Fix #80: Added a check on current server's php.ini's 'max_execution_time' requiring it to exceed the time specified / tested application's comfortable installation time #81

Merged
merged 7 commits into from
Nov 13, 2024

Conversation

rossaddison
Copy link
Contributor

Q A
Is bugfix?
New feature? ✔️
Breaks BC?

This would be a useful check prior to installation preventing unnecessary installation timeouts.

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Project coverage is 13.30%. Comparing base (9d19614) to head (0ac14d3).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/RequirementsChecker.php 0.00% 8 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #81      +/-   ##
============================================
- Coverage     15.48%   13.30%   -2.18%     
- Complexity       57       60       +3     
============================================
  Files             4        4              
  Lines           452      526      +74     
============================================
  Hits             70       70              
- Misses          382      456      +74     

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

composer.json Outdated Show resolved Hide resolved
src/RequirementsChecker.php Outdated Show resolved Hide resolved
* @param string|null $max
* @return bool
*/
public function checkMaxExecutionTime(?string $max = null): bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why string if the time is int?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just following the above function checkUploadMaxFileSize which uses strings for min and max. Yes should be int.

src/RequirementsChecker.php Outdated Show resolved Hide resolved
rossaddison and others added 3 commits November 12, 2024 17:30
Co-authored-by: Alexander Makarov <[email protected]>
Co-authored-by: Alexander Makarov <[email protected]>
Co-authored-by: Alexander Makarov <[email protected]>
@samdark
Copy link
Member

samdark commented Nov 13, 2024

All good. Please add a line for CHANGELOG.

@samdark samdark changed the title Update RequirementsChecker.php with max execution time Fix #80: Added a check on current server's php.ini's 'max_execution_time' requiring it to exceed the time specified / tested application's comfortable installation time Nov 13, 2024
@samdark samdark merged commit 475b6fa into yiisoft:master Nov 13, 2024
22 of 23 checks passed
@samdark
Copy link
Member

samdark commented Nov 13, 2024

Thank you!

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