|
| 1 | +name: "[temp] probe: e2e 1069 beside the other scripts of its part, on xcode-27" |
| 2 | + |
| 3 | +# A measurement, not a check; this branch is not merged. Alone, the branch's |
| 4 | +# engine passes 1069's steps on xcode-27; in the suite's part it plans again |
| 5 | +# after a failing test run. This runs the part as the suite does and prints why |
| 6 | +# the fast path declined. |
| 7 | +on: |
| 8 | + push: |
| 9 | + branches: [ probe/mac-1069 ] |
| 10 | + |
| 11 | +permissions: |
| 12 | + actions: read |
| 13 | + contents: read |
| 14 | + |
| 15 | +jobs: |
| 16 | + probe: |
| 17 | + runs-on: xcode-27 |
| 18 | + timeout-minutes: 45 |
| 19 | + env: |
| 20 | + E2E_SHARD: 2/3 |
| 21 | + E2E_EXCLUDE: 721_*.sh |
| 22 | + E2E_JOBS: 2 |
| 23 | + E2E_REPORT: ${{ github.workspace }}/e2e-report-probe.tsv |
| 24 | + steps: |
| 25 | + - uses: actions/checkout@v4 |
| 26 | + with: |
| 27 | + submodules: recursive |
| 28 | + - uses: ./.github/actions/setup-macos-llvm |
| 29 | + with: |
| 30 | + image: xcode-27 |
| 31 | + - uses: actions/download-artifact@v4 |
| 32 | + with: |
| 33 | + name: mcpp-built-macos-arm64 |
| 34 | + path: ${{ runner.temp }}/mcpp-built |
| 35 | + run-id: 43233760440 |
| 36 | + github-token: ${{ github.token }} |
| 37 | + - name: Use that engine |
| 38 | + shell: bash |
| 39 | + run: bash .github/actions/use-built-mcpp/use.sh macos-arm64 GLOBAL |
| 40 | + - uses: ./.github/actions/e2e-mtest |
| 41 | + with: |
| 42 | + host: xcode-27 |
| 43 | + - name: the part |
| 44 | + shell: bash |
| 45 | + run: | |
| 46 | + set +e |
| 47 | + export MCPP MCPP_BOOT MCPP_VENDORED_XLINGS |
| 48 | + export MCPP_E2E_TOOLCHAIN_MIRROR=GLOBAL |
| 49 | + "$MCPP" self config |
| 50 | + "$MCPP" toolchain default "llvm@${MCPP_LLVM_VER}" |
| 51 | + XLINGS_HOME="$HOME/.mcpp/registry" "$MCPP_VENDORED_XLINGS" install mcpplibs:cmdline@0.0.1 mcpplibs:cmdline@0.0.2 -y |
| 52 | + bash tests/e2e/run_all.sh > "$RUNNER_TEMP/e2e-suite.log" 2>&1 |
| 53 | + echo "suite rc=$?" |
| 54 | + grep -a -E '^FAIL |E2E Summary|^Failed:' "$RUNNER_TEMP/e2e-suite.log" |
| 55 | + for f in tests/e2e/.mtest/runs/*/failures/*/program.json; do |
| 56 | + grep -q 1069_an_unchanged "$f" || continue |
| 57 | + d=$(dirname "$f"); echo "=== 1069 out"; head -c 6000 "$d/out.txt" |
| 58 | + done |
| 59 | + echo "=== the order of the part's programs around 1069" |
| 60 | + python3 - <<'PY' |
| 61 | + import glob, json |
| 62 | + for p in glob.glob("tests/e2e/.mtest/runs/*/cases.ndjson"): |
| 63 | + rows = [json.loads(l) for l in open(p, encoding="utf-8", errors="replace") if l.strip()] |
| 64 | + for i, e in enumerate(rows): |
| 65 | + if "1069_an" in e.get("program", ""): |
| 66 | + for r in rows[max(0, i - 4): i + 4]: |
| 67 | + print(r.get("status"), round(r.get("ms", 0)), r.get("program")) |
| 68 | + PY |
0 commit comments