You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/11/15 20:20:38 UTC

[GitHub] [tvm] driazati commented on a diff in pull request #13300: [ci] Split Jenkinsfile into platform-specific jobs

driazati commented on code in PR #13300:
URL: https://github.com/apache/tvm/pull/13300#discussion_r1023223237


##########
ci/jenkins/generate.py:
##########
@@ -173,17 +147,30 @@ def change_type(lines: List[str]) -> Change:
 
     diff = "".join(diff)
 
+    return ChangeData(diff=diff, content=new_content, source=source, destination=destination)
+
+
+if __name__ == "__main__":
+    help = "Regenerate Jenkinsfile from template"
+    parser = argparse.ArgumentParser(description=help)
+    parser.add_argument("--force", action="store_true", help="always overwrite timestamp")
+    parser.add_argument("--check", action="store_true", help="just verify the output didn't change")
+    args = parser.parse_args()
+
+    sources = TEMPLATES_DIR.glob("*jenkinsfile.groovy.j2")
+    changes = [update_jenkinsfile(source) for source in sources if source.name != "base.groovy.j2"]

Review Comment:
   its just there to keep from copying `base.groovy.j2` to the generated directory since it doesn't do anything outside of provide helper functions



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org