@@ -211,13 +211,10 @@ jobs:
211211 - name : Copy test durations
212212 shell : bash
213213 run : |
214- docker exec cypress find /e2e -name e2e-test-durations.out.json
215- docker exec cypress ls -lh /e2e
216- docker exec cypress ls -lh /e2e/cypress
217- docker exec cypress pwd
218-
219214 docker cp cypress:/e2e/cypress/e2e-test-durations.out.json ${{ github.workspace }}/durations.out.json
220215
216+ cat https://docs.cypress.io/api/commands/task
217+
221218 - name : Upload test durations
222219 uses : actions/upload-artifact@v4
223220 with :
@@ -313,9 +310,9 @@ jobs:
313310 - name : Merge duration files
314311 # The cypress-split (https://github.com/bahmutov/cypress-split/tree/main) contains a command line tool
315312 # cypress-split-merge (https://github.com/bahmutov/cypress-split/blob/main/bin/merge.js) which does merge
316- # the split duration files but that tool makes many assumptions about the file names and directory structure
317- # that it is more straightforward to just implement the merging functionality here as it is just concatenating
318- # a single list from multiple JSON files .
313+ # the split duration files but that tool currently (2025-06) does computations for the durations which results
314+ # in the new value being (recorded_duration * (N - 1) + new_duration) / N where N is the number of splits, i.e.
315+ # if the test duration has been, for example, reduced significantly, the new value does not reflect that .
319316 shell : python
320317 run : |
321318 from __future__ import annotations
0 commit comments