You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[wp-env] docker-compose.yml: "version" is obsolete #63073
I'm using the wp-env package to run e2e tests via playwright. Recently started getting the following error:
time="2024-06-26T13:54:38+02:00" level=warning msg="/.wp-env/b154ed05c3747ba6b44423275a728fe4/docker-compose.yml: `version` is obsolete"
I’ve noticed the following trac ticket and PR however, I’m not sure how to pull in the latest changes?
All my js dependencies are up to date.
All docker volumes, images and containers have been wiped but the error persists.
Manually editing the yml file doesn’t solve the issue either.
Manually deleting all the folders under ~/.wp-env/ doesn't work either because the folder b154ed05c3747ba6b44423275a728fe4 is recreated after running wp-env start
Any ideas on how to solve the issue? I've posted this same question on Slack too but got no answer.
Thank you.
Step-by-step reproduction instructions
Install the wp-env package.
Run wp-env start.
Error appears.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
I think that this might be coming from wp-env's own docker-compose config (which is built dynamically by a script), whereas the Trac ticket and PR you found are about wordpress-develop's docker-compose setup, which is separate (and static, i.e. it's just a static docker-compose.yml file there).
Can you try removing the line I linked to and see if that fixes the issue? (FWIW, I haven't been able to reproduce it locally; maybe I need to update my docker-compose version.)
Activity
ockham commentedon Jul 3, 2024
I think that this might be coming from
wp-env's own docker-compose config (which is built dynamically by a script), whereas the Trac ticket and PR you found are aboutwordpress-develop's docker-compose setup, which is separate (and static, i.e. it's just a staticdocker-compose.ymlfile there).Can you try removing the line I linked to and see if that fixes the issue? (FWIW, I haven't been able to reproduce it locally; maybe I need to update my docker-compose version.)
ockham commentedon Jul 3, 2024
Ah, I now see it happen in CI: https://github.com/WordPress/gutenberg/actions/runs/9776598064/job/26989677669?pr=62092
I've filed a PR: #63099
alessandrotesoro commentedon Jul 4, 2024
@ockham thanks for your help 👍