- Issue created by @catch
- last update
about 1 year ago 30,123 pass - @catch opened merge request.
- Status changed to Needs review
about 1 year ago 1:35pm 11 September 2023 - Status changed to RTBC
about 1 year ago 2:55pm 11 September 2023 - πΊπΈUnited States smustgrave
Ran this on my local too
Before
After
Shaved almost 10 minutes off!
- Status changed to Needs work
about 1 year ago 1:04am 12 September 2023 - π¬π§United Kingdom alexpott πͺπΊπ
We can still use a data provider here. It's just that the finder still actaully copies the entire codebase.
- Status changed to Needs review
about 1 year ago 1:08am 12 September 2023 - last update
about 1 year ago 30,148 pass - π¬π§United Kingdom alexpott πͺπΊπ
The patch attached will be as fast as #5 and avoids copying the entire codebase and just does the components. The problem is caused by the fact that
\Symfony\Component\Finder\Finder::in()
does not work the way the test thinks it does. It does an array merge so even though the test in HEAD does->in($this->getDrupalRoot() . static::$componentsPath)
we still copy over the entire codebase. - Status changed to RTBC
about 1 year ago 5:40am 12 September 2023 - π¬π§United Kingdom catch
It's not as fast as #5, it's much faster :)
PHPUnit 9.6.8 by Sebastian Bergmann and contributors. Testing Drupal\BuildTests\Composer\Component\ComponentsIsolatedBuildTest ........................ 24 / 24 (100%) Time: 02:27.754, Memory: 10.00 MB OK (24 tests, 24 assertions) real 2m27.977s user 1m49.650s sys 0m36.118s
- π¬π§United Kingdom catch
Build tests taking a total of 4m27s now https://git.drupalcode.org/project/drupal/-/jobs/82874
- π¬π§United Kingdom alexpott πͺπΊπ
Locally I see a massive difference... compare
Testing Drupal\BuildTests\Composer\Component\ComponentsIsolatedBuildTest ........................ 24 / 24 (100%) Time: 07:18.378, Memory: 35.50 MB OK (24 tests, 24 assertions) ________________________________________________________ Executed in 438.98 secs fish external usr time 56.46 secs 0.09 millis 56.46 secs sys time 355.37 secs 6.57 millis 355.37 secs
Testing Drupal\BuildTests\Composer\Component\ComponentsIsolatedBuildTest ........................ 24 / 24 (100%) Time: 00:13.337, Memory: 16.00 MB OK (24 tests, 24 assertions) ________________________________________________________ Executed in 14.07 secs fish external usr time 5.74 secs 0.09 millis 5.74 secs sys time 5.87 secs 7.43 millis 5.86 secs
:D
55:26 52:09 Running- last update
about 1 year ago 30,153 pass, 1 fail The last submitted patch, 7: 3386479-7.patch, failed testing. View results β
- π³π±Netherlands spokje
Known random test failure ( π [random test failure] MenuUiTest::testMenuAdministration Active ), back to RTBC.
- last update
about 1 year ago 30,161 pass - π¬π§United Kingdom longwave UK
Committed and pushed dd62dc1e84 to 11.x and 78e5aa8c58 to 10.1.x. Thanks!
-
longwave β
committed 78e5aa8c on 10.1.x
Issue #3386479 by catch, alexpott: Copy less files around in...
-
longwave β
committed 78e5aa8c on 10.1.x
- Status changed to Fixed
about 1 year ago 11:24am 18 September 2023 -
longwave β
committed dd62dc1e on 11.x
Issue #3386479 by catch, alexpott: Copy less files around in...
-
longwave β
committed dd62dc1e on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.