Commit e0d964c
[testing] Make sharding deterministic
The current sharding logic hashes the absolute file path to a test file.
This makes sharding more or less non-deterministic across different
machines given that it depends on the build output directory location
on disk.
This makes debugging bot failures with shards impossible.
This CL makes the sharding deterministic by hashing the test file name
relative to the directory and uses '/' consistently for the hashed
string so sharding stays the same on all platforms.
R=kimanh@chromium.org
Bug: None
No-Tree-Checks: True
Change-Id: I58dea4ff79eb9135ef60bb861884cf2765a6f336
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7660459
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>1 parent 48f9650 commit e0d964c
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| |||
0 commit comments