-
-
Notifications
You must be signed in to change notification settings - Fork 27
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 openj9-systemtest repo options #107
Closed
Nandini-4120
wants to merge
5
commits into
adoptium:master
from
Nandini-4120:issue-94-option-to-pass-in-open9-systemtest
Closed
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,83 @@ | ||
import * as core from '@actions/core' | ||
import * as runaqa from './runaqa' | ||
|
||
async function run(): Promise<void> { | ||
try { | ||
const jdksource = core.getInput('jdksource', {required: false}) | ||
const version = core.getInput('version', {required: false}) | ||
const buildList = core.getInput('build_list', {required: false}) | ||
const target = core.getInput('target', {required: false}) | ||
const customTarget = core.getInput('custom_target', {required: false}) | ||
const aqatestsRepo = core.getInput('aqa-testsRepo', {required: false}) | ||
const aqasystemtestsRepo = core.getInput('aqa-systemtestsRepo', {required: false}) | ||
const openj9Repo = core.getInput('openj9_repo', {required: false}) | ||
const tkgRepo = core.getInput('tkg_Repo', {required: false}) | ||
const vendorTestRepos = core.getInput('vendor_testRepos', {required: false}) | ||
const vendorTestBranches = core.getInput('vendor_testBranches', { | ||
required: false | ||
}) | ||
const vendorTestDirs = core.getInput('vendor_testDirs', {required: false}) | ||
const vendorTestShas = core.getInput('vendor_testShas', {required: false}) | ||
|
||
let vendorTestParams = '' | ||
// let arch = core.getInput("architecture", { required: false }) | ||
if ( | ||
jdksource !== 'upstream' && | ||
jdksource !== 'github-hosted' && | ||
jdksource !== 'install-jdk' | ||
) { | ||
core.error( | ||
`jdksource should be one of [upstream, github-hosted, install-jdk]. Found: ${jdksource}` | ||
) | ||
} | ||
|
||
if ( | ||
buildList !== 'openjdk' && | ||
!buildList.startsWith('external') && | ||
!buildList.startsWith('functional') && | ||
!buildList.startsWith('perf') && | ||
!buildList.startsWith('system') | ||
) { | ||
core.setFailed( | ||
`buildList should be one of or sub dir of [openjdk, external, functional, system, perf]. Found: ${buildList}` | ||
) | ||
} | ||
if (jdksource !== 'upstream' && version.length === 0) { | ||
core.setFailed( | ||
'Please provide jdkversion if jdksource is github-hosted installed or AdoptOpenJKD/install-jdk installed.' | ||
) | ||
} | ||
if (vendorTestRepos !== '') { | ||
vendorTestParams = `--vendor_repos ${vendorTestRepos}` | ||
} | ||
if (vendorTestBranches !== '') { | ||
vendorTestParams += ` --vendor_branches ${vendorTestBranches}` | ||
} | ||
if (vendorTestDirs !== '') { | ||
vendorTestParams += ` --vendor_dirs ${vendorTestDirs}` | ||
} | ||
if (vendorTestShas !== '') { | ||
vendorTestParams += ` --vendor_shas ${vendorTestShas}` | ||
} | ||
await runaqa.runaqaTest( | ||
version, | ||
jdksource, | ||
buildList, | ||
target, | ||
customTarget, | ||
aqatestsRepo, | ||
openj9Repo, | ||
tkgRepo, | ||
vendorTestParams, | ||
aqasystemtestsRepo, | ||
) | ||
} catch (error) { | ||
core.setFailed(error.message) | ||
} | ||
async function run(): Promise<void> { | ||
try { | ||
const jdksource = core.getInput('jdksource', {required: false}) | ||
const version = core.getInput('version', {required: false}) | ||
const buildList = core.getInput('build_list', {required: false}) | ||
const target = core.getInput('target', {required: false}) | ||
const customTarget = core.getInput('custom_target', {required: false}) | ||
const aqatestsRepo = core.getInput('aqa-testsRepo', {required: false}) | ||
const aqasystemtestsRepo = core.getInput('aqa-systemtestsRepo', {required: false}) | ||
const openj9Repo = core.getInput('openj9_repo', {required: false}) | ||
const openj9systemtestsRepo = core.getInput('openj9-systemtestsRepo', { required: false }); | ||
const tkgRepo = core.getInput('tkg_Repo', {required: false}) | ||
const vendorTestRepos = core.getInput('vendor_testRepos', {required: false}) | ||
const vendorTestBranches = core.getInput('vendor_testBranches', { | ||
required: false | ||
}) | ||
const vendorTestDirs = core.getInput('vendor_testDirs', {required: false}) | ||
const vendorTestShas = core.getInput('vendor_testShas', {required: false}) | ||
|
||
let vendorTestParams = '' | ||
// let arch = core.getInput("architecture", { required: false }) | ||
if ( | ||
jdksource !== 'upstream' && | ||
jdksource !== 'github-hosted' && | ||
jdksource !== 'install-jdk' | ||
) { | ||
core.error( | ||
`jdksource should be one of [upstream, github-hosted, install-jdk]. Found: ${jdksource}` | ||
) | ||
} | ||
|
||
if ( | ||
buildList !== 'openjdk' && | ||
!buildList.startsWith('external') && | ||
!buildList.startsWith('functional') && | ||
!buildList.startsWith('perf') && | ||
!buildList.startsWith('system') | ||
) { | ||
core.setFailed( | ||
`buildList should be one of or sub dir of [openjdk, external, functional, system, perf]. Found: ${buildList}` | ||
) | ||
} | ||
if (jdksource !== 'upstream' && version.length === 0) { | ||
core.setFailed( | ||
'Please provide jdkversion if jdksource is github-hosted installed or AdoptOpenJKD/install-jdk installed.' | ||
) | ||
} | ||
if (vendorTestRepos !== '') { | ||
vendorTestParams = `--vendor_repos ${vendorTestRepos}` | ||
} | ||
if (vendorTestBranches !== '') { | ||
vendorTestParams += ` --vendor_branches ${vendorTestBranches}` | ||
} | ||
if (vendorTestDirs !== '') { | ||
vendorTestParams += ` --vendor_dirs ${vendorTestDirs}` | ||
} | ||
if (vendorTestShas !== '') { | ||
vendorTestParams += ` --vendor_shas ${vendorTestShas}` | ||
} | ||
await runaqa.runaqaTest( | ||
version, | ||
jdksource, | ||
buildList, | ||
target, | ||
customTarget, | ||
aqatestsRepo, | ||
openj9Repo, | ||
tkgRepo, | ||
vendorTestParams, | ||
aqasystemtestsRepo, | ||
openj9systemtestsRepo, | ||
) | ||
} catch (error) { | ||
core.setFailed(error.message) | ||
} | ||
} | ||
|
||
run() | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value is set up in aqa-tests repo there is no need to redo it in run-aqa. Similar to issue #105