This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Core: Lazy MIFs #129
Merged
Merged
Core: Lazy MIFs #129
Changes from 25 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
58d283c
Remove backends/ folder
iopapamanoglou 2bed4d6
Add pathfinder
iopapamanoglou 420856e
fix compile errors
iopapamanoglou 7b6c1d9
expose pathfinder
iopapamanoglou 2e80456
Merge rest of lazy mifs
iopapamanoglou 695c218
missing include
iopapamanoglou d5ff64b
Remove _on_connect
iopapamanoglou 45f04c5
Fix mif:is_connected_to
iopapamanoglou 9dc0974
Add counters to py
iopapamanoglou 782c780
Fix path filtering & LinkConditionals
iopapamanoglou 31e5f25
remove unnecessary move(copy())
iopapamanoglou 384bbfa
mini optimization
iopapamanoglou 50ccb0d
Tests: Unique filenames
iopapamanoglou 62ee143
Basic implied paths
iopapamanoglou 85ffadf
Make connect test cases pass
iopapamanoglou aea1084
faster node mif check
iopapamanoglou 3295c0e
pomise->split; run all condtionals
iopapamanoglou 4d3055d
Max paths heuristic
iopapamanoglou a281ca5
clonable links
iopapamanoglou 0226f77
link eq & simple link resolution
iopapamanoglou 3ad4f8f
make all tests pass
iopapamanoglou 07096ba
uncloneable link workaround
iopapamanoglou bae262e
multiple path limits; fix rp2040; fix minimal_led_order
iopapamanoglou c7608e8
higher heuristic tuning
iopapamanoglou 994ef01
Disable debug
iopapamanoglou 8b5e439
Remove deprecated `unique` method for `use_count` instead.
mawildoer 35b2308
Use run_live instead of subprocess.check_output for ruff checking on …
mawildoer a645802
Fix logical falicy in use_count refactor and add comments on it being…
mawildoer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
parent_dir=$(dirname "$0")/.. | ||
test_dir="$parent_dir/test" | ||
|
||
# find all files in test_dir ending in .py | ||
# make sure the filenames are unique | ||
find "$test_dir" -type f -name "*.py" -exec basename {} \; | sort | uniq -d |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
|
||
import json | ||
import logging | ||
import subprocess | ||
from importlib.metadata import Distribution | ||
|
||
from faebryk.libs.util import ConfigFlag, at_exit, global_lock | ||
|
@@ -12,6 +13,7 @@ | |
|
||
LEAK_WARNINGS = ConfigFlag("CPP_LEAK_WARNINGS", default=False) | ||
DEBUG_BUILD = ConfigFlag("CPP_DEBUG_BUILD", default=False) | ||
PRINTF_DEBUG = ConfigFlag("CPP_PRINTF_DEBUG", default=False) | ||
|
||
|
||
# Check if installed as editable | ||
|
@@ -66,6 +68,7 @@ def compile_and_load(): | |
|
||
if DEBUG_BUILD: | ||
other_flags += ["-DCMAKE_BUILD_TYPE=Debug"] | ||
other_flags += [f"-DGLOBAL_PRINTF_DEBUG={int(bool(PRINTF_DEBUG))}"] | ||
|
||
with global_lock(_build_dir / "lock", timeout_s=60): | ||
run_live( | ||
|
@@ -115,6 +118,7 @@ def compile_and_load(): | |
is_pyi=True, | ||
) | ||
) | ||
subprocess.check_output(["ruff", "check", "--fix", pyi_out]) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Making this run_live in case there's error output we're gonna want to see |
||
|
||
|
||
# Re-export c++ with type hints provided by __init__.pyi | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an odd thing to enforce, but we can discuss it another time