From fc2a3e3fcb90ff53e966b051c13a10ec17813f03 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Tue, 10 Nov 2026 08:27:37 +0000 Subject: [PATCH 1/2] CompatHelper: install Julia with setup-julia The ubuntu-latest runner image no longer includes Julia. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/CompatHelper.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index c263a2b78..cf3e8bace 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -7,6 +7,9 @@ jobs: CompatHelper: runs-on: ubuntu-latest steps: + - uses: julia-actions/setup-julia@v2 + with: + version: '1' - name: "Install CompatHelper" run: | import Pkg From 76c63cde46929034fa806b41b8c7fbce42c6da68 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Tue, 10 Nov 2026 09:43:05 +0000 Subject: [PATCH 2/2] Use a relative tolerance in sensitivity-function tests The systems are randomly generated, and an absolute tolerance of 1e-8 on the H-infinity norm of the difference occasionally fails (1.016e-8 observed). Co-Authored-By: Claude Opus 5.5 --- lib/ControlSystemsBase/test/test_connections.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ControlSystemsBase/test/test_connections.jl b/lib/ControlSystemsBase/test/test_connections.jl index d944386d9..2590f24a4 100644 --- a/lib/ControlSystemsBase/test/test_connections.jl +++ b/lib/ControlSystemsBase/test/test_connections.jl @@ -382,8 +382,8 @@ e2 = resTi.y e22 = lsim(C, e42).y @test e2 ≈ e22 -@test linfnorm(PS - output_sensitivity(P, C)*P)[1] < 1e-8 -@test linfnorm(CS - input_sensitivity(P, C)*C)[1] < 1e-8 +@test linfnorm(PS - output_sensitivity(P, C)*P)[1] < 1e-8*max(1, linfnorm(PS)[1]) +@test linfnorm(CS - input_sensitivity(P, C)*C)[1] < 1e-8*max(1, linfnorm(CS)[1]) @test sensitivity(P,C) == output_sensitivity(P,C) @test comp_sensitivity(P,C) == output_comp_sensitivity(P,C)