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

Upgrade Symfony to 3.4 LTS #8515

Merged
merged 2 commits into from
Mar 12, 2018
Merged

Upgrade Symfony to 3.4 LTS #8515

merged 2 commits into from
Mar 12, 2018

Conversation

mickaelandrieu
Copy link
Contributor

@mickaelandrieu mickaelandrieu commented Nov 20, 2017

Questions Answers
Branch? develop
Description? Symfony 3.4 LTS will be released on 30th of november, time to upgrade our deps!
Type? improvement
Category? BO
BC breaks? no
Deprecations? no
Forge issue? http://forge.prestashop.com/browse/BOGOSS-90
How to test? Tests should pass with an updated composer.lock file + "Clear Cache" action in Performance page should not break.

This change is Reviewable

composer.json Outdated
"symfony-tests-dir": "tests",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
},
"author": "PrestaShop",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

for what it means, the "author" key is not allowed in Composer configuration => https://getcomposer.org/doc/04-schema.md#authors

@mickaelandrieu
Copy link
Contributor Author

@jocel1 I don't know why the create-db command is broken: Symfony is looking for ::getDefaultName which exists :/

@mickaelandrieu
Copy link
Contributor Author

Tests still don't pass, the build is green only because I don't have commited the composer.lock file

@mickaelandrieu mickaelandrieu changed the title Updated Symfony deps to 3.4 [WIP] Updated Symfony deps to 3.4 Nov 21, 2017
@mickaelandrieu mickaelandrieu added the 1.7.x Branch label Nov 23, 2017
@mickaelandrieu mickaelandrieu added this to the 1.7.4.0 milestone Nov 27, 2017
@mickaelandrieu mickaelandrieu changed the title [WIP] Updated Symfony deps to 3.4 Upgrade Symfony to 3.4 LTS Nov 28, 2017
@@ -128,7 +127,6 @@
"PrestaShopBundle\\Install\\Upgrade::migrateSettingsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
Copy link
Contributor

Choose a reason for hiding this comment

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

no more installAssets?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we never install assets, as we don't use web folder :)

@PrestaShop PrestaShop deleted a comment Nov 30, 2017
@PrestaShop PrestaShop deleted a comment Nov 30, 2017
@@ -7,6 +7,9 @@ parameters:
prestashop.security.voter.product.class: PrestaShopBundle\Security\Voter\PageVoter

services:
_defaults:
public: true

Copy link
Member

Choose a reason for hiding this comment

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

So you had to set it as default AND for each service?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

only for them where Symfony cry a river, but it was not supposed to happen "in the book" :p

@mickaelandrieu mickaelandrieu reopened this Dec 7, 2017
@PrestaShop PrestaShop deleted a comment Dec 7, 2017
@PrestaShop PrestaShop deleted a comment Dec 7, 2017
@PrestaShop PrestaShop deleted a comment Dec 15, 2017
@PrestaShop PrestaShop deleted a comment Dec 15, 2017
@PrestaShop PrestaShop deleted a comment Dec 15, 2017
@PrestaShop PrestaShop deleted a comment Dec 15, 2017
@@ -36,6 +36,7 @@
try {
require_once(_PS_INSTALL_PATH_.'classes'.DIRECTORY_SEPARATOR.'controllerHttp.php');
require_once(_PS_INSTALL_PATH_.'classes'.DIRECTORY_SEPARATOR.'HttpConfigureInterface.php');
dump(spl_autoload_functions ());die;
Copy link
Contributor

Choose a reason for hiding this comment

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

debug stuff ? :)

@PrestaShop PrestaShop deleted a comment Dec 15, 2017
@mickaelandrieu
Copy link
Contributor Author

@eternoendless I have an issue with "welcome" module installation... any hint?

@Quetzacoalt91
Copy link
Member

See 8b06534

@mickaelandrieu
Copy link
Contributor Author

@Quetzacoalt91 so 1.7.3.x need to be merged into develop again, am I right?

@PrestaShop PrestaShop deleted a comment Dec 15, 2017
if ('dev' === $this->getEnvironment()) {
$bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle();
}

