Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Created dedicated bucket with correct permission
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoabreu committed Jul 30, 2018
1 parent fae44fe commit c099979
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def docker_run(platform, function_name, use_nvidia, shared_mem = '500m') {

try {
stage('MBCC Train'){
node('mxnetlinux-cpu') {
node('restricted-mxnetlinux-cpu') {
ws('workspace/modelBackwardsCompat') {
init_git()
// Train models on older versions
Expand All @@ -81,7 +81,7 @@ try {
}

stage('MXNet Build'){
node('mxnetlinux-cpu') {
node('restricted-mxnetlinux-cpu') {
ws('workspace/build-cpu') {
init_git()
docker_run('ubuntu_cpu','build_ubuntu_cpu', false)
Expand All @@ -91,7 +91,7 @@ try {
}

stage('MBCC Inference'){
node('mxnetlinux-cpu') {
node('restricted-mxnetlinux-cpu') {
ws('workspace/modelBackwardsCompat') {
init_git()
unpack_lib('cpu', mx_lib)
Expand All @@ -101,13 +101,13 @@ try {
}
}
} catch (caughtError) {
node("mxnetlinux-cpu") {
node("restricted-mxnetlinux-cpu") {
sh "echo caught ${caughtError}"
err = caughtError
currentBuild.result = "FAILURE"
}
} finally {
node("mxnetlinux-cpu") {
node("restricted-mxnetlinux-cpu") {
// Only send email if model backwards compat test failed
if (currentBuild.result == "FAILURE") {
emailext body: 'Nightly tests for model backwards compatibity on MXNet branch : ${BRANCH_NAME} failed. Please view the build at ${BUILD_URL}', replyTo: '${EMAIL}', subject: '[MODEL BACKWARDS COMPATIBILITY TEST FAILED] build ${BUILD_NUMBER}', to: '${EMAIL}'
Expand Down
4 changes: 2 additions & 2 deletions tests/nightly/model_backwards_compatibility_check/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

# get the current mxnet version we are running on
mxnet_version = mx.__version__
model_bucket_name = 'mxnet-model-backwards-compatibility-models'
model_bucket_name = 'mxnet-ci-prod-backwards-compatibility-models'
data_folder = 'mxnet-model-backwards-compatibility-data'
backslash = '/'
s3 = boto3.resource('s3')
Expand Down Expand Up @@ -207,4 +207,4 @@ def compare_versions(version1, version2):
'''
def normalize(v):
return [int(x) for x in re.sub(r'(\.0+)*$','', v).split(".")]
return cmp(normalize(version1), normalize(version2))
return cmp(normalize(version1), normalize(version2))

0 comments on commit c099979

Please sign in to comment.