Opened 3 years ago
Last modified 23 months ago
#55466 new enhancement
Build Tools: create Docker test environment that use non-direct filesystems
Reported by: | afragen | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | dev-feedback |
Focuses: | Cc: |
Description
Recently when writing a PR for #51170, @costdev and I, mostly Colin as I let him do this, had a somewhat difficult time setting up a testing environment that used FTPext or FTPsockets.
It would be awesome if this could be built into a Docker image for testing with WordPress-develop.
If this can be done it might be worthwhile to setup environments for the other file system methods too.
Change History (8)
This ticket was mentioned in Slack in #core by afragen. View the logs.
3 years ago
This ticket was mentioned in Slack in #core by afragen. View the logs.
3 years ago
This ticket was mentioned in Slack in #core-auto-updates by afragen. View the logs.
2 years ago
This ticket was mentioned in Slack in #core-auto-updates by afragen. View the logs.
2 years ago
#7
@
2 years ago
- Milestone changed from 6.1 to Future Release
I'm going to kick this one out to Future Release
. While Build/Test tool changes can be committed at any time during the release and I hate to push this one off, there hasn't been any movement in a few months.
I also would ideally like this to be fixed directly in the Docker images if possible. A PR there for testing would be a good starting point.
This was what I used to get
ftpext
/ftpsockets
working:vsftpd
on Ubuntu.write
permissions: This involves uncommenting# write_enable=YES
in/etc/vsftpd.conf
.Site Health > Info > File system permissions
).wp-config.php
:define( 'FS_METHOD', 'ftpext' ); // Or 'ftpsockets'. define( 'FTP_BASE', '/var/www/html/wordpress-develop/src/' ); define( 'FTP_USER', 'FTP_USER' ); define( 'FTP_PASS', 'password' ); define( 'FTP_HOST', 'localhost' ); define( 'FTP_SSL', false );
While the steps above may seem straightforward, note that despite my experience using FTP, the learning curve wasn't as straightforward as the above might imply.
For less experienced contributors, being able to switch between filesystems easily would be quite beneficial.
ftpext
, for example, would allow for quick testing of incremental improvements.WP_Filesystem_*
- a more common day-to-day activity for contributors. Quickly spinning up in a different filesystem means the Test Team can quickly and confidently reproduce bugs/test patches during scrubs.