feat: add per-project native server and SSE command streaming
build / jvm (push) Waiting to run
build / native (macos-15, macos-arm64) (push) Waiting to run
build / native (ubuntu-24.04, linux-x86_64) (push) Waiting to run
build / native (windows-2025, windows-x86_64) (push) Waiting to run
Test / Tests and coverage
Intrepid/AI Engineering/pipeline/head This commit looks good
build / jvm (push) Waiting to run
build / native (macos-15, macos-arm64) (push) Waiting to run
build / native (ubuntu-24.04, linux-x86_64) (push) Waiting to run
build / native (windows-2025, windows-x86_64) (push) Waiting to run
Test / Tests and coverage
Intrepid/AI Engineering/pipeline/head This commit looks good
Keep Spring in a persistent project server with lightweight clients, managed start/stop, bounded SSE subscriptions, cursor recovery and durable mutation outcomes. Preserve SQLite authority and transaction limits, and document reproducible native measurements. Validation: 269 tests, 11 pipeline scenarios, full native/SSE smoke, native package verification and 17 installer tests passed. Implements WRK-000E / DEC-0001 / DEC-0002.
This commit is contained in:
+11
-2
@@ -5,7 +5,12 @@ set -euo pipefail
|
||||
aie_binary=${1:?Usage: native-smoke.sh /absolute/path/to/ai-engineering}
|
||||
aie_source_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)
|
||||
aie_fixture=$(mktemp -d "${TMPDIR:-/tmp}/ai-engineering-smoke.XXXXXX")
|
||||
if [[ "${AIE_KEEP_FIXTURE:-0}" != 1 ]]; then trap 'rm -rf "$aie_fixture"' EXIT; fi
|
||||
source "$aie_source_root/scripts/stop-fixture-servers.sh"
|
||||
cleanup_native_fixture() {
|
||||
stop_fixture_servers "$aie_fixture" "$aie_binary" || return 1
|
||||
if [[ "${AIE_KEEP_FIXTURE:-0}" != 1 ]]; then rm -rf "$aie_fixture"; fi
|
||||
}
|
||||
trap cleanup_native_fixture EXIT
|
||||
cd "$aie_fixture"
|
||||
|
||||
"$aie_binary" --help > help.txt
|
||||
@@ -305,6 +310,8 @@ while [ "$#" -gt 0 ]; do
|
||||
shift
|
||||
done
|
||||
while IFS= read -r line; do :; done
|
||||
# Make the synthetic provider pending long enough to exercise the native SSE client.
|
||||
/bin/sleep 0.2
|
||||
classification=0
|
||||
case "$provider" in
|
||||
codex) while IFS= read -r line; do case "$line" in *'"activity"'*) classification=1;; esac; done < "$schema";;
|
||||
@@ -331,7 +338,8 @@ aie_without_git agent doctor --format json > doctor.json
|
||||
grep -q '"compatible" : true' doctor.json
|
||||
aie_without_git work create --mode DIRECT --approval WAIVED --human-approved --choice-reason "Explicit synthetic fixture policy" 'Provider protocol' > work.yaml
|
||||
aie_without_git discussion add WRK-0001 --text 'Synthetic source for provider protocol tests' > source.md
|
||||
aie_without_git agent run WRK-0001 --task 'Summarize the synthetic note' --request-id classified --format json > codex.json
|
||||
aie_without_git agent run WRK-0001 --task 'Summarize the synthetic note' --request-id classified --format json > codex.json 2> codex.stderr
|
||||
grep -q '(SSE)' codex.stderr
|
||||
grep -q '"classification" : {' codex.json
|
||||
aie_without_git agent run WRK-0001 --activity analyze --task 'Continue from persisted context' --request-id reviewed --format json > claude.json
|
||||
grep -q '"transport" : "claude-cli"' claude.json
|
||||
@@ -627,3 +635,4 @@ if [[ "${AIE_KEEP_FIXTURE:-0}" == 1 ]]; then echo "Fixture retained: $aie_fixtur
|
||||
|
||||
# Exercise the default SQLite backend, gates and migration separately from legacy fixtures.
|
||||
bash "$aie_source_root/scripts/native-sqlite-smoke.sh" "$aie_binary"
|
||||
python3 "$aie_source_root/scripts/native-sse-smoke.py" --binary "$aie_binary"
|
||||
|
||||
Reference in New Issue
Block a user