test: check all ports have manhattan orientations - #332
Merged
joamatab merged 1 commit intoAug 12, 2026
Conversation
Adds test_port_orientations_manhattan, parametrized over every PDK cell. All-angle components are skipped, and skip_test_manhattan_ports is available for known issues. Refs gdsfactory#331 Co-Authored-By: Claude <noreply@anthropic.com>
jackgdsf
requested review from
MarkCunningham0410,
cdaunt,
joamatab and
thanojo
as code owners
August 7, 2026 01:50
Reviewer's GuideAdds a parametrized Manhattan-orientation port test to each band test module, ensuring all non-all-angle components’ ports are constrained to 0/90/180/270 degrees with an escape hatch for explicitly quarantined cells. File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The
MANHATTAN_ORIENTATIONSconstant,skip_test_manhattan_portsset, andtest_port_orientations_manhattanlogic are duplicated in every band test file; consider extracting this into a shared helper or pytest fixture to keep the checks consistent and reduce maintenance overhead.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The `MANHATTAN_ORIENTATIONS` constant, `skip_test_manhattan_ports` set, and `test_port_orientations_manhattan` logic are duplicated in every band test file; consider extracting this into a shared helper or pytest fixture to keep the checks consistent and reduce maintenance overhead.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
joamatab
approved these changes
Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #331
Adds
test_port_orientations_manhattanto all eight band test files (ge_on_si, si220 cband, si220 oband, si340, si500, si_sus, sin200, sin300). The test is parametrized over every PDK cell already covered by the band'scell_names, builds each cell, skipsgf.ComponentAllAnglecomponents, and asserts that every remaining port's orientation is 0, 90, 180 or 270 degrees (mod 360,atol=1e-3). A per-fileskip_test_manhattan_portsset is provided (empty) so known issues can be quarantined explicitly rather than by weakening the check.This is a templated rollout of the same test we are adding across our PDKs; the reference change was reviewed and approved by @joamatab.
Test plan
test_port_orientations_manhattangreen across all eight bands)Summary by Sourcery
Add regression tests to ensure all non-all-angle PDK cell ports use manhattan orientations across all bands.
Tests: