-
Notifications
You must be signed in to change notification settings - Fork 10.6k
fix TF-489: stdlib ParseableInterface tests #27971
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
@swift-ci please test tensorflow |
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.
Nice!
EDIT: It seems Array.DifferentiableView
extensions in tensorflow/swift-apis
also require where Element : Differentiable
constraints.
Those test failures remind me that this is a breaking API change for clients: any code assuming that I think it's an acceptable API breakage because:
I'll run our full toolchain build and downstream client tests on this to make sure we're not unexpectedly breaking anything. |
@swift-ci please test tensorflow |
6 similar comments
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
This latest compile error should be simple to fix, but first I'll reproduce it on my local machine so that I'm not just going back and forth for a long time with CI. I expect to send a PR to swift-apis fixing it. |
@swift-ci please test tensorflow |
3 similar comments
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
@swift-ci please test tensorflow macos |
Odd, we've got some test failures in seemingly-unrelated tests: Also a test failure in And my full toolchain build reveals that this also causes a swift-apis compile crash:
I'll investigate all these problems today. |
I believe this assertion was introduced by #27985, which has not yet been merged. Perhaps this is a red herring? |
Oh yes good point, I made a mistake. I was looking at the results from your build of that PR, not the results of my build of this PR. This PR actually passes toolchain build and tests :) |
…med superclass type It is possible for getSuperclassDecl() to return a non-null type, while getSuperclass() returns an ErrorType. In this case, getContextSubstitutions() could crash because the walk of the superclass chain via getSuperclass() might not find the context class. Instead of crashing in asserts builds, let getContextSubstitutions() silently build an invalid substitution map here, just as it does in no-asserts builds.
I believe that #27857 will fix these test failures. I'll cherry-pick that in, run CI, and hopefully finally be able to merge this! |
@swift-ci please test tensorflow |
1 similar comment
@swift-ci please test tensorflow |
Having
Array.DifferentiableView
only defined whenElement : Differentiable
makes the compiler quite confused, leading to issues like TF-489, TF-934.This PR works around the issue by making
Array.DifferentiableView
unconstrained.I reduced the problem to something that reproduces on master, and filed an issue for that: SR-11685. Once that issue is resolved, we can try reconstraining it.