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

Mangled test output on julia 1.11 #303

Closed
MarcMush opened this issue Feb 27, 2024 · 0 comments
Closed

Mangled test output on julia 1.11 #303

MarcMush opened this issue Feb 27, 2024 · 0 comments

Comments

@MarcMush
Copy link
Collaborator

I tried running the tests with juliaup on nightly, and the printlns seemed to be interlaced with the progressbars:

Testing original interface...
Progress: 100%|██████████████�T�e�s�t�i�n�g� �d�e�s�c� �a�n�d� �p�r�o�g�r�e�s�s� �b�a�r�
█████████████████| Time: 0:00:01
ComputTiensgt.i.n.g  1n0o0 %d|e�s�c� �a�n�d� �n�o� �p�r�o�g�r�e�s�s� �b�a�r�0:00:00
�██████████████████████████████████████████| Time: 0:00:01
 100% Time: 0:00:01
Testing tty width...

It also happens in CI and when building from source in WSL

versioninfo

julia> versioninfo()
Julia Version 1.12.0-DEV.88
Commit 2e9b0bbf4e (2024-02-27 02:42 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 12 × Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 12 virtual cores)
julia> versioninfo()
Julia Version 1.12.0-DEV.88
Commit 2e9b0bbf4e* (2024-02-27 02:42 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 12 × Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 12 virtual cores)

I can't reproduce it outside of tests:

julia> begin
       println("Testing original interface...")
       testfunc(107, 0.01, 0.01)

       println("Testing desc and progress bar")
       testfunc2(107, 0.01, 0.01, "Computing...", 50)
       println("Testing no desc and no progress bar")
       testfunc2(107, 0.01, 0.01, "", 0)
       end
Testing original interface...
Progress: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| Time: 0:00:01
Testing desc and progress bar
Computing... 100%|██████████████████████████████████████████████████| Time: 0:00:01
Testing no desc and no progress bar
 100% Time: 0:00:01

adding sleep after the last next! fixes it:

function testfunc(n, dt, tsleep)
    p = Progress(n; dt=dt)
    for i = 1:n
        sleep(tsleep)
        next!(p)
    end
    sleep(tsleep)
end
@MarcMush MarcMush changed the title Mangled test output on julia nightly Mangled test output on julia 1.11 Mar 3, 2024
@MarcMush MarcMush closed this as completed Apr 2, 2024
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

1 participant