Skip to content

[wp-env] docker-compose.yml: "version" is obsolete #63073

Closed

Description

@alessandrotesoro

Description

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

  1. Install the wp-env package.
  2. Run wp-env start.
  3. 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.

Yes

Activity

  1. ockham commented on Jul 3, 2024

    @ockham
    Contributor

    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.)

  2. ockham commented on Jul 3, 2024

    @ockham
    Contributor

    (FWIW, I haven't been able to reproduce it locally; maybe I need to update my docker-compose version.)

    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

  3. alessandrotesoro commented on Jul 4, 2024

    @alessandrotesoro
    Author

    @ockham thanks for your help 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Sponsor
    SponsoredKunjungi sekarang
    Promo