-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Product Comments v6.0.0 unzips incorrectly into the modules folder #33728
Product Comments v6.0.0 unzips incorrectly into the modules folder #33728
Comments
I confirm this problem. The correct release zip must has productcomments folder inside, but this 6.0.0 release does not. Amazingly, the Artifacts zip in Build & Release draft at https://github.com/PrestaShop/productcomments/actions/runs/5951694823 is correct. |
@leemyongpakvn Yeah, but the release update workflow is broken and doesn't work. So somebody did it manually - badly. |
In order to un-publish productcomments 6.0.0 from Distribution API I just marked it as "pre-release" in https://github.com/PrestaShop/productcomments/releases/tag/v6.0.0 . It will not be featured by https://api.prestashop-project.org/modules/8.1.1 in one hour, when the cron behind Distribution API refreshes the data. |
The ZIP archive A in https://github.com/PrestaShop/productcomments/releases/tag/v6.0.0 seems correct while the ZIP For example archive B contains Something wrong happened between the GitHub release artifact and Distribution API storing it for download. |
Indeed #33749 |
Productcomments 6.0.0 is no more pushed by Distribution API to PS instances https://api.prestashop-project.org/modules/8.1.1 In order to resume pushing, the github release must be modified so it is not pre-release. Please only do this after solving the problem. |
I just saw, there are 3 concerns for me:
|
Indeed, you can find the zip in the summary of actions (https://github.com/PrestaShop/productcomments/actions/runs/5953972519) |
@M0rgan01 My screenshots are in case of pre-release, and update_release_draft is skipped. |
@leemyongpakvn Yes I saw, but I think even when merging on master I could have retrieved the zip built by the build step if I would have known 👍 |
@M0rgan01 OK. Let's try to fix this issue with productcomments 6.0.1 at PrestaShop/productcomments#181 |
We are finally obligated to create a new release, 6.0.1, to fix the issue. Even if we manually update the zip file and republish the release, the zip download link will not be updated. |
FYI, at least 3 modules Release that built with current Organization Build & Release but still have correct structure:
|
@leemyongpakvn I did it manually, that's why it's correct. :-) See https://github.com/PrestaShop/ps_linklist/actions/runs/5354084130 |
@Hlavtox I see ;) How about 2 other releases in March ? |
@Hlavtox We have clearer information when testing locally in productcomments repo with update_release_draft |
It looks like we need to replace outdated upload-release-asset@v1.0.2 by https://github.com/softprops/action-gh-release |
I think the problem comes from the PR PrestaShop/.github#7. When going from actions/download-artifact@v1 to actions/download-artifact@v2, the tree structure changed. See https://github.com/actions/download-artifact/tree/releases/v2#compatibility-between-v1-and-v2. @leemyongpakvn |
@M0rgan01 There are some thoughts, and we must try and fail till success ;) It is still risky with testing locally on productcomments. I see bot has just updated productcomments in https://github.com/PrestaShop/native-modules to v6.0.1. The client had problem with v6.0.0 upgrade, if they do v6.0.1 upgrade, then will be forced to downgrade back to 5.0.3, then they will be upset 😠 |
Hi @leemyongpakvn you're right to be careful 😉 but if I can reassure you
|
Distribution API now successfully serves productcomments 6.0.1 https://api.prestashop-project.org/modules/8.1.1 and @M0rgan01 was able to successfully install it from the API 😉 |
@Julian-Collins Can you retry? The problem should be fixed by release 6.0.1 |
@matks - Its installs now into the right folder but errors when trying configure Oops... looks like an unexpected error occurred. You have requested a non-existent service "product_comment_repository". [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException 0] Im doing this on a test clone of my live site so im happy to provide more debug info if you require |
Stack trace from debug mode: at vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:289 |
OK so at least it installs 😄 now it's no more a install process bug, it's a "regular" behavior bug The missing service |
@matks - Clearing the cache made no difference , its still throwing the exception |
I have managed to get it working again by reseting the module. |
Ah 😄 we dont talk about the same issue. I talk about the issue "Product Comments v6.0.0 unzips incorrectly into the modules folder": this one is fixed by 6.0.1 . The latest release now correctly unzips. But I agree there is another issue remaining, the one which created the situation 😉 the problem with the GitHub Action. |
@matks So we will continue with the remaining issue locally before apply globally in Organization Build&Release ? |
@leemyongpakvn We have targeted the problem, which is the update of the download-artifact action. I propose a fix directly on the repository .github PrestaShop/.github#9 |
@Julian-Collins @florine2623 This issue was solved by PrestaShop/productcomments#186 |
v6.0.2 isnt visible to upgrade to in my modules yet - will check again later |
@Julian-Collins v6.0.2 is available in Module Updates now. |
Thanks @leemyongpakvn - I have seen it and updated |
@leemyongpakvn Is the problem solved for all modules or only productcomments? |
If it's fixed for every module 😄 we can close this issue |
@matks The problem is fixed locally for productcomments first, then apply globally for all modules via Organization .github. Julian-Collins updated productcomments to v6.0.2 and did not report any issue so we can consider it is OK now (it is really OK on my side :). |
Youhou! 🎉 |
Prerequisites
Describe the bug and add attachments
I have tried to update the product comments module to v6.0.0 that was released yesterday and its unpacking the payload directing into the modules folder. i.e /modules and keeps repeatedy showing as the update is required
where it should be into /modules/productcomments
It looks like the release file has https://github.com/PrestaShop/productcomments/releases/tag/v6.0.0 not been zipped up correctly as its not got the directory structure within it
Expected behavior
Updated module should unzip into modules/productcomments
Steps to reproduce
PrestaShop version(s) where the bug happened
8.1.1
PHP version(s) where the bug happened
8.1
If your bug is related to a module, specify its name and its version
productcomments v6.0.0
Your company or customer's name goes here (if applicable).
No response
The text was updated successfully, but these errors were encountered: