-
Notifications
You must be signed in to change notification settings - Fork 18
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
findmax is broken for repeated values #101
Comments
The problem with SentinelArrays.jl/src/chainedvector.jl Line 812 in f9e11b7
|
For what it's worth @mkitti, when you say on Discourse
well indeed my "attention to the package was narrow". I had never touched or heard about this package before yesterday. I saw an issue that had an easy fix, and I fixed it. You found another one, I then asked you whether my fix resolved it too, and didn't get an answer. My take is that merging my fix improved the state of things, albeit not completely, and could be done quicker than a more ambitious refactoring of the whole test suite because review was instantaneous. I'm not saying it was a perfect solution, but it's not a worsening of the situation. |
I reponded with the best information I had at the time, which was that I had incorporated your fixes into my branch. I was still focused on building out testing itself, so I was not in a position to check out your branch and test it in isolation. I do not think there was anything technically wrong with your pull request other than the statement that it fixed #97 . The description of #97 not only reported a problem with Like you, I have not touched nor was aware of this package until yesterday. The problem I see is that it would be very easy to see that the issue was now "fixed" and for everyone's eyes to shift elsewhere thinking everything is now all good. I'm being a bit loud about this because I'm not quite sure this will get resolved otherwise. Overall though, I am concerned about the systemic pattern of addressing bugs narrowly in a reactive fashion rather than considering the problems with the process that permitted the issue from being detected. Shifting this thinking would allow us to be more proactive in discovering bugs. Please do not take the critique personally. I do appreciate your self-reflection. Not long ago, I would have taken the same approach as you. |
I am taking notes and will try to be a little more systemic next time 😊 |
just to be clear this is still broken? |
Yes, the current release, 1.4.2, is still broken. It's not very hard to confirm that. julia> c2 = ChainedVector([[42, 3, 8, 41], [23, 32], [42, 17]])
8-element ChainedVector{Int64, Vector{Int64}}:
42
3
8
41
23
32
42
17
julia> findmax(c2)
(42, 7)
julia> findmax(collect(c2))
(42, 1)
(jl_ftBePh) pkg> st
Status `/tmp/jl_ftBePh/Project.toml`
[91c51154] SentinelArrays v1.4.2 |
@quinnj
findmax
is still broken when there are repeated values.Fixed by #99
The text was updated successfully, but these errors were encountered: