Skip to content

asahi: fix failed-context cleanup and Zink query test initialization - #29

Closed
satchlj wants to merge 2 commits into
omacom:integration/aurorafrom
aurora-silicon:pr/asahi-general-fixes
Closed

satchlj wants to merge 2 commits into
omacom:integration/aurorafrom
aurora-silicon:pr/asahi-general-fixes

Conversation

@satchlj

@satchlj satchlj commented Nov 3, 2026

Copy link
Copy Markdown

Release failed context allocations with ralloc and derive the embedded pipe pointer only after allocation succeeds. Initialize spare query-start slots in the synthetic Zink split-query test before teardown. These are two public-code fixes; context-priority correction is already in #22 and intentionally excluded. Both commits apply cleanly and diff --check passes; historical combined-tree tests passed 158/158, but fresh split-head build/CI remains required before merge.

The context belongs to ralloc, so release its owner with ralloc_free when
uploader creation fails. Derive the embedded pipe pointer only after
checking allocation success.

Signed-off-by: Satya Benson <satya@benson.earth>
The synthetic split-query case appends starts directly, bypassing the
production allocator that zeroes new capacity. Teardown visits the entire
capacity to release retained references, so uninitialized spare slots can
crash the test. Zero this all-empty synthetic backing before teardown.

Signed-off-by: Satya Benson <satya@benson.earth>
@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The changes appear safe to merge.

Summary

Fixes failed Asahi context creation and initializes spare storage in the Zink split-query test.

  • Asahi context creation checks allocation before using the context and frees it if uploader setup fails.
  • The Zink split-query test clears spare query slots before teardown.

Reviews (1) · Last reviewed commit: "zink: Initialize spare query-start slots..." · Reviewed by Greptile

@satchlj

satchlj commented Nov 11, 2026

Copy link
Copy Markdown
Author

Claude Fable 5.2 on @satchlj's behalf

Closing in favour of aurora-silicon#161, merged on aurora-wip.

@satchlj satchlj closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant