-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Bring back CI and upgrade to Julia 1.6 #136
Bring back CI and upgrade to Julia 1.6 #136
Conversation
I believe there is a change in the random sequences provided by @IanButterworth, the corresponding PR on your branch is here: IanButterworth#1. |
Great. This means the reference images need updating again? Feel free to PR that update also |
Thanks, yes, I can generate the refs images again. Can you maybe add me as a collaborator to your fork ? That would allow me to push directly into this branch, and not annoy you with more PRs. |
done 👍🏻 |
@IanButterworth , I think this PR is ready. Do you mind editing your first post by adding:
for Github to link fixed issues ? @Evizero, can you review this PR, so that we get a running CI ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't check the reference files. Hopefully, that's all because of the change of random generator. As long as the CI passes, I think it's good to merge.
Interesting: on MWE Copy lines 1-97 of https://github.com/Evizero/UnicodePlots.jl/blob/master/src/canvas/asciicanvas.jl in a julia repl: 1.0.5 or 1.2.0 julia> VERSION
v"1.0.5"
julia> ascii_decode[429]
'|': ASCII/Unicode U+007c (category Sm: Symbol, math) 1.6.0 or up julia> VERSION
v"1.6.2"
julia> ascii_decode[429]
'^': ASCII/Unicode U+005E (category Sk: Symbol, modifier) EDIT: ascii_decode[0b1] = ' '
for i in 1:511
min_dist = typemax(Int)
min_char = ' '
for (k, v) in sort(collect(pairs(ascii_lookup)), by=x -> x[1])
cur_dist = count_ones(UInt16(i) ⊻ k)
if cur_dist < min_dist
min_dist = cur_dist
min_char = v
end
end
ascii_decode[i + 1] = min_char
end |
d7e4beb
to
99da575
Compare
5e15a46
to
74ab597
Compare
Finally, all tests pass 🎉 ! Blaming the non-stable @IanButterworth and @johnnychen94 I'll let you review this while I'm taking a ☕. This will need another extra check of the reference images. |
I've carefully visually checked all the references images using: root="$HOME/Downloads/UnicodePlots.jl" # fork
for f in $(find $root/test/references -name '*.txt'); do
echo; echo
echo "== local($f) =="
cat $f
echo
url="https://raw.githubusercontent.com/Evizero/UnicodePlots.jl/master/${f#$root/}"
echo "== remote($url) =="
wget -q -O - $url
done , and everything looks good (no changes apart from random numbers, as expected). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@t-bltg This looks great! Thank you for the detective work and bringing back CI!
Just two small comments and with that resolved I think we can merge it.
Co-authored-by: Johnny Chen <johnnychen94@hotmail.com>
- move from Travis/Appveyor to Github Actions - use StableRNGs to version-agnostic random generator - update test references with the new random seed Co-authored-by: t-bltg <13423344+t-bltg@users.noreply.github.com>
Progress:
force_raw_txt
kwarg toReferenceTests.@reference_test
in Allow forcing reading the reference file as raw txt/string JuliaTesting/ReferenceTests.jl#91, as a few of the reference test.txt
files were being accidentally detected by FileIO to beGadget2
formatLocally with the above PR, tests get to the barplot tests and fail on the
@inferred
becausePlot
is inferred, butPlot{BarplotGraphics{Real}}
is returnedFix #138
Fix #134
Close #119