This is an automated email from the ASF dual-hosted git repository.
tlopex pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new c6e8b02edd [CI] Fix double newlines in nightly docker update (#18717)
c6e8b02edd is described below
commit c6e8b02edd642ad6ae1b7d5b202caae2f4d28709
Author: Guan-Ming (Wesley) Chiu <[email protected]>
AuthorDate: Sat Feb 7 00:24:09 2026 +0800
[CI] Fix double newlines in nightly docker update (#18717)
## Related PR
https://github.com/apache/tvm/pull/18710
## Why
- f.readlines() returns lines that already have \n at the end
- Script then does "\n".join(content), which adds another \n between
each line
- Result: every line gets a blank line after it → file becomes malformed
→ lint fails
## How
- "\n".join(content) to "".join(content)
Signed-off-by: Guan-Ming Chiu <[email protected]>
---
ci/scripts/jenkins/open_docker_update_pr.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ci/scripts/jenkins/open_docker_update_pr.py
b/ci/scripts/jenkins/open_docker_update_pr.py
index b6897b9e44..440a62dec7 100755
--- a/ci/scripts/jenkins/open_docker_update_pr.py
+++ b/ci/scripts/jenkins/open_docker_update_pr.py
@@ -144,13 +144,13 @@ if __name__ == "__main__":
logging.info(f"No new image found")
else:
logging.info(f"Using new image {new_image}")
- new_line = f' "tag": "{new_image}",'
+ new_line = f' "tag": "{new_image}",\n'
replacements[line] = new_line
# Re-generate the Jenkinsfiles
command = f"python3 {shlex.quote(str(GENERATE_SCRIPT))}"
- content = "\n".join(content)
+ content = "".join(content)
for old_line, new_line in replacements.items():
content = content.replace(old_line, new_line)