-
Notifications
You must be signed in to change notification settings - Fork 52
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
nim CI fails with chronos #169
Comments
The compiler error here doesn't make a lot of sense - it's not chronos breaking, but rather specific usages of chronos - ie the chronos test suite passes, and it does stress this code path.
nim-chronos/chronos/asyncmacro2.nim Line 185 in 4abd7a5
push raises active here)
|
i suspect
which calls yes, compiler needs to generate a better error msg here linking a path where an exception can be raised to the place where a raises pragma is used. please try to minimize to find root cause (package may need to be disabled to avoid showing PR's as red) |
It is a fact that
you have a perfectly reproducible test case to work with already if you actually are interested in addressing the root cause - reducing it is something you can do when you understand what the bug is, which we don't, in this case. We know how to work around it however, since it appears quite often, but that will leave the bug unsolved and us with more technical debt.
Sure, I mean, this certainly will make the bug go away ;) |
nim-chronos/chronos/asyncmacro2.nim Line 216 in 4abd7a5
the snippet that generates nim-chronos/chronos/asyncmacro2.nim Line 320 in 4abd7a5
What makes you think the two interact? |
nim-lang/Nim#17382 would be a starting point as well, it's a simple case with somewhat similar symptoms |
The title is misleading.. |
We have an application securing about $6 billions dollars running on Chronos. We are currently stuck v1.2.6 because of regressions in future Nim versions. I sure hope the engine that drives that is kept as one of the important package. This seems to be yet another regression. I expect regressions notified from Nim CI are at least accompanied by a minimal context on what was changed in the PR where the CI failed. |
The failure happened after 4abd7a5, the regression of Nim maybe have been existing for a long time. First Nim CI failure began with a minor docs change https://github.com/nim-lang/Nim/runs/2182689512 |
I don't really understand the backlash here; I might as well not have reported anything and let this problem slide. I don't know where the bug lies (nim, chronos, nim-chronicles or something else), all i know is that nim CI currently fails and the only important_packages that fails is Next time I won't bother notifying this repo. |
@xflywind indeed, this smells of a latent bug in Nim, given the many similar bugs reported while creating this branch for which we were able to create an easy repros (and subsequently worked around - we try to document the workaround when possible with an upstream bug report). Consequently, if we understood the issue well enough, we would have done a repro by now as well - but this could also be an opportunity for a Nim dev to uh.. improve the quality of the Nim compiler since there's a trivial repro in Nim's own CI - I'm pretty sure it's surmountable if we work together. Now, as suggested by @timotheecour, in the interest maintaining its CI green, Nim is also free to sweep it under the rug and remove the package and not test it any more - if you do, I'd recommend you at least look deep enough to remove the right package (chronicles) - the backlash is mostly about the flippant approach to quality presented in the bug report where the first suggested solution is to lower the quality bar in Nim - this is something we generally would prefer not to see happen. Like mentioned above as well, it's fairly easy to add a workaround in this case, the |
see nim-lang/Nim#17513 for a better approach |
Since nim-lang/Nim#17513 is merged, this issue can be closed. |
ok, closing, but there still needs to be a minimized issue filed in nim so that the chronos failure can be investigated, but at least now chronos keeps running in CI (although with error), please file an issue after minimizing. |
You cannot keep assuming or requiring that we'll be able to minimize every issue and bug in the compiler - that's possible when the issue is well understood and one can work backwards from that understanding, but it's not possible when the issue is more complex and requires debugging the compiler first. This is what the backlash is about and you keep being surprised by it, which is getting odd. The situation we're in is that the code looks good and the compiler error does not - that's usually grounds enough to open an issue. |
https://github.com/nim-lang/Nim/pull/17442/checks?check_run_id=2186758767
The text was updated successfully, but these errors were encountered: