You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ar...@apache.org on 2022/05/18 17:55:27 UTC

[tvm] 27/36: freeze py deps

This is an automated email from the ASF dual-hosted git repository.

areusch pushed a commit to branch areusch/freeze-dependencies
in repository https://gitbox.apache.org/repos/asf/tvm.git

commit 223eeab98eb755dfff42c480f853f6af4a61f7a7
Author: Andrew Reusch <ar...@gmail.com>
AuthorDate: Fri May 13 14:05:49 2022 -0700

    freeze py deps
---
 Jenkinsfile            | 38 ++++++++++----------------------------
 jenkins/Jenkinsfile.j2 | 22 +++++++++-------------
 2 files changed, 19 insertions(+), 41 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 00d7787994..950560b8d5 100755
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -45,7 +45,7 @@
 // 'python3 jenkins/generate.py'
 // Note: This timestamp is here to ensure that updates to the Jenkinsfile are
 // always rebased on main before merging:
-// Generated at 2022-05-13T17:18:06.158241
+// Generated at 2022-05-13T17:18:11.741466
 
 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
 // NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. -->
@@ -397,36 +397,18 @@ def build_image(arch_name, image_name) {
 }
 
 if (rebuild_docker_images) {
+  stage('Freeze Python Dependencies') {
+    node('CPU') {
+      timeout(time: max_time, unit: 'MINUTES') {
+        init_git()
+        freeze_python_deps()
+      }
+    }
+  }
+
   stage('Docker Image Build') {
 
     // TODO in a follow up PR: Find ecr tag and use in subsequent builds
-    parallel(
-       'aarch64': {
-        node('ARM') {
-          timeout(time: max_time, unit: 'MINUTES') {
-            init_git()
-            build_base_image('aarch64')
-          }
-        }
-      },
-       'x86': {
-        node('CPU') {
-          timeout(time: max_time, unit: 'MINUTES') {
-            init_git()
-            build_base_image('x86')
-          }
-        }
-      },
-       'x86_64': {
-        node('CPU') {
-          timeout(time: max_time, unit: 'MINUTES') {
-            init_git()
-            build_base_image('x86_64')
-          }
-        }
-      },
-    )
-
     parallel(
       'ci_arm': {
         node('ARM') {
diff --git a/jenkins/Jenkinsfile.j2 b/jenkins/Jenkinsfile.j2
index 7cd8420265..7f97dbd790 100644
--- a/jenkins/Jenkinsfile.j2
+++ b/jenkins/Jenkinsfile.j2
@@ -314,22 +314,18 @@ def build_image(arch_name, image_name) {
 }
 
 if (rebuild_docker_images) {
+  stage('Freeze Python Dependencies') {
+    node('CPU') {
+      timeout(time: max_time, unit: 'MINUTES') {
+        init_git()
+        freeze_python_deps()
+      }
+    }
+  }
+
   stage('Docker Image Build') {
 
     // TODO in a follow up PR: Find ecr tag and use in subsequent builds
-    parallel(
-    {% for arch, img in nodes_by_arch(images) %}
-      {{ ' ' }}'{{ arch }}': {
-        node('{{ img.platform }}') {
-          timeout(time: max_time, unit: 'MINUTES') {
-            init_git()
-            build_base_image('{{ arch }}')
-          }
-        }
-      },
-    {% endfor %}
-    )
-
     parallel(
     {% for image in images %}
       '{{ image.name }}': {