-
Notifications
You must be signed in to change notification settings - Fork 1
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
DNM: messy test to try to find undo bug; only found some other bugs #973
Conversation
Hmm, actually scrap that! I have found the bug: leaving this running much longer results in a
but using those options just result in |
Judging from the log (see https://gist.github.com/brprice/d9e678e6961ebdc0e977248d35cc762e), it appears to do three actions, starting from a somewhat complex program
|
That's great news! Any idea what's causing it? (Also, maybe temper "found the bug" with "found a bug"; as far as I recall, I've previously encountered the [rather, an] undo bug without performing a raise operation, though obviously it's possible there's one common root cause.) |
I think you mentioned yesterday that this is an upstream issue with Hedgehog's last release. I've seen similarly confusing output myself whenever I've tried to use the |
I have tried to get a minimal broken example, but not yet boiled it down to anything worth submitting upstream. When you got such output was it on a smaller testcase than the "available actions accepted" one? (Preferably not dependent on action code at all) |
That's the only one I've been using, unfortunately. |
I have now submitted the hedgehog issue upstream: hedgehogqa/haskell-hedgehog#487. This was aided by CI finding a failure in a test that does not touch actions, which was much, much easier to minimise! (this ci failure was #972 (comment) / https://buildkite.com/hackworthltd/primer/builds/3339#01882a2d-6f71-4481-9463-4391e75b865c) |
…liding a hole we are focused on?
I have diagnosed one bug here (I am unsure if there are multiple ones lurking). Sometimes we find a situation where 71c86a4 "feat: actions handle smart elision of hole/ann better" is incomplete, such as the following minimised example
this starts with This particular bug is fixed in #1032, though I note that the test in this PR uncovers some others (seemingly unrelated to undo -- I have no idea why this test seems much better than the existing actions-are-accepted test) |
3c0b4b3
to
31e2e3f
Compare
Hmm, I am rather confused about this test. It uncovered some bugs that were fixed in #1032 , but none of these were related to undo! I do not understand why it seems a more effective test than the current "offered actions are accepted" test, though I have not looked into it closely. It may be worth (tidying up and) merging just for the more effective test, even if it does not tickle an undo bug. |
Given that we now have understood at least one undo bug #1056 which can only be triggered by doing multiple interleaved edit, eval, undo and redo actions, I think it would be worth getting this test (upgraded? and) merged, as our current test only does one action, starting from a complex generated App |
Can this be closed now? |
Bumping, can this PR be closed? |
Closing in favour of #1167 |
I finally hacked together the test I have mentioned to try to flush out any undo bugs: "run a bunch of actions, then ensure can undo at the end". This did not uncover any bugs. Thus I conclude that either
I am mostly opening this PR so the code is not lost. In the case that this bug does crop up again, this may be a good starting point to find it. I'm happy to do the (fairly minor) clean up to get this into a mergeable state if you think it would be a good addition to the testsuite, but I doubt I'll push for its inclusion myself.