[wp-trac] [WordPress Trac] #53945: Local test workflow changes for installing Composer dependencies

WordPress Trac noreply at wordpress.org
Mon Sep 13 22:26:36 UTC 2021


#53945: Local test workflow changes for installing Composer dependencies
------------------------------------------------+--------------------------
 Reporter:  hellofromTonya                      |       Owner:  johnbillion
     Type:  task (blessed)                      |      Status:  reopened
 Priority:  normal                              |   Milestone:  5.9
Component:  Build/Test Tools                    |     Version:
 Severity:  normal                              |  Resolution:
 Keywords:  has-patch has-testing-instructions  |     Focuses:
------------------------------------------------+--------------------------

Comment (by azaozz):

 Replying to [comment:40 hellofromTonya]:
 > I wasn't able to reproduce the 2-3 minute delay after the `composer
 fund` message appeared.

 After updating and resetting Docker I only see a delay on the first run.
 Seems the problem was there. In consequent runs the delay is only about a
 second.

 > on the first run it was about 18-20 seconds and on average about 1.5
 seconds for rerunning tests over and over again.

 Yeah, the numbers here are similar: 20-25 sec. on the first run, then the
 longer delay after Composer and before PHPUnit (more like 50-60 seconds
 now). Running the tests again, the delays are a lot smaller. Tried to
 figure out what's going on and it looks like npm is running some update
 checks (perhaps) as it is making ~200-300 requests during that first-run
 delay.

 Another thing I've noticed is that `npm run test:php` will fail if the
 network connection is shaky/faulty and Composer is not able to check for
 updates. It also fails on subsequent runs when there will be no updates
 available. The PHP tests (mostly) run with no internet connection. Some
 fail instead of being skipped though. Not a big deal but may be good to
 fix.

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


More information about the wp-trac mailing list