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

Non-container external tests broken #5403

Closed
sophia-guo opened this issue Jun 25, 2024 · 6 comments
Closed

Non-container external tests broken #5403

sophia-guo opened this issue Jun 25, 2024 · 6 comments
Assignees

Comments

@sophia-guo
Copy link
Contributor

sophia-guo commented Jun 25, 2024

external tests got ERROR: failed to solve: ENV must have two arguments when make compile.

     [exec] INFO: docker build  --no-cache -t adoptopenjdk-lucene-solr-test:17-jdk-ubuntu-hotspot-full -f /home/pmikova/redhat_repos/aqavit/jvmtest/external/lucene-solr/dockerfile/17/jdk/ubuntu/Dockerfile.hotspot.full /home/pmikova/redhat_repos/aqavit/jvmtest/external/
     [exec] #####################################################
     [exec] #0 building with "default" instance using docker driver
     [exec] 
     [exec] #1 [internal] load build definition from Dockerfile.hotspot.full
     [exec] #1 transferring dockerfile: 2.82kB done
     [exec] #1 DONE 0.1s
     [exec] Dockerfile.hotspot.full:61
     [exec] --------------------
     [exec]   59 |     
     [exec]   60 |     
     [exec]   61 | >>> ENV USE_TESTENV_PROPERTIES
     [exec]   62 |     
     [exec]   63 |     # Clone lucene-solr source
     [exec] --------------------
     [exec] ERROR: failed to solve: ENV must have two arguments

Related with #5356

https://github.com/adoptium/aqa-tests/blob/master/external/dockerfile_functions.sh#L509
https://github.com/adoptium/aqa-tests/blob/master/external/dockerfile_functions.sh#L661

USE_TESTENV_PROPERTIES is not visible to print_testInfo_env() hence in generated Dockerfile USE_TESTENV_PROPERTIES no value. @LongyuZhang

Also Note:
With #5356 running locally will also hit the following message, which means both ADOPTOPENJDK_REPO and ADOPTOPENJDK_BRANCH need to be export. If that is the case, all README need to be updated. Wondered why we need to set ADOPTOPENJDK_REPO and ADOPTOPENJDK_BRANCH as environment variable instead of passing them in as all other parameters?

     [exec] #7 [3/9] RUN git clone
     [exec] #7 0.629 fatal: You must specify a repository to clone.
     [exec] #7 0.629 
     [exec] #7 0.629 usage: git clone [<options>] [--] <repo> [<dir>] ] 
      [exec] #7 ERROR: process "/bin/sh -c git clone" did not complete successfully: exit code: 129

@LongyuZhang
Copy link
Contributor

Will work on fixing this issue. @sophia-guo Do you have a jenkins link so I can refer? Thanks.

@sophia-guo
Copy link
Contributor Author

sophia-guo commented Jun 26, 2024

@LongyuZhang I don't have a public link. It could be reproduced by running any external tests other than CIRU. For example :lucene.

@sophia-guo
Copy link
Contributor Author

Also Note:
With #5356 running locally will also hit the following message, which means both ADOPTOPENJDK_REPO and ADOPTOPENJDK_BRANCH need to be export. If that is the case, all README need to be updated. Wondered why we need to set ADOPTOPENJDK_REPO and ADOPTOPENJDK_BRANCH as environment variable instead of passing them in as all other parameters?

@LongyuZhang

@LongyuZhang
Copy link
Contributor

LongyuZhang commented Jun 27, 2024

Thanks for the info, created draft PR link to inherit USE_TESTENV_PROPERTIE only on container tests with github_url aqa-tests. Testing it now.

@sophia-guo
Copy link
Contributor Author

Note that print_clone_project() update is not correct https://github.com/adoptium/aqa-tests/blob/master/external/dockerfile_functions.sh#L512. print_clone_project() is for git clone third party repo by github_url, not for aqa-tests specifically, which is defined in test.properties.

Currently non-containers tests will get aqa-tests repo and third party branch.

    [exec]   62 |     RUN git clone https://github.com/adoptium/aqa-tests.git
     [exec]   63 |     WORKDIR /aqa-tests/
     [exec]   64 | >>> RUN git checkout LUCENE_SOLR_TAG
     [exec]   65 |     WORKDIR /
     [exec]   66 |

@sophia-guo sophia-guo changed the title external tests got ERROR: failed to solve: ENV must have two arguments when make compile Non-container external tests broken Jun 27, 2024
@sophia-guo
Copy link
Contributor Author

Interesting auto closes doesn't work? Close it manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants