-
Notifications
You must be signed in to change notification settings - Fork 10.5k
test: improve SILGen coverage on Windows #21371
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
Make these SILGen tests pass on windows too
@swift-ci please test |
CC: @gottesmm, @eeckstein |
CC: @slavapestov @jrose-apple - at the suggestion of @gottesmm |
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.
Mostly seems reasonable to me.
@@ -1,9 +1,9 @@ | |||
|
|||
// RUN: %target-swift-emit-silgen -module-name witness_tables -I %S/Inputs -enable-source-import %s -disable-objc-attr-requires-foundation-module -enable-objc-interop > %t.sil | |||
// RUN: %target-swift-emit-silgen -emit-sorted-sil -module-name witness_tables -I %S/Inputs -enable-source-import %s -disable-objc-attr-requires-foundation-module -enable-objc-interop > %t.sil |
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.
Why the change to sorting here? (and elsewhere, but especially this file)
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.
The order differs between Linux/Darwin and Windows. I don't think that there is a way to get both sides to work without the sorting. Perhaps there is some other approach that I didn't consider.
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.
Hm. I'm pretty sure the order is supposed to be based on source, so that's a little suspicious.
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.
My fear about this is that the need for it could show a source of non-determinism.
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.
@jrose-apple, empirical observation indicates that this is not the case. There is certainly a possibility of there being a bug in SILGen.
I want this to land. @compnerd can you split out the -emit-sorted-sil changes. I do think it is important to figure out /why/ this is happening. I talked with Jordan and we think the rest of it is ok. |
Splintered the unsorted bits into #21493 |
Going to close this, however, this is still unfixed. The change in #22308 fixes the sorting issue. |
Make these SILGen tests pass on windows too
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.