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

Comment triggered PR builds enhancements #2296

Closed
llxia opened this issue Feb 22, 2021 · 7 comments
Closed

Comment triggered PR builds enhancements #2296

llxia opened this issue Feb 22, 2021 · 7 comments
Assignees
Projects

Comments

@llxia
Copy link
Contributor

llxia commented Feb 22, 2021

Recently, we enabled comment-triggered PR builds #2199 (Thanks @Icohedron). There are a couple of enhancements that we would like to add:

  • --sdk_resource can be a URL. It is the same as CUSTOMIZED_SDK_URL in Grinder that users can provide a URL for downloading SDK. We should use this SDK for testing. We can ignore credentials for now.
--sdk_resource=customized --customized_sdk_url=https://xxx
--sdk_resource=build
@Icohedron Icohedron self-assigned this Feb 23, 2021
@karianna karianna added this to TODO in aqa-tests via automation Feb 23, 2021
@smlambert smlambert added this to To do in CanOSP W21 Feb 23, 2021
@smlambert smlambert moved this from To do to In progress in CanOSP W21 Feb 23, 2021
@Icohedron
Copy link
Contributor

The AdoptOpenJDK/install-jdk action requires an additional parameter archiveExtension when fetching a customized SDK from a URL. Should the workflow try to predict the archive extension from the URL or should the archive extension be provided as an additional argument?

@Icohedron
Copy link
Contributor

Users should provide jdk/openj9 repo and branch for now.

How should the repo and branch to be provided for building the SDK?

@sophia-guo
Copy link
Contributor

Both build-jdk and build-openj9 currently auto supports PRs in related repos, i.e. AdoptOpenjdk/openjdk-builds, Eclipse/openj9, Eclispe/openj9-omr, ibmruntimes/openj9-openjdk-jdk${version}. Need to update if we'd like to support explicitly passing in repo/branch info.

@sophia-guo
Copy link
Contributor

The AdoptOpenJDK/install-jdk action requires an additional parameter archiveExtension when fetching a customized SDK from a URL. Should the workflow try to predict the archive extension from the URL or should the archive extension be provided as an additional argument?

I think if we could predict the archive extension the prediction logic should be in AdoptOpenJDK/install-jdk action. That is the action could be enhanced to enable it.

@Icohedron
Copy link
Contributor

Icohedron commented Mar 6, 2021

Both build-jdk and build-openj9 currently auto supports PRs in related repos, i.e. AdoptOpenjdk/openjdk-builds, Eclipse/openj9, Eclispe/openj9-omr, ibmruntimes/openj9-openjdk-jdk${version}. Need to update if we'd like to support explicitly passing in repo/branch info.

So if I'm understanding this correctly, then --sdk_resource=build should only work for PR comments in those repos?
Then the tests would be fetched from AdoptOpenJDK/openjdk-tests ?

If so, it seems like this may be better as a separate GitHub workflow rather than tacking it onto this comment triggered PR build workflow.

@sophia-guo
Copy link
Contributor

If using --sdk_resource=upstream default build-jdk | build-openj9 action can be used for now no need for user to provide repo and branch.

There are two other scenarios :

  1. In openjdk-tests, tkg ( non build-jdk | build-openj9 related repos) user comment in PRs to trigger tests based on JDK built by user defined build-jdk | build-openj9 repo and branch.
  2. In build-jdk | build-openj9 related repos, user comment in PRs to trigger tests based on JDK built by the repo's PRs ( no need for user to define build repo and branch), tests are fectched from run-aqa.

For case 1 is common build-jdk | build-openj9 will need to be updated.

@llxia
Copy link
Contributor Author

llxia commented May 17, 2022

Changes are delivered. I think we can close this issue.

@llxia llxia closed this as completed May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
aqa-tests
  
In Progress
Development

No branches or pull requests

5 participants