@@ -8,32 +8,6 @@ permissions:
88 contents : read
99
1010jobs :
11- mongo :
12- runs-on : ubuntu-24.04
13- timeout-minutes : 15
14- steps :
15- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
16- with :
17- persist-credentials : false
18- - name : Start mongo 8.0 and 7.0 with the fixture's script
19- run : |
20- mkdir -p "$RUNNER_TEMP/cfg"
21- python3 -I - "$RUNNER_TEMP/cfg" <<'PY'
22- import re, sys, pathlib
23- src = pathlib.Path("linux/crates/test-fixtures/src/mongo_fixture.rs").read_text()
24- script = re.search(r'const START_SCRIPT: &str = r#"(.*?)"#;', src, re.S).group(1)
25- d = pathlib.Path(sys.argv[1]); (d / "start.sh").write_text(script); (d / "keyfile").write_text("0123456789abcdef0123456789abcdef")
26- PY
27- chmod 644 "$RUNNER_TEMP"/cfg/*
28- for tag in 8.0 7.0; do
29- docker pull -q mongo:$tag
30- docker image inspect mongo:$tag --format "$tag {{.Id}} {{.Created}}"
31- docker run -d --name m$tag -v "$RUNNER_TEMP/cfg:/etc/tablepro:ro" -e TABLEPRO_PASSWORD=pw -e TABLEPRO_TLS=0 --entrypoint sh mongo:$tag /etc/tablepro/start.sh
32- done
33- sleep 90
34- for tag in 8.0 7.0; do echo "===== $tag"; docker ps -a --filter name=m$tag --format '{{.Status}}'; docker logs m$tag 2>&1 | grep -v '"c":"NETWORK"' | tail -40 | cut -c1-400; done
35- docker exec m8.0 sh -c 'mongod --version | head -3; ls -l /usr/bin/mongosh; mongosh --version' || true
36-
3711 flatpak :
3812 strategy :
3913 fail-fast : false
8357 grep -iE "dirty|stale|changed" "$log" | grep -iE "libduckdb|aws-lc|libsqlite3|ring" | head -40 | cut -c1-600
8458 echo "--- dirty reasons, counted"
8559 grep -oiE "(dirty|stale)[^:]*: [A-Za-z]+" "$log" | sort | uniq -c | sort -rn | head -20
86- echo "--- first dirty lines"
87- grep -iE " dirty| stale" "$log" | head -20 | cut -c1-600
60+ echo "--- libduckdb-sys units built"
61+ grep -c "failed to read .*libduckdb-sys" "$log" || true
62+ echo "--- failures"
63+ grep -nE "panicked at|^ [a-z_:]+$|test result: FAILED|^---- " "$log" | head -80 | cut -c1-400
64+ for n in $(grep -nE "panicked at" "$log" | head -8 | cut -d: -f1); do sed -n "$n,$((n+4))p" "$log" | cut -c1-400; echo ..; done
8865 fi
8966 grep -iE "libduckdb" "$RUNNER_TEMP/fb.log" | grep -iE "dirty|stale|fingerprint" | head -10 | cut -c1-600
9067 exit $status
0 commit comments