From 9664752a7e421028d3648b433d18eebf71136c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Cumplido?= Date: Wed, 10 Apr 2024 10:14:13 +0200 Subject: [PATCH 1/4] GH-41119: [Archery][Packaging][CI] Avoid using ARCHERY_DEBUG=1 on Windows wheels as --progress flag is not supported on Docker on Windows --- dev/tasks/macros.jinja | 4 +++- dev/tasks/python-wheels/github.windows.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/tasks/macros.jinja b/dev/tasks/macros.jinja index f55a7f9481e5..bb1fc8fdb3a4 100644 --- a/dev/tasks/macros.jinja +++ b/dev/tasks/macros.jinja @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -{%- macro github_header() -%} +{%- macro github_header(archery_debug=True) -%} # NOTE: must set "Crossbow" as name to have the badge links working in the # github comment reports! name: Crossbow @@ -25,7 +25,9 @@ on: - "*-github-*" env: + {% if archery_debug %} ARCHERY_DEBUG: 1 + {% endif %} ARCHERY_USE_DOCKER_CLI: 1 {% endmacro %} diff --git a/dev/tasks/python-wheels/github.windows.yml b/dev/tasks/python-wheels/github.windows.yml index 01f4977a9b0b..7d4022a4b07b 100644 --- a/dev/tasks/python-wheels/github.windows.yml +++ b/dev/tasks/python-wheels/github.windows.yml @@ -17,7 +17,7 @@ {% import 'macros.jinja' as macros with context %} -{{ macros.github_header() }} +{{ macros.github_header(archery_debug=False) }} jobs: build: From af01e7b358a7226a690294e6d6851123d53ce2f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Cumplido?= Date: Wed, 10 Apr 2024 14:15:00 +0200 Subject: [PATCH 2/4] Avoid using --progress plain on Windows --- dev/archery/archery/docker/core.py | 4 ++-- dev/tasks/macros.jinja | 4 +--- dev/tasks/python-wheels/github.windows.yml | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dev/archery/archery/docker/core.py b/dev/archery/archery/docker/core.py index 0b49111dd694..7376bb0a3b72 100644 --- a/dev/archery/archery/docker/core.py +++ b/dev/archery/archery/docker/core.py @@ -311,7 +311,7 @@ def _build(service, use_cache): self._execute_docker("buildx", "build", *args) elif self.config.using_docker: # better for caching - if self.config.debug: + if self.config.debug and os.name != "nt": args.append("--progress=plain") for k, v in service['build'].get('args', {}).items(): args.extend(['--build-arg', '{}={}'.format(k, v)]) @@ -324,7 +324,7 @@ def _build(service, use_cache): ]) self._execute_docker("build", *args) else: - if self.config.debug: + if self.config.debug and os.name != "nt": args.append("--progress=plain") self._execute_compose("build", *args, service['name']) diff --git a/dev/tasks/macros.jinja b/dev/tasks/macros.jinja index bb1fc8fdb3a4..f55a7f9481e5 100644 --- a/dev/tasks/macros.jinja +++ b/dev/tasks/macros.jinja @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -{%- macro github_header(archery_debug=True) -%} +{%- macro github_header() -%} # NOTE: must set "Crossbow" as name to have the badge links working in the # github comment reports! name: Crossbow @@ -25,9 +25,7 @@ on: - "*-github-*" env: - {% if archery_debug %} ARCHERY_DEBUG: 1 - {% endif %} ARCHERY_USE_DOCKER_CLI: 1 {% endmacro %} diff --git a/dev/tasks/python-wheels/github.windows.yml b/dev/tasks/python-wheels/github.windows.yml index 7d4022a4b07b..01f4977a9b0b 100644 --- a/dev/tasks/python-wheels/github.windows.yml +++ b/dev/tasks/python-wheels/github.windows.yml @@ -17,7 +17,7 @@ {% import 'macros.jinja' as macros with context %} -{{ macros.github_header(archery_debug=False) }} +{{ macros.github_header() }} jobs: build: From f6580cd53b0de0016cc57211c80278da9aa69027 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Thu, 11 Apr 2024 05:48:48 +0900 Subject: [PATCH 3/4] Change revision temporary to run build --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index 298c100c094b..ca5c2e77d70e 100644 --- a/.env +++ b/.env @@ -98,7 +98,7 @@ VCPKG="a42af01b72c28a8e1d7b48107b33e4f286a55ef6" # 2023.11.20 Release # ci/docker/python-wheel-windows-vs2019.dockerfile. # This is a workaround for our CI problem that "archery docker build" doesn't # use pulled built images in dev/tasks/python-wheels/github.windows.yml. -PYTHON_WHEEL_WINDOWS_IMAGE_REVISION=2024-03-19 +PYTHON_WHEEL_WINDOWS_IMAGE_REVISION=2024-04-11 # Use conanio/${CONAN} for "docker-compose run --rm conan". See # https://github.com/conan-io/conan-docker-tools#readme for available From 575f3dceca2adf9895f4c1c0127702035506b433 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Thu, 11 Apr 2024 05:49:43 +0900 Subject: [PATCH 4/4] Revert "Change revision temporary to run build" This reverts commit f6580cd53b0de0016cc57211c80278da9aa69027. --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index ca5c2e77d70e..298c100c094b 100644 --- a/.env +++ b/.env @@ -98,7 +98,7 @@ VCPKG="a42af01b72c28a8e1d7b48107b33e4f286a55ef6" # 2023.11.20 Release # ci/docker/python-wheel-windows-vs2019.dockerfile. # This is a workaround for our CI problem that "archery docker build" doesn't # use pulled built images in dev/tasks/python-wheels/github.windows.yml. -PYTHON_WHEEL_WINDOWS_IMAGE_REVISION=2024-04-11 +PYTHON_WHEEL_WINDOWS_IMAGE_REVISION=2024-03-19 # Use conanio/${CONAN} for "docker-compose run --rm conan". See # https://github.com/conan-io/conan-docker-tools#readme for available