Initial commit: 2125_GCE project
This commit is contained in:
Regular → Executable
+7
-8
@@ -144,13 +144,12 @@ try:
|
||||
},
|
||||
}
|
||||
|
||||
result = register_spec_map(spec_map)
|
||||
result = adapter.register_spec_map(spec_map)
|
||||
assert result == True
|
||||
|
||||
# Check adapter has spec status
|
||||
global_adapter = get_adapter()
|
||||
assert "PUSH_GLYPH_CONTEXT" in global_adapter.spec_status
|
||||
assert global_adapter.spec_status["PUSH_GLYPH_CONTEXT"]["status"] == "implemented"
|
||||
assert "PUSH_GLYPH_CONTEXT" in adapter.spec_status
|
||||
assert adapter.spec_status["PUSH_GLYPH_CONTEXT"]["status"] == "implemented"
|
||||
|
||||
print(" ✅ PASS: Spec map registered")
|
||||
except Exception as e:
|
||||
@@ -179,15 +178,15 @@ try:
|
||||
# Clear buffer
|
||||
adapter.clear_telemetry_buffer()
|
||||
|
||||
# Run a simple pipeline (will fail at LAIN but should emit telemetry attempt)
|
||||
# Run a simple pipeline (may fail at LAIN but shouldn't crash test)
|
||||
try:
|
||||
result = run_symbolic_pipeline(
|
||||
prompt="test prompt",
|
||||
context={"program": "test_program.gx.json", "chain_label": "test_chain"},
|
||||
)
|
||||
except:
|
||||
# Expected to fail since LAIN is not available
|
||||
pass
|
||||
print(f" ℹ️ Pipeline returned: {result.output_text[:50] if result.output_text else '<empty>'}")
|
||||
except Exception as e:
|
||||
print(f" ℹ️ Pipeline exited (expected in test env): {e}")
|
||||
|
||||
# In local mode, telemetry should have been added to buffer or skipped gracefully
|
||||
print(" ✅ PASS: Pipeline telemetry emission doesn't crash")
|
||||
|
||||
Reference in New Issue
Block a user