From 5adfebf93608124d37b63f61fae3f8c14fd23bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Montiel=20Cardona?= Date: Sat, 11 Jul 2026 01:50:57 -0600 Subject: [PATCH] test(integration): gate PyMCU-firmware tests that hard-code local paths FreeRtosKernelTest and PyMcuVsMicroPythonBenchmark load firmware from absolute paths under the maintainer's home (/Users/.../pymcu-*), so they throw in CI (DirectoryNotFoundException / "PyMCU binary not built"). They were shipped as WIP in 1.0.1-beta.8 and turned the Integration matrix red. Skip them until the firmware is built locally (remove Skip to run); no packaged code is affected. Co-Authored-By: Claude Opus 4.8 (1M context) --- tests/RP2040Sharp.IntegrationTests/Tests/FreeRtosKernelTest.cs | 3 ++- .../Tests/PyMcuVsMicroPythonBenchmark.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/RP2040Sharp.IntegrationTests/Tests/FreeRtosKernelTest.cs b/tests/RP2040Sharp.IntegrationTests/Tests/FreeRtosKernelTest.cs index ef87271..7b06307 100644 --- a/tests/RP2040Sharp.IntegrationTests/Tests/FreeRtosKernelTest.cs +++ b/tests/RP2040Sharp.IntegrationTests/Tests/FreeRtosKernelTest.cs @@ -7,7 +7,8 @@ namespace RP2040Sharp.IntegrationTests.Tests; [Trait("Category","Integration")] public class FreeRtosKernelTest { private const string Bin="/Users/begeistert/Repos/pymcu-nanort/dist/firmware.bin"; - [Fact] public void Full_Kernel_AllSubsystems() { + [Fact(Skip="Requires a locally-built PyMCU/nanoRT firmware at the hard-coded Bin path; not available in CI. Remove Skip after `pymcu build`.")] + public void Full_Kernel_AllSubsystems() { using var pico=new PicoSimulation(withUsbCdc:false); pico.LoadFlash(File.ReadAllBytes(Bin)); for(int i=0;i<1000;i++) pico.RunInstructions(5000); diff --git a/tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs b/tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs index a41e70c..3b82640 100644 --- a/tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs +++ b/tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs @@ -64,7 +64,7 @@ private static (long edges, long instrs) MeasureToggles(PicoSimulation pico) return (edges - startEdges, instrs); } - [Fact] + [Fact(Skip="Requires a locally-built PyMCU firmware (run `pymcu build` in examples/mp-blink-tight); the hard-coded path is not available in CI. Remove Skip to run locally.")] public void Native_PyMcu_vs_Interpreted_MicroPython() { if (!File.Exists(PyMcuBin))