Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions .github/workflows/prc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,87 @@ jobs:
shell: bash
run: bash .github/scripts/run-go-tests.sh --module "${{ matrix.module }}"

test-longmemeval-standalone:
name: test LongMemEval standalone
runs-on: ubuntu-latest
env:
CGO_CFLAGS: -DSQLITE_INNOCUOUS=0x000200000
CGO_ENABLED: "1"
GOFLAGS: -mod=readonly
GOWORK: "off"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.24.9"
- name: Verify trpc-agent-go dependency pins
working-directory: memory/trpc-agent-go-impl
shell: bash
run: |
set -euo pipefail
python3 - <<'PY'
import json
import subprocess

source_root = "trpc.group/trpc-go/trpc-agent-go"
expected_remote_root = "github.com/print-happy/trpc-agent-go"
expected_version = "v0.0.0-20260716032212-1b3adb2f4bb8"
allowed_remote_roots = {
expected_remote_root,
}
module = json.loads(
subprocess.check_output(["go", "mod", "edit", "-json"])
)
pins = [
replacement
for replacement in module.get("Replace", [])
if replacement["Old"]["Path"] == source_root
or replacement["Old"]["Path"].startswith(source_root + "/")
]
if not pins:
raise SystemExit("no trpc-agent-go dependency pins found")
pinned_roots = set()
for pin in pins:
path = pin["New"].get("Path", "")
version = pin["New"].get("Version", "")
root = next((
candidate
for candidate in allowed_remote_roots
if path == candidate or path.startswith(candidate + "/")
), None)
if root is None:
raise SystemExit(f"non-remote trpc-agent-go replacement: {path}")
pinned_roots.add(root)
if not version:
raise SystemExit(f"unpinned trpc-agent-go replacement: {path}")
if len(pinned_roots) != 1:
raise SystemExit(
"trpc-agent-go replacements use different repositories: "
+ ", ".join(sorted(pinned_roots))
)
versions = {pin["New"]["Version"] for pin in pins}
if len(versions) != 1:
raise SystemExit(
"trpc-agent-go replacements use different versions: "
+ ", ".join(sorted(versions))
)
version = versions.pop()
if pinned_roots != {expected_remote_root} or version != expected_version:
raise SystemExit(
"unexpected trpc-agent-go dependency pin: "
+ ", ".join(sorted(pinned_roots))
+ "@"
+ version
)
print("trpc-agent-go dependency pin:", version)
PY
- name: Verify module dependencies
working-directory: memory/trpc-agent-go-impl
run: go mod verify
- name: Test standalone module
working-directory: memory/trpc-agent-go-impl
run: go test ./...

check-go-mod-tidy:
name: check go mod tidy
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ pnpm-lock.yaml
.gocache
!.github/scripts/run-go-tests.sh
.DS_Store
.env
.env.*
!.env.example
.gomodcache
next-env.d.ts
.codebuddy
Expand All @@ -39,6 +42,13 @@ examples/**/*.evalset_result.json
examples/results/
__pycache__
.venv
.venv*/
.uv-cache/
.pytest_cache/
.ruff_cache/
.mypy_cache/
.coverage
htmlcov/
examples/knowledge/evaluation/dataset/*
!examples/claudecode/.claude
!examples/evaluation/claudecode/.claude
Loading
Loading