-
-
Notifications
You must be signed in to change notification settings - Fork 47
[4.0] Use HttpFactory to fetch zip file from CI server #249
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
[4.0] Use HttpFactory to fetch zip file from CI server #249
Conversation
roland-d
left a comment
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.
@richard67 Can you please rebase this to the master branch as the master branch is now the working branch for Patch Tester 4. Thank you.
| $result = null; | ||
| } | ||
|
|
||
| if ($result === null || ($result->code != 200 && $result->code != 310)) |
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.
@richard67 Please use the functions instead of the magic getter. So $result->getStatusCode()
| Folder::create($tempPath); | ||
| file_put_contents($zipPath, fopen($serverZipPath, "r")); | ||
| // Assign to variable to avlod PHP notice "Indirect modification of overloaded property" | ||
| $content = $result->body; |
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.
@richard67 Please use (string) $result->getBody() instead of the magic getter
|
@roland-d Will do so, but give me a bit time. |
Pull Request for Issue #233 .
Summary of Changes
See the title.
Testing Instructions
Verify that applying and reverting a PR which requires the CI server (e.g. PR joomla/joomla-cms#26845) still works without issues.
Important note: Do NOT test with a PR which changes composer dependencies like e.g. PR joomla/joomla-cms#26440. There happens a fatal error which seems to be caused by missing or removed 3rd party libraries. This is the case with and without this PR here, am investigating further.
You need the latest patchtester release https://github.com/joomla-extensions/patchtester/releases/tag/4.0.0-beta2 plus the changes from PR's merged after that release + the changes of this PR here.
You can download a patched patchtester 4.0.0-beta2 with all these changes here: https://test5.richard-fath.de/com_patchtester_4.0.0.beta3-dev-3.zip. This package also contains the change from PR #246 .