[wp-trac] [WordPress Trac] #47749: Build tools: remove all old files when cleaning

WordPress Trac noreply at wordpress.org
Thu Jan 12 03:28:50 UTC 2023


#47749: Build tools: remove all old files when cleaning
-------------------------------------------------+-------------------------
 Reporter:  azaozz                               |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.2
Component:  Build/Test Tools                     |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing has-patch has-         |     Focuses:
  testing-info                                   |
-------------------------------------------------+-------------------------
Changes (by ironprogrammer):

 * keywords:  needs-testing has-patch => needs-testing has-patch has-
     testing-info
 * milestone:  Future Release => 6.2


Comment:

 == Testing Instructions

 === Steps to Test `clean` Task
 1. Build the `wordpress-develop` dev environment with: `npm run
 build:dev`. **This generates compiled files in the `src/` directory.**
 2. Confirm compiled files exist by listing files not under source control:
 `git ls-files -o src/wp-admin` and `git ls-files -o src/wp-includes`.
 Numerous files should be returned.
 3. Run `npm run grunt clean`.
 4. Confirm that the compiled files were removed by re-running the commands
 from Step 2.

 === Steps to Test `build` Task
 1. Build the `wordpress-develop` distribution with: `npm run build`.
 **This generates files in the `build/` directory.**
 2. Confirm compiled files were cleaned from the `src/` directory after
 build by listing files not under source control: `git ls-files -o src/wp-
 admin` and `git ls-files -o src/wp-includes`. There should be no results.

 === Expected Results
 - ✅ During `build`, there should be no errors related to compiled files
 in `src/wp-admin` or `src/wp-includes` (see Additional Information).
 - ✅ After completing each of the above tests, there should be no leftover
 files in `src/wp-admin` or `src/wp-includes`.

 === Additional Information
 It is possible that during the course of development, a given `src/`
 directory may become populated with files that are excluded from source
 control. This may include things like patch/merge files (`.orig|.rej`) or
 even orphaned directories (`src/wp-includes/blocks/some-removed-block/`).
 If a build error occurs due to files like these, they should be manually
 resolved.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47749#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list