diff --git a/.github/workflows/nra-gate.yml b/.github/workflows/nra-gate.yml index 8819f4d580..3bd7582713 100644 --- a/.github/workflows/nra-gate.yml +++ b/.github/workflows/nra-gate.yml @@ -275,6 +275,11 @@ jobs: run: | python -m pip install packaging python -m pip install "$(python -I src/agent_comms/installer/declared_uv.py pyproject.toml)" + - name: Install headless Qt shared libraries for PySide6 client imports + if: steps.reach.outputs.reaches == 'true' + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends libegl1 libgl1 libxkbcommon0 libfontconfig1 libdbus-1-3 - name: Sync the stack exactly as the installer does if: steps.reach.outputs.reaches == 'true' run: | @@ -283,6 +288,8 @@ jobs: uv sync --project stack --locked --no-editable - name: Run the installer's client-import probe in the stack if: steps.reach.outputs.reaches == 'true' + env: + QT_QPA_PLATFORM: offscreen run: >- stack/.venv/bin/python -I -c "from agent_comms.installer.probes.imports import ClientImportsProbe; ClientImportsProbe().run()" diff --git a/stack/test-native-global-extensions.py b/stack/test-native-global-extensions.py index e4c06f443e..2dda89492b 100755 --- a/stack/test-native-global-extensions.py +++ b/stack/test-native-global-extensions.py @@ -33,6 +33,7 @@ VerifiedNativePackage, ) from agent_comms.nominal.field_codec import FieldCodec +from agent_comms.team.rule_deal import EmptyDealDelivery def main(fixture: Path): @@ -125,7 +126,8 @@ def main(fixture: Path): launch = NativePiRpcLaunch.managed( "pi", arguments, package=verified, worktree=project, root=comms.root, owner=thread.incarnation.require_recorded(), - directory=root, session_file=str(session), environment=environment, + directory=root, delivery=EmptyDealDelivery(), + session_file=str(session), environment=environment, ) child = subprocess.Popen(launch.argv, cwd=launch.cwd, env=launch.env, stdin=subprocess.PIPE, stdout=subprocess.PIPE, diff --git a/stack/test-native-pi-compaction.mjs b/stack/test-native-pi-compaction.mjs index 97fbd425c8..15cc78eef4 100755 --- a/stack/test-native-pi-compaction.mjs +++ b/stack/test-native-pi-compaction.mjs @@ -100,11 +100,11 @@ try { const used=(mode==='threshold'||mode==='wip'||mode==='preflight') ? 90000 : (mode==='policy' ? 300001 : 30000); const statedLines='Now: adding an event class\nUncommitted: stack/patch test edits\nNext: run the focused tests'; for(let turn=0;turn<4;turn++){ - const historyRepeats=mode==='oversized' ? 25000 : 1500; + const historyRepeats=turn===3 ? 500 : (mode==='oversized' ? 25000 : 1500); manager.appendMessage({role:'user',content:`OLD_FACT_${turn} `+'old history '.repeat(historyRepeats),timestamp:2*turn+1}); const stated=mode==='wip' && turn===1 ? [{type:'text',text:`Working.\n${statedLines}`}] - : [{type:'text',text:`old answer ${turn}`}]; + : [{type:'text',text:turn===3 ? `old answer ${turn} `+'recent reply '.repeat(200) : `old answer ${turn}`}]; manager.appendMessage({role:'assistant',content:stated,api:model.api, provider:model.provider,model:model.id,stopReason:'stop',timestamp:2*turn+2, usage:{input:used-100,output:100,cacheRead:0,cacheWrite:0,totalTokens:used,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}); diff --git a/stack/test-owned-comms-replies.mjs b/stack/test-owned-comms-replies.mjs old mode 100644 new mode 100755 index 1f35facb97..eead2978be --- a/stack/test-owned-comms-replies.mjs +++ b/stack/test-owned-comms-replies.mjs @@ -1,3 +1,4 @@ +#!/usr/bin/env node import assert from "node:assert/strict"; import { mkdtemp, rm } from "node:fs/promises"; import { createServer } from "node:net";