codex activity report — 2025-10-20 02:45 UTC
Context
Task: Investigate rdfexport plugin test failures reported by
bun run test:log:linux.Location:
src/main/webapp/plugins/rdfexport.
Findings
scripts/test_legacy.shinvoked Python tooling (meta builder, pytest, baseline regeneration) without activating the project virtual environment. After the recent migration touv, the required Python dependencies (e.g.,rdflib) only exist inside.venv, so the harness failed withModuleNotFoundError: No module named 'rdflib'.legacy/tests/test_patched_parser.py::test_generated_metadata_fixtures_round_tripbegan failing because new fixtures (e.g.,General_Authority_bleep_mock.drawio) already ship with root<UserObject>metadata. The metadata patcher now rejects re-injecting metadata, causing subprocess failures.
Changes
Updated
scripts/test_legacy.shto:behave as a strict bash script (
set -euo pipefail),resolve the project root, activate
.venv/bin/activatewhen present, andrun the legacy regeneration + pytest suite from the expected working directory. This guarantees Python tooling sees the synced dependencies installed by
bun run setup:uv.
Added
_fixture_contains_metadatahelper inlegacy/tests/test_patched_parser.pyand filtered fixtures that already include metadata, so the round-trip regression covers only plain diagrams. This reflects the repository’s updated fixtures and avoids double-patching failures.Refreshed
tests/demo_logs/test.logviabun run test:log:linuxto capture the successful run.Recorded the fix in
CHANGELOG.mdand logged this report underdocs/aicode/per contributor guidelines.
Validation
bun run test:log:linuxCI=1 bun run check
All commands completed successfully.