/**
* @see https://symfony.com/doc/2.8/configuration/external_parameters.html#environment-variables
Copy link
Contributor Author

@mickaelandrieu mickaelandrieu Dec 15, 2017

Choose a reason for hiding this comment

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

needs to be removed may be improved before release of 1.7.4

@mickaelandrieu mickaelandrieu added the Waiting for QA Status: action required, waiting for test feedback label Dec 21, 2017
@eternoendless
Copy link
Member

@alegout I choose you! ... to finish up this PR 😄

@marionf marionf removed the Waiting for QA Status: action required, waiting for test feedback label Jan 10, 2018
@mickaelandrieu
Copy link
Contributor Author

@alegout I choose you! ... to finish up this PR 😄

If we're ok to skip the two related tests that can be covered by QA functional tests, there is nothing specific to the migration to finish: decision must be done here, also someone from QA team need to check if Stock Management part of back office still works as expected.

Good luck @alegout, don't hesitate to mail/slack me if you have some questions :)

$sf2Refresh = new Refresh($env);
$sf2Refresh->addCacheClear();
$ret = $sf2Refresh->execute();
$dir = _PS_ROOT_DIR_ . '/var/cache*/' . $env;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

- _PS_ROOT_DIR_ . '/var/cache*/' . $env
+ _PS_ROOT_DIR_ . '/var/cache/' . $env

@marionf
Copy link
Contributor

marionf commented Jan 15, 2018

Hello @mickaelandrieu & @alegout

I have an issue with the installation
capture du 2018-01-15 09-44-57

@marionf marionf added the Waiting for author Status: action required, waiting for author feedback label Jan 15, 2018
@Quetzacoalt91
Copy link
Member

Seen while running the bin/console. Enjoy @alegout 😄


In Configuration.php line 152:
                                                                         
  [Symfony\Component\Debug\Exception\ContextErrorException]              
  Notice: Use of undefined constant _DB_PREFIX_ - assumed '_DB_PREFIX_'  
                                                                         

