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

Add OSX settings for PR builds #3215

Merged
merged 2 commits into from
Oct 18, 2018
Merged

Conversation

jdekonin
Copy link
Contributor

  • [skip ci]
  • JDK8 and JDK11 only

Signed-off-by: Joe deKoning joe_dekoning@ca.ibm.com

#3124

@AdamBrousseau
Copy link
Contributor

Jenkins copyright check

@AdamBrousseau
Copy link
Contributor

jenkins compile osx jdk11

2 similar comments
@AdamBrousseau
Copy link
Contributor

jenkins compile osx jdk11

@AdamBrousseau
Copy link
Contributor

jenkins compile osx jdk11

@AdamBrousseau
Copy link
Contributor

jenkins compile win jdk10

Copy link
Contributor

@AdamBrousseau AdamBrousseau left a comment

Choose a reason for hiding this comment

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

I don't think the pr pipelines are required anymore. If the PRs are configured to use Build-Test-Any-Platform, then these 3 are not needed.

@AdamBrousseau
Copy link
Contributor

jenkins test sanity osx jdk8

@DanHeidinga
Copy link
Member

jenkins test sanity osx jdk11

Copy link
Member

@DanHeidinga DanHeidinga left a comment

Choose a reason for hiding this comment

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

Temp location for the boot jdk

@DanHeidinga DanHeidinga self-assigned this Oct 17, 2018
@DanHeidinga
Copy link
Member

jenkins test sanity osx jdk11

@DanHeidinga
Copy link
Member

jenkins test sanity osx jdk11

1 similar comment
@DanHeidinga
Copy link
Member

jenkins test sanity osx jdk11

@jdekonin
Copy link
Contributor Author

jdekonin commented Oct 17, 2018

jenkins test sanity osx jdk11

@DanHeidinga, I included your change and made a slight change of my own after rebasing. Another build to make sure its still failing in the same location, or hopefully somewhere further along.

@jdekonin
Copy link
Contributor Author

jenkins test sanity osx jdk11

@DanHeidinga
Copy link
Member

This looks OK to me for jdk11. jdk8 will likely require further changes but this is good enough to get started.

@jdekonin Can you remove the wip?

@@ -87,6 +87,9 @@ export BUILD_CONFIG?=prod
<#elseif uma.spec.id?starts_with("linux_arm_linaro")>
export PLATFORM=arm-linux-gcc-cross
</#if>
<#if uma.spec.id?starts_with("osx_x86-64")>
export PLATFORM=amd64-osx-clang
Copy link
Contributor

Choose a reason for hiding this comment

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

@jdekonin for JDK8, we need to set export PLATFORM=amd64-osx-gcc. Nazim is adding amd64-osx-gcc.mk via #3331.

fyi - @DanHeidinga @0xdaryl @nbhuiyan

@@ -87,6 +87,9 @@ export BUILD_CONFIG?=prod
<#elseif uma.spec.id?starts_with("linux_arm_linaro")>
export PLATFORM=arm-linux-gcc-cross
</#if>
<#if uma.spec.id?starts_with("osx_x86-64")>
Copy link
Member

Choose a reason for hiding this comment

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

Maybe try something like

<#if uma.buildinfo.version.major == 8>
   export PLATFORM=amd64-osx-gcc
<#else>
   export PLATFORM=amd64-osx-clang
</#if>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rebased and updated to handle v8 difference.

@jdekonin jdekonin force-pushed the master branch 2 times, most recently from b634063 to a42367d Compare October 18, 2018 15:10
@DanHeidinga
Copy link
Member

jenkins test sanity osx jdk11

@@ -87,6 +87,13 @@ export BUILD_CONFIG?=prod
<#elseif uma.spec.id?starts_with("linux_arm_linaro")>
export PLATFORM=arm-linux-gcc-cross
</#if>
<#if uma.spec.id?starts_with("osx_x86-64")>
<#if uma.buildinfo.version.major == 8>
Copy link
Contributor

Choose a reason for hiding this comment

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

@jdekonin this syntax is incorrect. the CI builds are failing because they are unable to generate runtime/compiler/makefile:

==> if-else  [on line 91, column 3 in compiler/makefile.ftl]

11:45:47 Java backtrace for programmers:
11:45:47 ----------
11:45:47 freemarker.template.TemplateException: The only legal comparisons are between two numbers, two strings, or two dates.
11:45:47 Left  hand operand is a freemarker.template.SimpleScalar
11:45:47 Right hand operand is a freemarker.template.SimpleNumber
11:45:47 
11:45:47 	at freemarker.core.ComparisonExpression.isTrue(ComparisonExpression.java:182)
11:45:47 	at freemarker.core.IfBlock.accept(IfBlock.java:80)
11:45:47 	at freemarker.core.Environment.visit(Environment.java:196)
11:45:47 	at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
11:45:47 	at freemarker.core.Environment.visit(Environment.java:196)
11:45:47 	at freemarker.core.MixedContent.accept(MixedContent.java:92)
11:45:47 	at freemarker.core.Environment.visit(Environment.java:196)
11:45:47 	at freemarker.core.Environment.process(Environment.java:176)
11:45:47 	at freemarker.template.Template.process(Template.java:232)
11:45:47 	at com.ibm.uma.UMA.generate(UMA.java:215)
11:45:47 	at com.ibm.j9.uma.Main.main(Main.java:277)
11:45:47 
11:45:47 freemarker.template.TemplateException: The only legal comparisons are between two numbers, two strings, or two dates.
11:45:47 Left  hand operand is a freemarker.template.SimpleScalar
11:45:47 Right hand operand is a freemarker.template.SimpleNumber

Also, uma.buildinfo.version.major is not set. This check won't work even if we fix the syntax.

The correct way is the following:

<#if uma.spec.id?starts_with("osx_x86-64")>
ifeq ($(VERSION_MAJOR),8)
  export PLATFORM=amd64-osx-gcc
else
  export PLATFORM=amd64-osx-clang
endif
</#if>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @babsingh, I was planning on asking you to test that out.

* [skip ci]
* JDK8 and JDK11 only

Signed-off-by: Joe deKoning <joe_dekoning@ca.ibm.com>
* [skip ci]
* related to eclipse-openj9#3331

Signed-off-by: Joe deKoning <joe_dekoning@ca.ibm.com>
@jdekonin
Copy link
Contributor Author

Latest update should resolve the uma makefile generation issue that the travis build hit. I also removed the change that enabled OSX in the nightly builds. If these commits in the current form are acceptable, then its ready.

jenkins test sanity osx jdk11

@jdekonin jdekonin changed the title WIP: Add OSX settings for PRs and builds Add OSX settings for PR builds Oct 18, 2018
Copy link
Member

@DanHeidinga DanHeidinga left a comment

Choose a reason for hiding this comment

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

lgtm provided the pr build passes

@DanHeidinga
Copy link
Member

Merging as this as it allows PR builds to compile. The failures are due to test related code and are outside the scope of this PR.

@DanHeidinga DanHeidinga merged commit 72f731f into eclipse-openj9:master Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants