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

Add force removing system for some files #609

Merged
merged 1 commit into from Aug 1, 2023

Conversation

boherm
Copy link
Member

@boherm boherm commented Aug 1, 2023

Questions Answers
Description? In some case, we have a error about circuit breaker system
when we upgrade from < 1.7.8.X to 8.X.
This anomaly come when a news.yml file stay in filesystem.
(on 8.X versions, we have delete this file)
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#33446
Maybe PrestaShop/PrestaShop#30761
Sponsor company PrestaShop SA
How to test? 1. Install 1.7.8.10.
2. Upgrade to 8.1.1 version.
3. The upgrade must be done with success.

Copy link
Contributor

@matks matks left a comment

Choose a reason for hiding this comment

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

I think it's a good idea.

Even though the file is supposed to be deleted by the module, we know sometimes it fails. We know the deletion failure can happen if no XML file is provided, but it could also happen if a I/O fails at this moment.

So this workaround is OK 👍 . I think it's a good thing to force deletion of files we know are problematic if they stay around

@tleon
Copy link
Contributor

tleon commented Aug 1, 2023

I'm working on testing this.

@MatShir MatShir modified the milestones: 4.14.2, 4.16.2 Aug 1, 2023
@matks
Copy link
Contributor

matks commented Aug 1, 2023

Related to PrestaShop/PrestaShop#33520

@tleon
Copy link
Contributor

tleon commented Aug 1, 2023

It's all good for me. Upgraded from 1.7.8.10 to 8.1.0. Everything went well.

Copy link

@AureRita AureRita left a comment

Choose a reason for hiding this comment

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

Hi @boherm

Thank you for your PR, I tested it with florine and :
1.7.8.9 -> 8.1.1 ✔️
8.0.4 -> 8.1.1 ✔️
1.7.8.10 -> 8.1.1 ✔️
8.0.5 -> 8.1.1 ✔️
8.1.0 -> 8.1.1 ✔️
1.7.8.8 -> 8.1.1 ✔️

So it's a QA ✔️

Thank you

@Hlavtox Hlavtox merged commit 42b5319 into PrestaShop:dev Aug 1, 2023
26 checks passed
@Hlavtox
Copy link
Contributor

Hlavtox commented Aug 1, 2023

Thank you @boherm!

@boherm boherm deleted the fix-circuit-breaker-service-error branch August 2, 2023 07:48
@Hlavtox Hlavtox mentioned this pull request Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
7 participants