Skip to content

CI: PHPStan job fails with 'No such container: temp-ps' on latest and 8.0 tags #43

Description

@mattgoud

Bug description

The PHPStan CI job fails on the latest and 8.0 PrestaShop Docker image tags with the following error:

```
Error response from daemon: No such container: temp-ps
```

Root cause

The tests/phpstan.sh script starts a PrestaShop container in the background to hold the PS volume:

```bash
docker run -tid --rm -v ps-volume:/var/www/html --name temp-ps prestashop/prestashop:$PS_VERSION
```

The `--rm` flag removes the container as soon as it exits. The `prestashop/prestashop:latest` and `prestashop/prestashop:8.0` Docker images have changed their entrypoint behavior and now exit almost immediately, so by the time `docker exec temp-ps` runs, the container no longer exists.

Suggested fix

Migrate the PHPStan setup to use the shared `PrestaShop/.github` action (as done in other modules such as `ps_googleanalytics`, `ps_emailsubscription`), which checks out PS sources directly without relying on a Docker container.

Affected CI runs

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions