What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello, does anyone had the problem, that changes in Tests (e.g. `PyzTest/Yves/Customer/Presentation/

s.kroll
s.kroll Posts: 118 🪐 - Explorer

Hello, does anyone had the problem, that changes in Tests (e.g. PyzTest/Yves/Customer/Presentation/..) are visible in the file (checked via cat filename) inside the cli-Container (current docker/sdk 1.16.3) but not reflected when I run the test itself. The failing test still shows that the old code (prior to the file-change) is used?

Comments

  • s.kroll
    s.kroll Posts: 118 🪐 - Explorer

    A "fix" is to stop the CLI-Container, remove the stopped-container, and restart via docker/Sdk testing

  • s.kroll
    s.kroll Posts: 118 🪐 - Explorer

    I tried using an older version of the docker/sdk (1.10.1, the one I used till last week) and the problem disappeared.

  • sprymiker
    sprymiker Sprykee Posts: 781 🧑🏻‍🚀 - Cadet

    We have ticket for that. opcache related stuff. But no fix yet. The workaround to disable opcache.

  • s.kroll
    s.kroll Posts: 118 🪐 - Explorer

    Ah, thank you for the response. I've already thought about php's internal cache but did not found a way to check this

  • s.kroll
    s.kroll Posts: 118 🪐 - Explorer

    I just had a moment to take a look at the php-config: So you would suggest to change the opcache.enable = 1 to 0 in all occurances in docker/deplyoment/default/context/php/conf.d/*.ini ? Or is there a better place to do this @ULYHPR789?

  • sprymiker
    sprymiker Sprykee Posts: 781 🧑🏻‍🚀 - Cadet

    There is much better way.

    image:
        tag: spryker/php:7.3-alpine3.10 # your image
        php:
            ini:
                "opcache.revalidate_freq": 0
                "opcache.enable_cli": 0
                "opcache.enable": 0
    

    Adjust your deploy.yml

  • s.kroll
    s.kroll Posts: 118 🪐 - Explorer

    thats definetly a better way 😄 thank you very much. I did not know about this possibility so far