Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add DRC checks support for async autorouters #720

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

onyedikachi-david
Copy link

Fixes: #717
/claim #717

Copy link

vercel bot commented Mar 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tscircuit-core-benchmarks ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 2, 2025 10:39am

Signed-off-by: David Anyatonwu <[email protected]>
Signed-off-by: David Anyatonwu <[email protected]>
Copy link
Contributor

@Anshgrover23 Anshgrover23 left a comment

Choose a reason for hiding this comment

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

@onyedikachi-david tests failing.

)

// Ensure the circuit is fully rendered and async autorouting is complete
await circuit.renderUntilSettled()
Copy link
Contributor

Choose a reason for hiding this comment

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

do not use renderuntilsettled method use only render

Copy link

github-actions bot commented Apr 1, 2025

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

@onyedikachi-david
Copy link
Author

I do not understand why the snapshot is failing on the CI but passes locally @Anshgrover23

@Anshgrover23
Copy link
Contributor

@onyedikachi-david have u ran bun run snapshot to update the new snapshots?

@onyedikachi-david
Copy link
Author

bun run snapshot

I ran this ➜ bun test --update-snapshots tests/features/async-drc-error-detection.test.tsx @Anshgrover23

@Anshgrover23
Copy link
Contributor

@onyedikachi-david try to delete the original snapshot and then generate again see if this resolves.

@onyedikachi-david
Copy link
Author

@onyedikachi-david try to delete the original snapshot and then generate again see if this resolves.

Yeah, I did that also during the last commit.

@Anshgrover23
Copy link
Contributor

@onyedikachi-david then maybe your test has some problem just debug man, ik you can do it.

Copy link
Contributor

@MustafaMulla29 MustafaMulla29 left a comment

Choose a reason for hiding this comment

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

image

you can here that its cause of diff snapshots. Check if there are diff png's in your snapshots folder

Copy link

github-actions bot commented Apr 9, 2025

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

@@ -146,11 +146,31 @@ export class Board extends Group<typeof boardProps> {
}

doInitialPcbDesignRuleChecks() {
if (this.root?.pcbDisabled) return
if (this.getInheritedProperty("routingDisabled")) return
this.updatePcbDesignRuleChecks()
Copy link
Contributor

Choose a reason for hiding this comment

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

don't call lifecycle methods directly, you may need a hidden function e.g. _doDrcChecks()


// Clear all trace errors
db.pcb_trace_error.list().forEach((error) => {
db.pcb_trace_error.delete(error.pcb_trace_error_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

don't delete all pcb trace errors, only delete ones that are created from this board's DRC. You may need to store a property to indicate it was created by this Board

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get DRC Checks to work with async autorouters
4 participants