Skip to content
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

Fix macOS 10.13 test failures #3066

Merged
merged 2 commits into from
Dec 4, 2017
Merged

Conversation

chamons
Copy link
Contributor

@chamons chamons commented Nov 29, 2017

No description provided.

@monojenkins
Copy link
Collaborator

Build failure

@@ -692,9 +692,6 @@
<Compile Include="..\monotouch-test\ObjCRuntime\RegistrarTest.cs">
<Link>ObjCRuntime\RegistrarTest.cs</Link>
</Compile>
<Compile Include="..\api-shared\ObjCRuntime\Registrar.cs">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look quite right...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I built the csproj (to run the tests) in XS I got an error about duplicate files. Let me revert this here and PR it separate if I see it again.

Copy link
Contributor Author

@chamons chamons Nov 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just reverted this and I get this locally:

/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Roslyn/Microsoft.CSharp.Core.targets(84,5): error MSB3105: The item "../api-shared/ObjCRuntime/Registrar.cs" was specified more than once in the "Sources" parameter.  Duplicate items are not supported by the "Sources" parameter. [/Users/donblas/Programming/macios/xcode9/xamarin-macios/tests/xammac_tests/xammac_tests.csproj]

doing more digging.

Copy link
Contributor Author

@chamons chamons Nov 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

      <Compile Include="..\api-shared\ObjCRuntime\Registrar.cs">
      <Link>Registrar.cs</Link>
    </Compile>
    <Compile Include="..\monotouch-test\ObjCRuntime\RegistrarTest.cs">
      <Link>ObjCRuntime\RegistrarTest.cs</Link>
    </Compile>
    <Compile Include="..\api-shared\ObjCRuntime\Registrar.cs">
      <Link>api-shared\ObjCRuntime\Registrar.cs</Link>
    </Compile>

It is duplicated... Why did this not fail before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rolfbjarne This "works" because we use xbuild to build the tests on the bots. I used msbuild to compile time check and it fails there.

Another xbuild/msbuild ism...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually nvm, of course it won't show duplicated items when I'm looking at the commit where you fixed it.

In the xcode9.2 branch it is duplicated:

<Compile Include="..\api-shared\ObjCRuntime\Registrar.cs">
<Link>Registrar.cs</Link>
</Compile>
<Compile Include="..\monotouch-test\ObjCRuntime\RegistrarTest.cs">
<Link>ObjCRuntime\RegistrarTest.cs</Link>
</Compile>
<Compile Include="..\api-shared\ObjCRuntime\Registrar.cs">
<Link>api-shared\ObjCRuntime\Registrar.cs</Link>
</Compile>

@@ -114,20 +114,19 @@ public void RoundtripRSAMinPKCS1 ()
byte [] cipher;
if (TestRuntime.CheckXcodeVersion (8,0)) {
Assert.True (public_key.IsAlgorithmSupported (SecKeyOperationType.Encrypt, SecKeyAlgorithm.RsaEncryptionPkcs1), "public/IsAlgorithmSupported/Encrypt");
#if MONOMAC
Assert.False (public_key.IsAlgorithmSupported (SecKeyOperationType.Decrypt, SecKeyAlgorithm.RsaEncryptionPkcs1), "public/IsAlgorithmSupported/Decrypt");
Action decryptTest = v => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/Users/poupou/git/xcode9.2/xamarin-macios/tests/monotouch-test/Security/KeyTest.cs(117,27): error CS1593: Delegate 'Action' does not take 1 arguments
/Users/poupou/git/xcode9.2/xamarin-macios/tests/monotouch-test/Security/KeyTest.cs(127,19): error CS0103: The name 'Mac' does not exist in the current context
/Users/poupou/git/xcode9.2/xamarin-macios/tests/monotouch-test/Security/KeyTest.cs(216,133): error CS0103: The name 'Mac' does not exist in the current context

weird it fails to build locally when I do a make run-mac-xammac_tests on xcode9.2 branch

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that weird, it failed on bots too (checked the wrong PR result, too many windows)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I blind pushed this (mentioned on #mac) due to build issues locally end of day. I thought I compiled it though, my mistake.

@monojenkins
Copy link
Collaborator

Build success

@chamons
Copy link
Contributor Author

chamons commented Nov 30, 2017

@spouliot 👍 ?

Copy link
Contributor

@spouliot spouliot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not tried the latest (compilable) version on 10.13 -but it seems you fixed your build issue there, right ? info ping me and I'll test it, otherwise merge it :)

@chamons
Copy link
Contributor Author

chamons commented Dec 1, 2017

@spouliot The csproj change fixed my local build. I have had some trouble reproducing these changes locally, but the tests run successfully for me and I figured the bots can be the final arbitrator.

@spouliot
Copy link
Contributor

spouliot commented Dec 1, 2017

@chamons jenkins bots are on 10.12 - I rather know if it's fine before merging and wrench to validate on high-sierra

@spouliot spouliot merged commit 4c966e3 into xamarin:xcode9.2 Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants