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 aarch32 & aarch64 to list of supported archs in openj9-systemtest build script #86

Merged
merged 1 commit into from
Mar 11, 2019

Conversation

Mesbah-Alam
Copy link
Contributor

Resolves: #84
Signed-off-by: [email protected] [email protected]

@Mesbah-Alam Mesbah-Alam changed the title Add aarch64 to list of supported archs in openj9-systemtest build script Add aarch32 & aarch64 to list of supported archs in openj9-systemtest build script Mar 6, 2019
@Mesbah-Alam Mesbah-Alam closed this Mar 6, 2019
@Mesbah-Alam Mesbah-Alam deleted the addAarch64ToSupportedArchs branch March 6, 2019 21:40
@Mesbah-Alam Mesbah-Alam restored the addAarch64ToSupportedArchs branch March 6, 2019 21:40
@Mesbah-Alam Mesbah-Alam reopened this Mar 6, 2019
<and>
<contains string="@{arch}" substring="aarch64"/>
</and>
</condition>
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we be more generic? For example, set property to @{arch} be the default and only handle exception cases?
In the current code, we will have to update it whenever there is a new platform introduced.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The task of generalizing the logic is not very straight forward, as the code "Sets a property containing a normalised architecture string from the java os.arch property"; i.e., in the code we are doing a "contains" search in @{arch} for a normalized architecture string, e.g. "ppc", and if found, we are setting the property to that normalized string. If we set property to @{arch} directly, then we won't be setting it to the normalized name of the architecture, but the full name -- which violates the original purpose of the macrodef. However, in any case, if we do want to find a generic solution to avoid having to add the architecture name each time we have a new one, we should ideally handle that in a separate PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

If arch is not the exact value that we want, could we use PLATFORM or SPEC and avoid to construct the value again in system tests? PLATFORM and SPEC should be defined before or detected at the beginning of running TKG.

But I agree, we can handle it in another PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could. I'll open a separate PR to investigate this further. Thanks Lan!

@Mesbah-Alam
Copy link
Contributor Author

Mesbah-Alam commented Mar 7, 2019

The PR is tested here: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/1183/console

Please note that the failure in STF is a separate issue and I'll handle it in a PR belonging to the STF repo -- STF is not liking the non-normal Java version output that Hiro's SDK generates (it has an error reported for the absent JIT). STF should be updated to allow this.

@Mesbah-Alam
Copy link
Contributor Author

Reviewer @smlambert

@smlambert
Copy link
Contributor

Agree, we should create issues against the systemtest repos to improve/simplify the addition of new platforms as it seems like too many different changes in too many different places has to occur to accommodate it, but for now we can proceed with this change, to enable systemtests against the upcoming j9 aarch64 builds.

Copy link
Contributor

@smlambert smlambert left a comment

Choose a reason for hiding this comment

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

Approve, will await any final thoughts by @llxia before merging.

@llxia
Copy link
Contributor

llxia commented Mar 7, 2019

I will approve this so that we are unblocked for running aarch64 system test builds.
@Mesbah-Alam Could you please create an issue for improving/simplifying the logic for getting platform value? Thanks.

@Mesbah-Alam
Copy link
Contributor Author

Mesbah-Alam commented Mar 7, 2019

Created new issue: adoptium/aqa-systemtest#228

@Mesbah-Alam
Copy link
Contributor Author

Here's a Grinder build that runs a system test successfully using Hiro's sdk: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/1187/console

@Mesbah-Alam
Copy link
Contributor Author

Hi @llxia, could we please merge this PR?

@smlambert smlambert merged commit 51993e1 into adoptium:master Mar 11, 2019
@Mesbah-Alam Mesbah-Alam deleted the addAarch64ToSupportedArchs branch March 20, 2019 16:11
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.

3 participants