Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shuffled order of console outputs in filewatching mode #50

Open
Petr-Hlavenka opened this issue Nov 24, 2021 · 1 comment
Open

Shuffled order of console outputs in filewatching mode #50

Petr-Hlavenka opened this issue Nov 24, 2021 · 1 comment

Comments

@Petr-Hlavenka
Copy link

Hi,
below is the output of my tests that are using your excellent Jive.jl.
The first initial run, as you see below, correctly places the outputs and warning of the running code to the correct section of the file. However, after triggering the test evaluation based on file save action, the outputs get shuffled. I;d like to ensure the final report on the number of passed and errored test is always the last row in the terminal.
Do you have any idea how we can properly synchronize the outputs?

PS C:\Users\petr.hlavenka\.julia\dev\EMProject> julia --color=yes -q -i  --project=. test/revise.jl
[ Info: Precompiling EMProject [03c143d7-b7ce-4213-9008-72f586cb6a7a]
┌ Warning: Package EMProject does not have Statistics in its dependencies:- If you have EMProject checked out for development and have
│   added Statistics as a dependency but haven't updated your primary
│   environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with EMProject
└ Loading Statistics into EMProject from project dependency, future warnings for EMProject are suppressed.
watching folders ...
  - ..\src
  - .

1/5 test_emtimedomain.jl
    Pass: 4  (compile: 2.62, elapsed: 2.64 seconds)
2/5 test_imageanalysis.jl
fname = "C:\\Users\\petr.hlavenka\\.julia\\dev\\EMProject\\test\\test_project/data/exp_raw/SNR\\SNR-H5UC-UHR_10.00kV_50pA_5.0002mm_1.00µs_12.tif"
fname = "C:\\Users\\petr.hlavenka\\.julia\\dev\\EMProject\\test\\test_project/data/exp_raw/SNR\\SNR-H5UC-UHR_10.00kV_50pA_5.0002mm_10.00µs_14.tif"
fname = "C:\\Users\\petr.hlavenka\\.julia\\dev\\EMProject\\test\\test_project/data/exp_raw/SNR\\SNR-H5UC-UHR_10.00kV_50pA_5.0002mm_3.00µs_13.tif"
fname = "C:\\Users\\petr.hlavenka\\.julia\\dev\\EMProject\\test\\test_project/data/exp_raw/SNR\\SNR-H5UC-UHR_10.00kV_50pA_5.0002mm_30.00µs_15.tif"
    Pass: 1  (compile: 0.47, elapsed: 5.17 seconds)
3/5 test_lestrade.jl
  Activating environment at `C:\Users\petr.hlavenka\.julia\dev\EMProject\test\test_project\Project.toml`
┌ Warning: The Git repository ('C:\Users\petr.hlavenka\.julia\dev\EMProject\test\test_project') is dirty! Appending _dirty to the commit ID.
└ @ DrWatson C:\Users\petr.hlavenka\.julia\packages\DrWatson\OgRKj\src\saving_tools.jl:65
  Activating environment at `C:\Users\petr.hlavenka\.julia\dev\EMProject\Project.toml`
    Pass: 6  (compile: 0.42, elapsed: 0.91 seconds)
4/5 test_peakhightanalysis.jl
5/5 test_visuallogging.jl
┌ Debug: This is complex debug summary about a and b: a+b = 3 and a-b = 1
│   deb_obj = (a = 2, b = 1, c = 3, d = 1)
└ @ Main.anonymous C:\Users\petr.hlavenka\.julia\dev\EMProject\test\test_visuallogging.jl:12
┌ Debug: This is complex debug summary about a and b: a+b = 3 and a-b = 1
│   deb_obj = (a = 2, b = 1, c = 3, d = 1)
└ @ Main.anonymous C:\Users\petr.hlavenka\.julia\dev\EMProject\test\test_visuallogging.jl:12
    Pass: 6  (compile: 0.25, elapsed: 0.33 seconds)
✅  All 17 tests have been completed.  (compile: 4.44, elapsed: 9.75 seconds)
julia> test_imageanalysis.jl
1/5 test_emtimedomain.jl
    Pass: 4  (compile: 0.00, elapsed: 0.01 seconds)
2/5 test_imageanalysis.jl
fname = "C:\\Users\\petr.hlavenka\\.julia\\dev\\EMProject\\test\\test_project/data/exp_raw/SNR\\SNR-H5UC-UHR_10.00kV_50pA_5.0002mm_1.00µs_12.tif"
fname = "C:\\Users\\petr.hlavenka\\.julia\\dev\\EMProject\\test\\test_project/data/exp_raw/SNR\\SNR-H5UC-UHR_10.00kV_50pA_5.0002mm_10.00µs_14.tif"
fname = "C:\\Users\\petr.hlavenka\\.julia\\dev\\EMProject\\test\\test_project/data/exp_raw/SNR\\SNR-H5UC-UHR_10.00kV_50pA_5.0002mm_3.00µs_13.tif"
fname = "C:\\Users\\petr.hlavenka\\.julia\\dev\\EMProject\\test\\test_project/data/exp_raw/SNR\\SNR-H5UC-UHR_10.00kV_50pA_5.0002mm_30.00µs_15.tif"
    Pass: 1  (compile: 0.00, elapsed: 0.18 seconds)
3/5 test_lestrade.jl
┌ Warning: The Git repository ('C:\Users\petr.hlavenka\.julia\dev\EMProject\test\test_project') is dirty! Appending _dirty to the commit ID.
└ @ DrWatson C:\Users\petr.hlavenka\.julia\packages\DrWatson\OgRKj\src\saving_tools.jl:65
    Pass: 6  (compile: 0.04, elapsed: 0.11 seconds)
4/5 test_peakhightanalysis.jl
5/5 test_visuallogging.jl
    Pass: 6  (compile: 0.05, elapsed: 0.09 seconds)
✅  All 17 tests have been completed.  (compile: 0.09, elapsed: 0.42 seconds)
  Activating environment at `C:\Users\petr.hlavenka\.julia\dev\EMProject\test\test_project\Project.toml`
  Activating environment at `C:\Users\petr.hlavenka\.julia\dev\EMProject\Project.toml`
┌ Debug: This is complex debug summary about a and b: a+b = 3 and a-b = 1
│   deb_obj = (a = 2, b = 1, c = 3, d = 1)
└ @ Main.anonymous C:\Users\petr.hlavenka\.julia\dev\EMProject\test\test_visuallogging.jl:12
┌ Debug: This is complex debug summary about a and b: a+b = 3 and a-b = 1
│   deb_obj = (a = 2, b = 1, c = 3, d = 1)
└ @ Main.anonymous C:\Users\petr.hlavenka\.julia\dev\EMProject\test\test_visuallogging.jl:12
@wookay
Copy link
Owner

wookay commented Nov 24, 2021

could you make an example repo for that?
and I think that you need to run test without Pkg.activate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants