Skip to content

Commit 8b87270

Browse files
committed
[temp] probe: 1069 in its part of the suite, with the fast path's words
1 parent 061cb53 commit 8b87270

2 files changed

Lines changed: 73 additions & 2 deletions

File tree

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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

‎tests/e2e/1069_an_unchanged_project_tests_without_planning.sh‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@ grep -q 'cases: 1 passed, 0 failed' case.log || fail "--case two did not run one
4949
# An edited test is built and its result is the edit's.
5050
sleep 1
5151
write_cases 3
52-
"$MCPP" test > edited.log 2>&1 && fail "the edited test passed" edited.log
52+
ls -la --time-style=full-iso target/*/*/test.ninja tests/cases.cpp 2>/dev/null || ls -lT target/*/*/test.ninja tests/cases.cpp; date
53+
"$MCPP" test --verbose > edited.log 2>&1 && fail "the edited test passed" edited.log
54+
grep -i "fast-path" edited.log; ls -lT target/*/*/test.ninja target/*/*/test-plan.json tests/cases.cpp 2>/dev/null; date
5355
grep -q 'cases: 1 passed, 1 failed' edited.log || fail "the edit's failure is not reported" edited.log
54-
"$MCPP" test > again.log 2>&1 && fail "the failing test passed from the record" again.log
56+
"$MCPP" test --verbose > again.log 2>&1 && fail "the failing test passed from the record" again.log
57+
grep -i "fast-path" again.log; ls -lT target/*/*/test.ninja target/*/*/test-plan.json tests/cases.cpp 2>/dev/null; ls -lT "${MCPP_HOME:-$HOME/.mcpp}"/registry/.xlings.json "${MCPP_HOME:-$HOME/.mcpp}"/registry/subos/default/.xlings.json 2>/dev/null
5558
grep -q 'Resolved mcpplibs\.' again.log && fail "an unchanged failing project was planned again" again.log
5659
grep -q 'cases: 1 passed, 1 failed' again.log || fail "the record's run lost the failure" again.log
5760

0 commit comments

Comments
 (0)