-
-
Notifications
You must be signed in to change notification settings - Fork 35
Treat exceptions thrown by arguments to check as test failures (again) #138
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
Conversation
This PR corrects the wrong fix in racket#123. It restores the functionality that racket#109 is meant to implement while correctly reporting test results.
It's a shame that conditional is necessary... but yes, this looks like the right thing to do to correct my mistake in #109 |
Please don't merge this PR yet. I just discovered several issues when running the test suite. Weirdly, the CI and my local testing last week didn't find any issue... |
What are the issues? |
Last week when I run Anyway, I just pushed a code to avoid the conditional expression. If the CI returns green, I think it can be merged. |
We really need to come to a conclusion here. @sorawee @AlexKnauth is this ready to merge? |
This looks good to me |
@racket/release I think this should go in 8.1. |
This again caused test failures. What's going on here? Why didn't this show up in CI? |
Let's just revert it for now. I don't want it to interfere the 8.1 release. The issue with CI seems to be that it's not running the current code / current test. I added a test named What's more weird is why I couldn't reproduce the issue locally three days ago though now I can... |
Well, we're past the branch so this isn't interfering with the release. Why didn't the CI discover the errors that DrDr found? One possibility is that the |
Just saw your message. Are you OK with letting it failing in DrDr? In any case, I can investigate the issue later this week. |
It can detect stderr just fine. See the CI error in #139, which is the current error in DrDr. So I'm even more confident now that the CI downloads the current code from the package server, so it doesn't actually test the change that is being submitted. |
Yes, that's definitely happening, although I'm not clear on why. |
Any further thoughts on the problem here? |
Sorry, I meant to take a look at this and forgot. Will do that in this weekend. |
Ok, I just spent some time looking at this and the problem is pretty fundamental. The issue is that the check-info for a failure during the argument evaluation doesn't have the So we have to pick some other behavior. On possibility is the name of the parameter. Another possibility is just blessing the current behavior (although that has a weird consequence in the |
Related to racket#138.
#141 ought to work, but doesn't, for reasons I don't understand. |
When an `exn` is raised, use the check-info stack at the point the exception was raised, not the one at the point `(current-check-around)` was called.
Fix some failures discovered in PR #138 discussion
When an `exn` is raised, use the check-info stack at the point the exception was raised, not the one at the point `(current-check-around)` was called. (cherry picked from commit c9ff45e)
This PR corrects the wrong fix in #123. It restores the functionality
that #109 is meant to implement while correctly reporting test results.
CC: @AlexKnauth and @wilbowma