-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into secure-pin-swap-fix…
…-flow
- Loading branch information
Showing
6 changed files
with
73 additions
and
160 deletions.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd $(dirname $(realpath $0))/../ | ||
|
||
if [[ "$@" == "-dev" ]]; then | ||
file_list=( | ||
"./build_openroad.sh" | ||
"./docker/Dockerfile.builder" | ||
"./docker/Dockerfile.dev" | ||
"./etc/DependencyInstaller.sh" | ||
"./etc/DockerHelper.sh" | ||
"./tools/OpenROAD/docker/Dockerfile.builder" | ||
"./tools/OpenROAD/docker/Dockerfile.dev" | ||
"./tools/OpenROAD/docker/Dockerfile.binary" | ||
"./tools/OpenROAD/etc/DependencyInstaller.sh" | ||
) | ||
cat "${file_list[@]}" | sha256sum | awk '{print substr($1, 1, 6)}' | ||
elif [[ "$@" == "-master" ]]; then | ||
git describe | ||
else | ||
echo "Usage: $0 {-dev|-master}" | ||
exit 1 | ||
fi |
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,68 +1,29 @@ | ||
@Library('utils@main') _ | ||
@Library('utils@orfs-v2.0.1') _ | ||
|
||
node { | ||
node('ubuntu22') { | ||
|
||
properties([ | ||
copyArtifactPermission('${JOB_NAME},'+env.BRANCH_NAME), | ||
]); | ||
properties([copyArtifactPermission('${JOB_NAME},'+env.BRANCH_NAME)]); | ||
|
||
stage('Checkout') { | ||
checkout scm; | ||
} | ||
|
||
def commitHash = "none"; | ||
def DOCKER_IMAGE_TAG = "latest"; | ||
def DOCKER_IMAGE; | ||
stage('Build and Push Docker Image') { | ||
if (isDependencyInstallerChanged(env.BRANCH_NAME)) { | ||
commitHash = sh(script: 'git rev-parse HEAD', returnStdout: true); | ||
commitHash = commitHash.replaceAll(/[^a-zA-Z0-9-]/, ''); | ||
DOCKER_IMAGE_TAG = pushCIImage(env.BRANCH_NAME, commitHash); | ||
} | ||
DOCKER_IMAGE = dockerPush('ubuntu22.04', 'orfs'); | ||
echo "Docker image is $DOCKER_IMAGE"; | ||
} | ||
def DOCKER_IMAGE = "openroad/flow-ubuntu22.04-dev:${DOCKER_IMAGE_TAG}"; | ||
|
||
docker.image("${DOCKER_IMAGE}").inside('--user=root --privileged -v /var/run/docker.sock:/var/run/docker.sock') { | ||
stage('Build ORFS and Stash bins') { | ||
sh "git config --system --add safe.directory '*'"; | ||
localBuild(); | ||
} | ||
stage('Build ORFS and Stash bins') { | ||
buildBins(DOCKER_IMAGE); | ||
} | ||
|
||
stage('Run Tests') { | ||
Map tasks = [failFast: false]; | ||
def test_slugs = getTestSlugs("all"); | ||
for (test in test_slugs) { | ||
def currentSlug = test; // copy needed to correctly pass args to runTests | ||
tasks["${test}"] = { | ||
node { | ||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { | ||
docker.image("${DOCKER_IMAGE}").inside('--user=root --privileged -v /var/run/docker.sock:/var/run/docker.sock') { | ||
sh "git config --system --add safe.directory '*'"; | ||
checkout scm; | ||
runTests(currentSlug); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
parallel(tasks); | ||
runTests(DOCKER_IMAGE, 'pr'); | ||
} | ||
|
||
docker.image("${DOCKER_IMAGE}").inside('--user=root --privileged -v /var/run/docker.sock:/var/run/docker.sock') { | ||
sh "git config --system --add safe.directory '*'"; | ||
stage('Report Summary') { | ||
generateReportShortSummary(); | ||
} | ||
stage("Report HTML Table") { | ||
generateReportHtmlTable(); | ||
} | ||
stage('Upload Metadata') { | ||
uploadMetadata(env.BRANCH_NAME, commitHash); | ||
} | ||
stage('Send Report') { | ||
def COMMIT_AUTHOR_EMAIL = sh(script: "git --no-pager show -s --format='%ae'", returnStdout: true).trim(); | ||
sendEmail(env.BRANCH_NAME, COMMIT_AUTHOR_EMAIL); | ||
} | ||
stage ('Cleanup and Reporting') { | ||
finalReport(DOCKER_IMAGE); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.