The GitHub Actions job "Fory CI" on fory.git/align_xlang_ref_nullable has 
failed.
Run started by GitHub user chaokunyang (triggered by chaokunyang).

Head commit for run:
4dbc0b0b5a9da78ae60e4662958a1a1f780f8733 / chaokunyang <[email protected]>
fix(python): fix circular reference tracking in xlang mode

The xread_ref function was calling xread_no_ref which pushes -1 to
read_ref_ids. This interfered with the ref_id that was preserved by
try_preserve_ref_id(), causing the serializer's reference() call to
pop -1 instead of the actual ref_id. As a result, circular references
(like a list containing itself) would fail during deserialization
because the object wasn't properly registered in read_objects.

Fix by directly calling the serializer from xread_ref without going
through xread_no_ref when ref tracking is enabled. Also add a check
in xread_no_ref to only push -1 when ref tracking is enabled.

Report URL: https://github.com/apache/fory/actions/runs/20584907667

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to