Skip to content

Conversation

@weinbe58
Copy link
Member

@weinbe58 weinbe58 commented Dec 1, 2025

This is ported from bloqade-shuttle as it is more widely applicable.

Copilot AI review requested due to automatic review settings December 1, 2025 21:01
@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2025-12-01 21:42 UTC

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
625 583 93% 0% 🟢

New Files

File Coverage Status
src/bloqade/geometry/dialects/filled/_init_.py 100% 🟢
src/bloqade/geometry/dialects/filled/_dialect.py 100% 🟢
src/bloqade/geometry/dialects/filled/_interface.py 100% 🟢
src/bloqade/geometry/dialects/filled/concrete.py 78% 🟢
src/bloqade/geometry/dialects/filled/stmts.py 100% 🟢
src/bloqade/geometry/dialects/filled/types.py 92% 🟢
TOTAL 95% 🟢

Modified Files

File Coverage Status
src/bloqade/geometry/_init_.py 100% 🟢
src/bloqade/geometry/dialects/grid/_interface.py 100% 🟢
src/bloqade/geometry/dialects/grid/concrete.py 91% 🟢
src/bloqade/geometry/dialects/grid/stmts.py 100% 🟢
src/bloqade/geometry/dialects/grid/types.py 90% 🟢
src/bloqade/geometry/prelude.py 100% 🟢
TOTAL 97% 🟢

updated for commit: 0cb60e9 by action🐍

@codecov
Copy link

codecov bot commented Dec 1, 2025

Codecov Report

❌ Patch coverage is 89.88095% with 17 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/bloqade/geometry/dialects/filled/types.py 91.66% 6 Missing ⚠️
src/bloqade/geometry/dialects/grid/concrete.py 40.00% 6 Missing ⚠️
src/bloqade/geometry/dialects/filled/concrete.py 78.26% 5 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copilot finished reviewing on behalf of weinbe58 December 1, 2025 21:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new filled dialect to represent grids with vacancies, allowing users to work with grids that have some positions marked as vacant. The implementation includes type definitions, statements, concrete interpreters, and comprehensive test coverage.

  • Introduces FilledGrid class that wraps a parent grid and tracks vacant positions
  • Adds vacate and fill operations to mark positions as vacant or filled
  • Updates the dependency from kirin-toolchain~=0.18.0 to kirin-toolchain~=0.22.0

Reviewed changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
test/grid/test_typeinfer.py Updated import path to use dialects subpackage
test/grid/test_concrete.py Updated import path to use dialects subpackage
test/filled/test_api.py Added comprehensive tests for filled grid operations
test/filled/init.py Created test package for filled dialect
src/bloqade/geometry/prelude.py Integrated filled dialect into geometry dialect group
src/bloqade/geometry/dialects/grid/types.py Removed SliceAttribute handling; added row_x_pos and col_y_pos methods
src/bloqade/geometry/dialects/grid/stmts.py Added RowXPos and ColYPos statement definitions
src/bloqade/geometry/dialects/grid/concrete.py Implemented concrete interpreters for new grid statements
src/bloqade/geometry/dialects/grid/_interface.py Added interface functions for row_xpos and col_ypos
src/bloqade/geometry/dialects/filled/types.py Defined FilledGrid type with vacancy tracking and grid operations
src/bloqade/geometry/dialects/filled/stmts.py Defined Vacate, Fill, and GetParent statements
src/bloqade/geometry/dialects/filled/concrete.py Implemented concrete interpreters for filled operations
src/bloqade/geometry/dialects/filled/_interface.py Defined interface functions for vacate, fill, and get_parent
src/bloqade/geometry/dialects/filled/_dialect.py Created dialect definition for filled
src/bloqade/geometry/dialects/filled/init.py Exported filled dialect components
src/bloqade/geometry/init.py Exposed filled and grid interfaces at package level
pyproject.toml Updated kirin-toolchain dependency version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@weinbe58 weinbe58 merged commit 953b099 into main Dec 1, 2025
12 of 13 checks passed
@weinbe58 weinbe58 deleted the phil/add-filled-dialect branch December 1, 2025 21:41
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.

2 participants