edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiB70d1130Tahinli25 days ago1004 commits
| 1 | #!/usr/bin/env python3 |
| 2 | """Print the nextest filterset that keeps the heavy tests out of the `fast` profile. |
| 3 | |
| 4 | Usage: |
| 5 | python3 scripts/heavy_tests.py <nextest.log> [threshold_seconds=10] |
| 6 | |
| 7 | Reads PASS/FAIL result lines from a full nextest run log, dedupes them on |
| 8 | (binary id, test name), and prints one TOML literal string for |
| 9 | `default-filter` in the `[profile.fast]` section of .config/nextest.toml. |
| 10 | |
| 11 | Rerun it after a full run when slow tests come or go. |
| 12 | """ |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | = |
| 18 | |
| 19 | |
| 20 | = |
| 21 | |
| 22 | # Integration binaries of `engine` other than the merged `it` binary are heavy. |
| 23 | = |
| 24 | # Binaries whose tests are grouped by the first `::` segment of the name. |
| 25 | = |
| 26 | = 0.6 |
| 27 | |
| 28 | |
| 29 | |
| 30 | = |
| 31 | |
| 32 | |
| 33 | = |
| 34 | |
| 35 | , , = |
| 36 | |
| 37 | return |
| 38 | |
| 39 | |
| 40 | |
| 41 | """Term (a): integration test binaries of engine, except `it`.""" |
| 42 | , , = |
| 43 | return == and and != and not |
| 44 | |
| 45 | |
| 46 | |
| 47 | # Group module-binary tests by module (only names that have a `::`). |
| 48 | = |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | = # (binary, module) |
| 54 | |
| 55 | |
| 56 | = |
| 57 | |
| 58 | |
| 59 | |
| 60 | = |
| 61 | = |
| 62 | |
| 63 | |
| 64 | |
| 65 | = |
| 66 | |
| 67 | |
| 68 | continue |
| 69 | |
| 70 | continue |
| 71 | |
| 72 | continue |
| 73 | |
| 74 | |
| 75 | return , , |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | return + + |
| 81 | return + + |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | = |
| 88 | = |
| 89 | , , = |
| 90 | = + + |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 |