Exception trace:
 ConfigurationCore::loadConfiguration() at /home/thomas/Documents/github/PrestaShop/classes/Configuration.php:206
 ConfigurationCore::get() at /home/thomas/Documents/github/PrestaShop/src/Adapter/Country/CountryDataProvider.php:61
 PrestaShop\PrestaShop\Adapter\Country\CountryDataProvider->getIsoCodebyId() at /home/thomas/Documents/github/PrestaShop/var/cache/dev/Container9gsikne/appDevDebugProjectContainer.php:1158
 Container9gsikne\appDevDebugProjectContainer->getPrestashop_Addons_ClientApiService() at /home/thomas/Documents/github/PrestaShop/var/cache/dev/Container9gsikne/appDevDebugProjectContainer.php:1182
 Container9gsikne\appDevDebugProjectContainer->getPrestashop_Core_Admin_DataProvider_AddonsInterfaceService() at /home/thomas/Documents/github/PrestaShop/var/cache/dev/Container9gsikne/appDevDebugProjectContainer.php:1196
 Container9gsikne\appDevDebugProjectContainer->getPrestashop_Core_Admin_DataProvider_ModuleInterfaceService() at /home/thomas/Documents/github/PrestaShop/var/cache/dev/Container9gsikne/appDevDebugProjectContainer.php:1289
 Container9gsikne\appDevDebugProjectContainer->getPrestashop_Module_ManagerService() at /home/thomas/Documents/github/PrestaShop/var/cache/dev/Container9gsikne/appDevDebugProjectContainer.php:1329
 Container9gsikne\appDevDebugProjectContainer->getPrestashop_Twig_Extension_AdminService() at /home/thomas/Documents/github/PrestaShop/var/cache/dev/Container9gsikne/appDevDebugProjectContainer.php:1566
 Container9gsikne\appDevDebugProjectContainer->getTwigService() at /home/thomas/Documents/github/PrestaShop/var/cache/dev/Container9gsikne/getTwig_Translation_ExtractorService.php:8
 require() at /home/thomas/Documents/github/PrestaShop/var/cache/dev/Container9gsikne/appDevDebugProjectContainer.php:917
 Container9gsikne\appDevDebugProjectContainer->load() at /home/thomas/Documents/github/PrestaShop/var/cache/dev/Container9gsikne/getTranslation_ExtractorService.php:11
 require() at /home/thomas/Documents/github/PrestaShop/var/cache/dev/Container9gsikne/appDevDebugProjectContainer.php:917
 Container9gsikne\appDevDebugProjectContainer->load() at /home/thomas/Documents/github/PrestaShop/var/cache/dev/Container9gsikne/getConsole_Command_TranslationDebugService.php:8
 require() at /home/thomas/Documents/github/PrestaShop/var/cache/dev/Container9gsikne/appDevDebugProjectContainer.php:917
 Container9gsikne\appDevDebugProjectContainer->load() at /home/thomas/Documents/github/PrestaShop/var/cache/dev/Container9gsikne/getConsole_CommandLoaderService.php:37
 Container9gsikne\appDevDebugProjectContainer->{closure}() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ServiceLocator.php:64
 Symfony\Component\DependencyInjection\ServiceLocator->get() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Console/CommandLoader/ContainerCommandLoader.php:37
 Symfony\Component\Console\CommandLoader\ContainerCommandLoader->get() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:504
 Symfony\Component\Console\Application->has() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:668
 Symfony\Component\Console\Application->all() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:119
 Symfony\Bundle\FrameworkBundle\Console\Application->all() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Console/Descriptor/ApplicationDescription.php:103
 Symfony\Component\Console\Descriptor\ApplicationDescription->inspectApplication() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Console/Descriptor/ApplicationDescription.php:76
 Symfony\Component\Console\Descriptor\ApplicationDescription->getCommands() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Console/Descriptor/TextDescriptor.php:194
 Symfony\Component\Console\Descriptor\TextDescriptor->describeApplication() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Console/Descriptor/Descriptor.php:55
 Symfony\Component\Console\Descriptor\Descriptor->describe() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Console/Helper/DescriptorHelper.php:69
 Symfony\Component\Console\Helper\DescriptorHelper->describe() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Console/Command/ListCommand.php:75
 Symfony\Component\Console\Command\ListCommand->execute() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:252
 Symfony\Component\Console\Command\Command->run() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:956
 Symfony\Component\Console\Application->doRunCommand() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:83
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:240
 Symfony\Component\Console\Application->doRun() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:71
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/thomas/Documents/github/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148
 Symfony\Component\Console\Application->run() at /home/thomas/Documents/github/PrestaShop/bin/console:28

list [--raw] [--format FORMAT] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--id_shop [ID_SHOP]] [--id_shop_group [ID_SHOP_GROUP]] [--] [<command>] [<namespace>]

@alegout alegout assigned mickaelandrieu and unassigned alegout Mar 7, 2018
@mickaelandrieu mickaelandrieu removed WIP Waiting for author Status: action required, waiting for author feedback labels Mar 8, 2018
@mickaelandrieu
Copy link
Contributor Author

tests are green, and I've managed to install/re-install successfully: can you review this pull request one more time @marionf please? :)

@mickaelandrieu mickaelandrieu added the Waiting for QA Status: action required, waiting for test feedback label Mar 8, 2018
@marionf
Copy link
Contributor

marionf commented Mar 8, 2018

@mickaelandrieu

I have an issue when I try to clear the cache
capture du 2018-03-08 14-37-20

@marionf marionf added Waiting for author Status: action required, waiting for author feedback and removed Waiting for QA Status: action required, waiting for test feedback labels Mar 8, 2018
@mickaelandrieu
Copy link
Contributor Author

@marionf done! Just forgot 1 very old commit :)

@marionf marionf added QA ✔️ Status: check done, code approved and removed Waiting for author Status: action required, waiting for author feedback labels Mar 8, 2018
@marionf
Copy link
Contributor

marionf commented Mar 8, 2018

Ok for me :)

@eternoendless
Copy link
Member

🎉

@eternoendless eternoendless merged commit e8840f0 into PrestaShop:develop Mar 12, 2018
@mickaelandrieu mickaelandrieu deleted the bogoss/sf3.4 branch March 12, 2018 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.x Branch QA ✔️ Status: check done, code approved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants