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

Create a common makefile for D, P, Q, SQ #188

Closed
wants to merge 12 commits into from

Conversation

2001asjad
Copy link

Added a common makefile in the project repository for the common macros like D, P, Q etc are defined and they have been included in the rest of the makefiles using include .

Fixes #159

@2001asjad
Copy link
Author

@smlambert @llxia Can you please take a look at my PR and suggest me if I have to make changes or not ?
Thank You.

@smlambert smlambert requested a review from renfeiw April 27, 2021 17:53
@renfeiw
Copy link
Contributor

renfeiw commented Apr 27, 2021

@2001asjad Thanks! A suggestion for any future PRs. Actually you don't need to close the other PR and create a new. Instead, you can amend your commit directly.

common.mk Show resolved Hide resolved
@2001asjad
Copy link
Author

@2001asjad Thanks! A suggestion for any future PRs. Actually you don't need to close the other PR and create a new. Instead, you can amend your commit directly.

Yeah sure.. It was a silly mistake from my side. Gonna take care the next time. Will update you soon with the addressed changes

@2001asjad
Copy link
Author

@renfeiw done...

@renfeiw
Copy link
Contributor

renfeiw commented Apr 28, 2021

run aqa --sdk_resource nightly --build_list openjdk --target sanity.openjdk --jdk_version 11 --jdk_impl hotspot --platform x86-64_linux

@github-actions
Copy link

@renfeiw Build(s) started with the following parameters:

  • sdk_resource: ['nightly']
  • customized_sdk_url: ['None']
  • archive_extension: ['.tar']
  • build_list: ['openjdk']
  • target: ['_sanity.openjdk']
  • platform: ['ubuntu-latest']
  • jdk_version: ['11']
  • jdk_impl: ['hotspot']
  • openjdk_testrepo: ['AdoptOpenJDK/openjdk-tests:master']

Workflow Run ID: 792786153

@github-actions
Copy link

@renfeiw Build(s) failed.
Workflow Run ID: 792786153

@llxia
Copy link
Contributor

llxia commented Apr 28, 2021

@2001asjad could up update the title to reflect the change of this PR? It should be something like: create a common makefile for D, P, Q, SQ macros

@karianna karianna added the bug Something isn't working label Apr 28, 2021
@karianna karianna added this to the April 2021 milestone Apr 28, 2021
@2001asjad
Copy link
Author

@2001asjad could up update the title to reflect the change of this PR? It should be something like: create a common makefile for D, P, Q, SQ macros

@llxia please take a look

clean.mk Outdated
@@ -14,7 +14,7 @@

.DEFAULT_GOAL := clean

D = /
include common.mk
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use full path: include $(TEST_ROOT)/TKG/common.mk and move this inclusion after ifndef TEST_ROOT block. Apply this change to all places should solve the build failure.

Copy link
Author

Choose a reason for hiding this comment

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

Please use full path: include $(TEST_ROOT)/TKG/common.mk and move this inclusion after ifndef TEST_ROOT block. Apply this change to all places should solve the build failure.

Alright. But in makeGen.mk and settings.mk the path include $(TEST_ROOT)/TKG/common.mk can be placed anywhere since it doesn't have ifndef TEST_ROOT isn't it @renfeiw ?

Copy link
Contributor

Choose a reason for hiding this comment

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

In this case, you need to add this block. In the future, we can move this block of code to the top level makefile, but for now let's duplicate it in makeGen.mk and settings.mk

@2001asjad
Copy link
Author

@renfeiw Please take a look.
Thank You

@renfeiw
Copy link
Contributor

renfeiw commented Apr 28, 2021

run aqa --sdk_resource nightly --build_list openjdk --target sanity.openjdk --jdk_version 11 --jdk_impl hotspot --platform x86-64_linux

@github-actions
Copy link

@renfeiw Build(s) started with the following parameters:

  • sdk_resource: ['nightly']
  • customized_sdk_url: ['None']
  • archive_extension: ['.tar']
  • build_list: ['openjdk']
  • target: ['_sanity.openjdk']
  • platform: ['ubuntu-latest']
  • jdk_version: ['11']
  • jdk_impl: ['hotspot']
  • openjdk_testrepo: ['AdoptOpenJDK/openjdk-tests:master']

Workflow Run ID: 793618751

@github-actions
Copy link

@renfeiw Build(s) failed.
Workflow Run ID: 793618751

@2001asjad
Copy link
Author

@renfeiw Build(s) failed.
Workflow Run ID: 793618751

@renfeiw it fails again. Any idea where am I going wrong?

@renfeiw
Copy link
Contributor

renfeiw commented Apr 28, 2021

You need to change this line: TEST_ROOT := $(shell pwd)$(D).. => TEST_ROOT := $(shell pwd)/..

@github-actions
Copy link

@llxia Build(s) successful.
Workflow Run ID: 796987209

@2001asjad
Copy link
Author

I am running a grinder on windows to test it.

@renfeiw is this alright now?

@llxia
Copy link
Contributor

llxia commented Apr 30, 2021

run aqa --sdk_resource nightly --build_list functional --target sanity.functional.regular --jdk_version 11 --jdk_impl openj9 --platform x86-64_windows

@github-actions
Copy link

@llxia Build(s) started with the following parameters:

  • sdk_resource: ['nightly']
  • customized_sdk_url: ['None']
  • archive_extension: ['.tar']
  • build_list: ['functional']
  • target: ['_sanity.functional.regular']
  • platform: ['windows-latest']
  • jdk_version: ['11']
  • jdk_impl: ['openj9']
  • openjdk_testrepo: ['AdoptOpenJDK/openjdk-tests:master']

Workflow Run ID: 799679945

@llxia
Copy link
Contributor

llxia commented Apr 30, 2021

run aqa --sdk_resource nightly --build_list functional --target extended.functional.regular --jdk_version 11 --jdk_impl openj9 --platform x86-64_windows

@github-actions
Copy link

@llxia Build(s) started with the following parameters:

  • sdk_resource: ['nightly']
  • customized_sdk_url: ['None']
  • archive_extension: ['.tar']
  • build_list: ['functional']
  • target: ['_extended.functional.regular']
  • platform: ['windows-latest']
  • jdk_version: ['11']
  • jdk_impl: ['openj9']
  • openjdk_testrepo: ['AdoptOpenJDK/openjdk-tests:master']

Workflow Run ID: 799681282

@github-actions
Copy link

@llxia Build(s) failed.
Workflow Run ID: 799679945

@github-actions
Copy link

@llxia Build(s) failed.
Workflow Run ID: 799681282

@renfeiw
Copy link
Contributor

renfeiw commented Apr 30, 2021

I encountered the same issue on windows grinder.

@2001asjad
Copy link
Author

I encountered the same issue on windows grinder.

@llxia @renfeiw suggestions?

@llxia
Copy link
Contributor

llxia commented Apr 30, 2021

https://github.com/adoptium/TKG/runs/2476330990?check_suite_focus=true

C:/hostedtoolcache/windows/jdk-11-openj9/1.0.0/x64/bin/java -cp "./bin/TestKitGen.jar:./lib/json-simple.jar" org.testKitGen.MainRunner --mode=tests --spec=win_x86-64_mxdptrs --jdkVersion=11 --impl=openj9 --vendor="adoptopenjdk" --buildList=functional --iterations=1 --testFlag= --testTarget=sanity.functional.regular --testList= --numOfMachines= --testTime= --TRSSURL= 
Error: Could not find or load main class org.testKitGen.MainRunner
Caused by: java.lang.ClassNotFoundException: org.testKitGen.MainRunner
make[1]: *** [makeGen.mk:48: autogen] Error 1
make[1]: Leaving directory '/cygdrive/d/a/TKG/TKG/openjdk-tests/TKG'
make: *** [makefile:47: _sanity.functional.regular] Error 2
Error: The process 'C:\cygwin64\bin\make.exe' failed with exit code 2

For windows, the classpath separator is ;, not :

@2001asjad
Copy link
Author

https://github.com/adoptium/TKG/runs/2476330990?check_suite_focus=true

C:/hostedtoolcache/windows/jdk-11-openj9/1.0.0/x64/bin/java -cp "./bin/TestKitGen.jar:./lib/json-simple.jar" org.testKitGen.MainRunner --mode=tests --spec=win_x86-64_mxdptrs --jdkVersion=11 --impl=openj9 --vendor="adoptopenjdk" --buildList=functional --iterations=1 --testFlag= --testTarget=sanity.functional.regular --testList= --numOfMachines= --testTime= --TRSSURL= 
Error: Could not find or load main class org.testKitGen.MainRunner
Caused by: java.lang.ClassNotFoundException: org.testKitGen.MainRunner
make[1]: *** [makeGen.mk:48: autogen] Error 1
make[1]: Leaving directory '/cygdrive/d/a/TKG/TKG/openjdk-tests/TKG'
make: *** [makefile:47: _sanity.functional.regular] Error 2
Error: The process 'C:\cygwin64\bin\make.exe' failed with exit code 2

For windows, the classpath separator is ;, not :

Ok... Seeing the error message the changes are needed at makeGen.mk and makefile.mk at lines 48 and 47 respectively. (Which you mentioned above). Am I right @llxia ?

common.mk Show resolved Hide resolved
@llxia
Copy link
Contributor

llxia commented May 3, 2021

run aqa --sdk_resource nightly --build_list functional --target sanity.functional.regular --jdk_version 11 --jdk_impl openj9 --platform x86-64_windows

@github-actions
Copy link

github-actions bot commented May 3, 2021

@llxia Build(s) started with the following parameters:

  • sdk_resource: ['nightly']
  • customized_sdk_url: ['None']
  • archive_extension: ['.tar']
  • build_list: ['functional']
  • target: ['_sanity.functional.regular']
  • platform: ['windows-latest']
  • jdk_version: ['11']
  • jdk_impl: ['openj9']
  • openjdk_testrepo: ['AdoptOpenJDK/openjdk-tests:master']

Workflow Run ID: 807083587

@github-actions
Copy link

github-actions bot commented May 3, 2021

@llxia Build(s) failed.
Workflow Run ID: 807083587

@2001asjad
Copy link
Author

@llxia @renfeiw can you take a look?

@karianna karianna modified the milestones: April 2021, May 2021 May 4, 2021
@2001asjad 2001asjad requested a review from renfeiw May 12, 2021 04:40
@smlambert smlambert removed this from the May 2021 milestone Jun 2, 2021
@llxia
Copy link
Contributor

llxia commented Jun 8, 2021

@2001asjad Could you do some initial investigation?

@2001asjad
Copy link
Author

@2001asjad Could you do some initial investigation?

Ok @llxia , like what? I'll definitely take a look then.

@llxia
Copy link
Contributor

llxia commented Jun 8, 2021

@2001asjad It would be nice if you could do the initial investigation on the PR build failure. Please feel free to launch run aqa or Grinder if needed.

@renfeiw
Copy link
Contributor

renfeiw commented Aug 11, 2021

Close this PR as no one is currently working on it.

@renfeiw renfeiw closed this Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove unnecessary macros
5 participants