mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-03 10:35:58 +00:00
CI affected crates: no truck crates are vendored any more
The truck vendor/ crates went with the kernel's move to SMLib, so their mapping and the test that selected the kernel for vendor/truck-shapeops are gone; egui-wgpu is the one vendored crate left. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LUXeKMoxpM7Vuv8Rb6E3K2
This commit is contained in:
@@ -55,16 +55,9 @@ TEST_DATA = {
|
||||
"tests/action_matrix/": ("apps/solidcraft-cli/", "crates/engine/", "xtask/"),
|
||||
}
|
||||
# Vendored crates (vendor/<crate>/, a [patch] of a crates.io dependency) and the dependency names
|
||||
# through which workspace packages reach them: the truck crates and their maths crate only through
|
||||
# truck itself (crates/kernel), egui-wgpu directly or through eframe. Another vendored crate
|
||||
# selects the full workspace.
|
||||
TRUCK = lambda dep: dep.startswith("truck-") # noqa: E731
|
||||
# through which workspace packages reach them: egui-wgpu directly or through eframe. Another
|
||||
# vendored crate selects the full workspace.
|
||||
VENDOR_USES = {
|
||||
"truck-geometry": TRUCK,
|
||||
"truck-shapeops": TRUCK,
|
||||
"truck-stepio": TRUCK,
|
||||
"truck-meshalgo": TRUCK,
|
||||
"matext4cgmath": TRUCK,
|
||||
"egui-wgpu": lambda dep: dep in ("egui-wgpu", "eframe"),
|
||||
}
|
||||
|
||||
|
||||
@@ -136,14 +136,6 @@ class RealWorkspace(unittest.TestCase):
|
||||
def test_unmapped_test_data_selects_full(self):
|
||||
self.assertEqual(affected.select(self.meta, ["tests/tools/x.json"]), (True, []))
|
||||
|
||||
def test_vendored_truck_selects_the_kernel_and_up_not_render(self):
|
||||
full, pk = affected.select(self.meta, ["vendor/truck-shapeops/src/lib.rs"])
|
||||
self.assertFalse(full)
|
||||
self.assertIn("solidcraft-kernel", pk)
|
||||
self.assertIn("solidcraft-engine", pk)
|
||||
self.assertNotIn("solidcraft-render", pk)
|
||||
self.assertNotIn("solidcraft-geom", pk)
|
||||
|
||||
def test_vendored_egui_wgpu_selects_the_ui_and_apps_not_the_kernel(self):
|
||||
full, pk = affected.select(self.meta, ["vendor/egui-wgpu/src/winit.rs"])
|
||||
self.assertFalse(full)
|
||||
|
||||
Reference in New Issue
Block a user