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 portable criu test for ubuntu and ubi #3909

Merged
merged 1 commit into from
Aug 10, 2022
Merged

Conversation

LongyuZhang
Copy link
Contributor

@LongyuZhang LongyuZhang commented Aug 3, 2022

@LongyuZhang
Copy link
Contributor Author

LongyuZhang commented Aug 3, 2022

@llxia @sophia-guo Could you review it? Thanks.
FYI @tajila

@LongyuZhang
Copy link
Contributor Author

Test Links:
sanity.external

  • JDK11: hyc_grinder 26434
  • JDK17: hyc_grinder 26435

// USERNAME and PASSWORD reference with a withCredentials block will not be visible within job output
withCredentials([usernamePassword(credentialsId: "${env.DOCKER_REGISTRY_URL_CREDENTIAL_ID}", usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
echo "Private Docker Registry login starts:"
sh 'echo $PASSWORD | docker login --username=$USERNAME --password-stdin ' + "$env.DOCKER_REGISTRY_URL"
Copy link
Contributor

Choose a reason for hiding this comment

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

docker login should not be done in JenkinsfileBase. I think it should be done only when needed (at the test level).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Docker login has been moved to tests where login is needed (push new image and pull image). New grinder is hyc 26514 and 26515. Thanks.

@llxia
Copy link
Contributor

llxia commented Aug 8, 2022

@LongyuZhang I will need to have a desktop review about this PR. I have several questions about this.

  • This PR contains two binaries - criu and libcriu.so. This may not be allowed.
  • Folder structure

- Add portable criu test with keep checkpoint and restore functions
- Add images for both ubuntu and ubi
- These tests will only run when jdk supports criu
@LongyuZhang
Copy link
Contributor Author

@llxia The two criu binaries have been removed from the commit. They will be downloaded in dockerfile when building the ubi docker image. Test links: hyc_grinder 26609 and 26610. Thanks.

@llxia
Copy link
Contributor

llxia commented Aug 10, 2022

I will approve this PR. Other improvements (i.e., use getDependency job to pre-download criu and libcriu.so binaries, reorganize the folder structure, etc) can be added in the future PR.

Copy link
Contributor

@renfeiw renfeiw left a comment

Choose a reason for hiding this comment

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

LGTM

@renfeiw renfeiw merged commit b8a6d0e into adoptium:master Aug 10, 2022
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
Development

Successfully merging this pull request may close these issues.

3 participants