Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5db223f
changed: using the new `juliaci.yml` workflow
franckgaga Aug 16, 2026
99792ce
Merge branch 'main' into ci_yml
franckgaga Aug 20, 2026
e3f24f6
removed: x64 MacOS and x86 windows on CI
franckgaga Aug 20, 2026
ef38567
removed: Linux x86, same reasons
franckgaga Aug 20, 2026
6334bc0
test: smaller chunks for nonlinear MPC and MHE tests
franckgaga Aug 20, 2026
cb53222
test: remove useless test for MHE
franckgaga Aug 20, 2026
5009952
test: shorter titles
franckgaga Aug 20, 2026
6a25b0b
doc: less finicky `jldoctest`
franckgaga Aug 20, 2026
308c47b
test: small `Aqua` tests
franckgaga Aug 20, 2026
aac8d56
test: less finicky soft real-time measurements
franckgaga Aug 20, 2026
4bb82fc
test: shorter names
franckgaga Aug 20, 2026
667a7b2
test: timeout from 1200 -> 3600
franckgaga Aug 20, 2026
b6eb1e0
test: include Linux x86
franckgaga Aug 20, 2026
933d70d
test: debug `jldoctest` for `x86` platforms
franckgaga Aug 20, 2026
6b6493d
Merge branch 'main' into ci_yml
franckgaga Aug 20, 2026
c7dab4e
test: skipping all x86 jobs for now
franckgaga Aug 20, 2026
8d12b73
test: loosen tolerances for MHE v.s. KF tests
franckgaga Aug 20, 2026
ac4f22e
test : wip debugging last test on MacOS lts
franckgaga Aug 20, 2026
7255d9f
test: debug `gc` tests on MHE
franckgaga Aug 20, 2026
04cd48c
test: disabling timeout altogether
franckgaga Aug 21, 2026
ac71939
test: idem, trying `null`
franckgaga Aug 21, 2026
33f15b4
test: same, trying empty string
franckgaga Aug 21, 2026
3bfc76c
test: trying back 3600
franckgaga Aug 21, 2026
6cbd01b
test: trying Inf
franckgaga Aug 21, 2026
07b9fcd
test: trying -1
franckgaga Aug 21, 2026
f680aa0
test: going back to 3600
franckgaga Aug 21, 2026
61398a6
bench: result on summary
franckgaga Aug 21, 2026
a248ea8
test: looser tolerance for soft real-time
franckgaga Aug 21, 2026
64c8ea3
test: removing Aqua persistent tasks
franckgaga Aug 21, 2026
947098e
Merge branch 'main' into ci_yml
franckgaga Aug 21, 2026
b0faa51
doc: regex to improve `jldoctest` robustness
franckgaga Aug 22, 2026
78a6878
bench: add permissions for pull request comments in benchmark.yml
franckgaga Aug 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions .github/workflows/CI.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/TagBot.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ jobs:
steps:
- uses: MilesCranmer/AirspeedVelocity.jl@action-v1
with:
julia-version: '1'
julia-version: '1'
job-summary: 'true'
26 changes: 0 additions & 26 deletions .github/workflows/documentation.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/juliaci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Julia CI

on:
push: {branches: [main,master]}
pull_request: {types: [opened,synchronize,reopened,ready_for_review,converted_to_draft]}
issue_comment: {types: [created]}
workflow_dispatch:
inputs:
feature:
type: choice
description: What to run
options: [DocDeploy, LintAndTest, TagBot]

jobs:
julia-ci:
uses: julia-testitems/testitem-workflow/.github/workflows/juliaci.yml@v2
with:
testitem-timeout: 3600
include-rc-versions: true
include-windows-x86: false
include-linux-x86: false
include-macos-x64: false
permissions: write-all
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 2 additions & 5 deletions src/estimator/construct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,8 @@ and unstable `model` (see Examples).
```jldoctest
julia> model = LinModel(append(tf(3, [10, 1]), tf(2, [1, 0]), tf(4,[-5, 1])), 1.0);

julia> nint_ym = default_nint(model)
3-element Vector{Int64}:
1
0
1
julia> default_nint(model) |> println
[1, 0, 1]
```
"""
function default_nint(model::LinModel, i_ym=1:model.ny, nint_u=0)
Expand Down
6 changes: 3 additions & 3 deletions src/sim_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function savetime!(model::SimModel)
return model.t[]
end

"""
@doc raw"""
periodsleep(model::SimModel, busywait=false) -> nothing

Sleep for `model.Ts` s minus the time elapsed since the last call to [`savetime!`](@ref).
Expand All @@ -305,14 +305,14 @@ simple soft real-time simulations, see the example below.
restart it at a convenient time e.g.: just before calling `periodsleep`.

# Examples
```jldoctest
```jldoctest; filter = r"(\d+\.\d)\d*" => s"\1"
julia> model = LinModel(tf(2, [0.3, 1]), 0.25);

julia> function sim_realtime!(model)
t_0 = time()
for i=1:3
t = savetime!(model) # first function called
println(round(t - t_0, digits=3))
println(round(t - t_0, digits=2))
updatestate!(model, [1])
periodsleep(model, true) # last function called
end
Expand Down
8 changes: 4 additions & 4 deletions test/1_test_sim_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ end
updatestate!(linmodel1, [1])
periodsleep(linmodel1)
end
@test all(isapprox.(diff(times1[2:end]), 0.25, atol=0.025))
@test all(isapprox.(diff(times1[2:end]), 0.25, atol=0.05))
linmodel2 = LinModel(tf(2, [0.1, 1]), 0.25)
times2 = zeros(5)
for i=1:5
times2[i] = savetime!(linmodel2)
updatestate!(linmodel2, [1])
periodsleep(linmodel2, true)
end
@test all(isapprox.(diff(times2[2:end]), 0.25, atol=0.0001))
@test all(isapprox.(diff(times2[2:end]), 0.25, atol=0.05))
end

@testitem "NonLinModel construction" setup=[SetupMPCtests] begin
Expand Down Expand Up @@ -406,7 +406,7 @@ end
updatestate!(nonlinmodel1, [1])
periodsleep(nonlinmodel1)
end
@test all(isapprox.(diff(times1[2:end]), 0.25, atol=0.025))
@test all(isapprox.(diff(times1[2:end]), 0.25, atol=0.05))
linmodel2 = LinModel(tf(2, [0.1, 1]), 0.25)
nonlinmodel2 = NonLinModel(
(x,u,_,_)->linmodel2.A*x + linmodel2.Bu*u,
Expand All @@ -419,5 +419,5 @@ end
updatestate!(nonlinmodel2, [1])
periodsleep(nonlinmodel2, true)
end
@test all(isapprox.(diff(times2[2:end]), 0.25, atol=0.0001))
@test all(isapprox.(diff(times2[2:end]), 0.25, atol=0.05))
end
Loading
Loading