From 849879f789895955f081fb1acb7fe22862e76e5f Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 28 Feb 2025 13:40:31 +0100 Subject: [PATCH 001/176] add windows arm64 workflow --- .../workflows/build_wheel_windows_arm64.yml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/build_wheel_windows_arm64.yml diff --git a/.github/workflows/build_wheel_windows_arm64.yml b/.github/workflows/build_wheel_windows_arm64.yml new file mode 100644 index 00000000000..6da095af516 --- /dev/null +++ b/.github/workflows/build_wheel_windows_arm64.yml @@ -0,0 +1,64 @@ +name: torchvision Build + +on: + workflow_dispatch: + inputs: + python_version: + description: "Python version" + required: true + type: choice + options: + - Python312 + - Python311 + msvc_version: + description: "MSVC Version" + required: true + type: choice + options: + - 'latest' + - '14.40' + - '14.36' + pytorch_build_run_id: + description: "PyTorch build run id for downloading the wheel artifact (number at the end of build run URL)" + required: true + default: "" + type: string + pytorch_build_artifact_name: + description: "Artifact name of PyTorch build run" + required: true + default: "pytorch-wheel" + type: string + build_type: + description: "Build type" + required: true + type: choice + options: + - Release + # - Debug (not supported for wheel) + repository_name: + description: "torchvision repository (username/repo)" + required: true + default: "pytorch/vision" + type: string + repository_branch: + description: "repository branch" + required: true + default: "main" + type: string + build_version: + description: "Optional: build version for wheel file name (e.g. 2.6.0); otherwise leave empty for default naming" + required: false + default: "2.6.0" + type: string + +jobs: + trigger-test-infra: + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_arm64.yml@main + with: + repository_name: ${{ inputs.repository_name }} + repository_branch: ${{ inputs.repository_branch }} + python_version: ${{ inputs.python_version }} + msvc_version: ${{ inputs.msvc_version }} + pytorch_build_run_id: ${{ inputs.pytorch_build_run_id }} + build_type: ${{ inputs.build_type }} + build_version: ${{ inputs.build_version }} From 839d069dd9b47027df94119908a468e9c2ec6aa3 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 11:02:17 +0100 Subject: [PATCH 002/176] deafult values for build and trigger workflow --- .github/workflows/build_wheel_windows_arm64.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_wheel_windows_arm64.yml b/.github/workflows/build_wheel_windows_arm64.yml index 6da095af516..08a39182f20 100644 --- a/.github/workflows/build_wheel_windows_arm64.yml +++ b/.github/workflows/build_wheel_windows_arm64.yml @@ -1,6 +1,9 @@ name: torchvision Build on: + push: + branches: + - arm64_enablement workflow_dispatch: inputs: python_version: @@ -21,7 +24,7 @@ on: pytorch_build_run_id: description: "PyTorch build run id for downloading the wheel artifact (number at the end of build run URL)" required: true - default: "" + default: "13589031393" type: string pytorch_build_artifact_name: description: "Artifact name of PyTorch build run" @@ -53,12 +56,12 @@ on: jobs: trigger-test-infra: - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_arm64.yml@main + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_arm64.yml@winarm64_wheels with: repository_name: ${{ inputs.repository_name }} repository_branch: ${{ inputs.repository_branch }} - python_version: ${{ inputs.python_version }} - msvc_version: ${{ inputs.msvc_version }} + python_version: ${{ inputs.python_version || 'Python312' }} + msvc_version: ${{ inputs.msvc_version || 'latest' }} pytorch_build_run_id: ${{ inputs.pytorch_build_run_id }} - build_type: ${{ inputs.build_type }} + build_type: ${{ inputs.build_type || 'Release' }} build_version: ${{ inputs.build_version }} From f0605365944d46e5ec87046e93814e39e74727c2 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 11:47:58 +0100 Subject: [PATCH 003/176] remove hardcode branch name --- .github/workflows/build_wheel_windows_arm64.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build_wheel_windows_arm64.yml b/.github/workflows/build_wheel_windows_arm64.yml index 08a39182f20..40f10af1b66 100644 --- a/.github/workflows/build_wheel_windows_arm64.yml +++ b/.github/workflows/build_wheel_windows_arm64.yml @@ -2,8 +2,6 @@ name: torchvision Build on: push: - branches: - - arm64_enablement workflow_dispatch: inputs: python_version: From 38e4922ea57d8f9d400f87077ca6b7379cd056d4 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 12:16:53 +0100 Subject: [PATCH 004/176] update workflow --- .github/workflows/build_wheel_windows_arm64.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_arm64.yml b/.github/workflows/build_wheel_windows_arm64.yml index 40f10af1b66..e56de701c4f 100644 --- a/.github/workflows/build_wheel_windows_arm64.yml +++ b/.github/workflows/build_wheel_windows_arm64.yml @@ -1,7 +1,16 @@ name: torchvision Build on: + pull_request: push: + branches: + - nightly + - main + - release/* + tags: + # NOTE: Binary build pipelines should only get triggered on release candidate builds + # Release candidate tags look like: v1.11.0-rc1 + - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ workflow_dispatch: inputs: python_version: @@ -52,6 +61,10 @@ on: default: "2.6.0" type: string +permissions: + id-token: write + contents: read + jobs: trigger-test-infra: uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_arm64.yml@winarm64_wheels @@ -60,6 +73,6 @@ jobs: repository_branch: ${{ inputs.repository_branch }} python_version: ${{ inputs.python_version || 'Python312' }} msvc_version: ${{ inputs.msvc_version || 'latest' }} - pytorch_build_run_id: ${{ inputs.pytorch_build_run_id }} + pytorch_build_run_id: ${{ inputs.pytorch_build_run_id || '13589031393' }} build_type: ${{ inputs.build_type || 'Release' }} build_version: ${{ inputs.build_version }} From c97f7e55302590e2ca5981715ff8c43097de7c0c Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 12:24:06 +0100 Subject: [PATCH 005/176] test rerun workflow --- .github/workflows/build_wheel_windows_arm64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_arm64.yml b/.github/workflows/build_wheel_windows_arm64.yml index e56de701c4f..5e9f8d735ee 100644 --- a/.github/workflows/build_wheel_windows_arm64.yml +++ b/.github/workflows/build_wheel_windows_arm64.yml @@ -1,4 +1,4 @@ -name: torchvision Build +name: Build Windows Arm64 Wheels on: pull_request: From 164f5357b9785868a9f8fa0b67a3c201d4f5a3ca Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 12:43:36 +0100 Subject: [PATCH 006/176] test arm64 logic using x64 wheel build --- ..._arm64.yml => build_wheel_windows_x64_test.yml} | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) rename .github/workflows/{build_wheel_windows_arm64.yml => build_wheel_windows_x64_test.yml} (85%) diff --git a/.github/workflows/build_wheel_windows_arm64.yml b/.github/workflows/build_wheel_windows_x64_test.yml similarity index 85% rename from .github/workflows/build_wheel_windows_arm64.yml rename to .github/workflows/build_wheel_windows_x64_test.yml index 5e9f8d735ee..7cc9e54ade9 100644 --- a/.github/workflows/build_wheel_windows_arm64.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -28,11 +28,11 @@ on: - 'latest' - '14.40' - '14.36' - pytorch_build_run_id: - description: "PyTorch build run id for downloading the wheel artifact (number at the end of build run URL)" - required: true - default: "13589031393" - type: string + # pytorch_build_run_id: + # description: "PyTorch build run id for downloading the wheel artifact (number at the end of build run URL)" + # required: true + # default: "13589031393" + # type: string pytorch_build_artifact_name: description: "Artifact name of PyTorch build run" required: true @@ -67,12 +67,12 @@ permissions: jobs: trigger-test-infra: - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_arm64.yml@winarm64_wheels + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test with: repository_name: ${{ inputs.repository_name }} repository_branch: ${{ inputs.repository_branch }} python_version: ${{ inputs.python_version || 'Python312' }} msvc_version: ${{ inputs.msvc_version || 'latest' }} - pytorch_build_run_id: ${{ inputs.pytorch_build_run_id || '13589031393' }} + # pytorch_build_run_id: ${{ inputs.pytorch_build_run_id || '13589031393' }} build_type: ${{ inputs.build_type || 'Release' }} build_version: ${{ inputs.build_version }} From 494fc1ed6bea3a027a5d2558a105dc4ada9f459b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 12:49:55 +0100 Subject: [PATCH 007/176] retrigger run --- .github/workflows/build_wheel_windows_x64_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 7cc9e54ade9..a77b09de369 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -1,4 +1,4 @@ -name: Build Windows Arm64 Wheels +name: Build Windows X64 Wheels on: pull_request: From 523e4f1cb0412420d5316d5b5e9810669d344363 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 14:10:01 +0100 Subject: [PATCH 008/176] empty commit From a3d913b98cadfaa3b2ca70a18b5dfa60d9679c1c Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 14:22:09 +0100 Subject: [PATCH 009/176] trigger workflow From aab9d7cb771d5ee6923a0c930f6a5bafa8e77767 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 14:27:16 +0100 Subject: [PATCH 010/176] empty commit From fd054fb6afe2c2bc652a49ad206c6ea761836c04 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 15:22:51 +0100 Subject: [PATCH 011/176] trigger workflow From 8f6e76d454050616ba1aedd4cbb1ec0921972d4b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 15:27:06 +0100 Subject: [PATCH 012/176] retrigger workflow From ab4cc5e90bcf3d004ba0536a2c2087cce3f5ad11 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 15:42:53 +0100 Subject: [PATCH 013/176] add default values --- .github/workflows/build_wheel_windows_x64_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index a77b09de369..8521d3dfd73 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -69,8 +69,8 @@ jobs: trigger-test-infra: uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test with: - repository_name: ${{ inputs.repository_name }} - repository_branch: ${{ inputs.repository_branch }} + repository_name: ${{ inputs.repository_name || 'pytorch/vision' }} + repository_branch: ${{ inputs.repository_branch || 'main'}} python_version: ${{ inputs.python_version || 'Python312' }} msvc_version: ${{ inputs.msvc_version || 'latest' }} # pytorch_build_run_id: ${{ inputs.pytorch_build_run_id || '13589031393' }} From ab78116822e8121b5a159f6f7ce0c0829164cf32 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 15:56:07 +0100 Subject: [PATCH 014/176] retrigger workflow From b8a54ff369ee914906c3a5d11b479acc6713d8e1 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 16:01:28 +0100 Subject: [PATCH 015/176] empty commit From 94b00b26c33e5d48b5ecd521b93fd910074f6863 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 16:09:58 +0100 Subject: [PATCH 016/176] retrigger workflow From 34788f92271551d774aba6f3581de28e55e2c19f Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 16:15:09 +0100 Subject: [PATCH 017/176] retrigger workflow From e0fbf3b19cb0e34e379b35b7457588323eed829b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 16:18:28 +0100 Subject: [PATCH 018/176] empty commit From 7be1161898470763f05d01a41fc3b36f7e1417cc Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 16:22:25 +0100 Subject: [PATCH 019/176] empty commit From 3b9d0e50568c2e6f36dd3383c1888a2009effeac Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 3 Mar 2025 16:33:50 +0100 Subject: [PATCH 020/176] retrigger workflow From 0fb1cbf24a98758a951567eeadcd6aabc423b483 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 10:00:20 +0100 Subject: [PATCH 021/176] retrigger workflow From 2ec4575bde34b243aa2341ab8d8f00438702602b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 10:06:16 +0100 Subject: [PATCH 022/176] empty commit From efb3c25b0b74fd7a2ee08d0d7b3ea56dc041ddf3 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 10:10:37 +0100 Subject: [PATCH 023/176] retrigger workflow From 7ad151e3c874248de76bf2a117bcb7ebf1c955ab Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 10:16:14 +0100 Subject: [PATCH 024/176] retrigger workflow From 2ce24d053e7cabb33516240a28b1d3c88cc6a97f Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 10:21:16 +0100 Subject: [PATCH 025/176] retrigger workflow From b38d6a876a5f9455125dd3822b215d8e7277bc55 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 10:26:23 +0100 Subject: [PATCH 026/176] empty commit From 463a775084c2100946f0f2d0e3d92c4c8097e5fa Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 10:28:47 +0100 Subject: [PATCH 027/176] empty commit From 76caf9b0fcd534f4d6ea6c9a0fde33ca16b35b2f Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 10:35:01 +0100 Subject: [PATCH 028/176] empty commit From 199ff0e2bdec2d9a0a2779ef287e62ad1d6fcd6d Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 10:38:38 +0100 Subject: [PATCH 029/176] retrigger workflow From d746ad902db5959b5107a4f64ee4e3357a9b4606 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 10:54:57 +0100 Subject: [PATCH 030/176] empty commit From 5abee13322e4993d3663343e05443e43eb351c22 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 11:00:53 +0100 Subject: [PATCH 031/176] retrigger workflow From 17be06d6cee2f4458ae455f3f4af754cd261eb6e Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 11:12:43 +0100 Subject: [PATCH 032/176] empty commit From fa6253941cfaefef0377bb677ed026cc35651213 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 11:18:33 +0100 Subject: [PATCH 033/176] empty commit From 3a40c8eaebd6f5cbf18ca64cb3010614a81d5ed2 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 11:21:29 +0100 Subject: [PATCH 034/176] retrigger workflow From 24fa4f574c7ea0ef5b7b11fd99a9d67288697a83 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 11:27:29 +0100 Subject: [PATCH 035/176] empty commit From 42d0c7b3852255aeb676b4943bf0734c5934a91c Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 11:29:51 +0100 Subject: [PATCH 036/176] empty From 70c961e9da840aab30d73f246efa8d1264957738 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 11:34:44 +0100 Subject: [PATCH 037/176] empty From 2e4f76eb9b8a1d632cfaea6e86372dd8dc53b143 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 11:40:57 +0100 Subject: [PATCH 038/176] test From b702341da87736397bc13f390e7fe6d7ed4d2ae1 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 11:47:06 +0100 Subject: [PATCH 039/176] test From 9dea12032170146693dc0b438d3150eb0fb1fdd0 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 11:50:43 +0100 Subject: [PATCH 040/176] empty From 22c07613d997c2f33754e2463a7dab79fee58f35 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 11:57:59 +0100 Subject: [PATCH 041/176] empty From 35aab5afec6e84c9f0a1ac110e0a0d470c7360ae Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 13:21:43 +0100 Subject: [PATCH 042/176] empty From a4f841f19b8d70a90026f73f878b6d51ffe5e9d3 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 13:24:47 +0100 Subject: [PATCH 043/176] empty commit From 7592adc669890c9dd9c6e749ac349ce3b0b02596 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 13:28:06 +0100 Subject: [PATCH 044/176] empty From 6a8a9d3605b2e6d4674711d6bd18683dd2602aad Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 13:31:41 +0100 Subject: [PATCH 045/176] empty commit From 9ded59aac6d018658bcc64d77b8a3992f5273fd4 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 13:48:34 +0100 Subject: [PATCH 046/176] empty commit From 204a11e9a2d0584c0fbf315255ab0b8888496622 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 13:51:52 +0100 Subject: [PATCH 047/176] empty commit From 5dce3d3b99cb8e9c300ae6cdaab79b9a59081401 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 13:52:57 +0100 Subject: [PATCH 048/176] empty From ea99ddda990a49a4178d9a51a22c24a9be0b8dab Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 13:56:18 +0100 Subject: [PATCH 049/176] empty From 89d6219da06776f114fa83a466ce05fa9df13e80 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 14:45:03 +0100 Subject: [PATCH 050/176] empty commit --- .github/workflows/build_wheel_windows_x64_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 8521d3dfd73..d7d38acc40b 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -1,4 +1,4 @@ -name: Build Windows X64 Wheels +name: Build Windows Arm64 Wheels on: pull_request: @@ -31,7 +31,7 @@ on: # pytorch_build_run_id: # description: "PyTorch build run id for downloading the wheel artifact (number at the end of build run URL)" # required: true - # default: "13589031393" + # default: "13589031393" # type: string pytorch_build_artifact_name: description: "Artifact name of PyTorch build run" From 3627a09b749eab4655285ac3ef339f9e10c66266 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 14:50:44 +0100 Subject: [PATCH 051/176] trigger workflow From 38510e1f47e8524404dcf809fcd5b21e8e6efafe Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 15:01:51 +0100 Subject: [PATCH 052/176] update name --- .github/workflows/build_wheel_windows_x64_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index d7d38acc40b..b7d35a22709 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -1,4 +1,4 @@ -name: Build Windows Arm64 Wheels +name: Build Windows X64 Wheels on: pull_request: From 8b083cc4c561d6f8f16265b7d18cb2a5371ee0d0 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 15:20:48 +0100 Subject: [PATCH 053/176] test From 8a818722cdbe20be08e338c5e307a693cc5f77e7 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 15:32:38 +0100 Subject: [PATCH 054/176] retrigger workflow From 2a8211431d15bfdfaeb916745aa9406d48540e34 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 15:44:29 +0100 Subject: [PATCH 055/176] retrigger workflow From 19996543db44bbbcdfee5fa0bfafed5a7263658d Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 15:48:10 +0100 Subject: [PATCH 056/176] test From 153e388bec3b4331dbf78f15a169ad7204e9d080 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 15:51:59 +0100 Subject: [PATCH 057/176] test From 08838dea1c76632b678fc8711ec9767d271fea43 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 16:04:09 +0100 Subject: [PATCH 058/176] retry From 4bb5cbc27b22cf1d85a9ebda78b548925b047f9f Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 4 Mar 2025 16:08:42 +0100 Subject: [PATCH 059/176] retry From 1386c44461347070b2bfa782d8bb61a7c1486ecb Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 5 Mar 2025 10:03:52 +0100 Subject: [PATCH 060/176] retrigger workflow From 5c744bb5b226649851259f02fb5552240be4fc2b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 5 Mar 2025 10:06:33 +0100 Subject: [PATCH 061/176] retrigger workflow From 3bfc16419c5ef0a5cc8269ca06f83678fdd5be1a Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 5 Mar 2025 10:15:45 +0100 Subject: [PATCH 062/176] test empty commit From 7a55071b23b9991701493926771040af286e22f6 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 5 Mar 2025 10:30:52 +0100 Subject: [PATCH 063/176] retrigger workflow From 401d533f82800c7ed0f41db43ab10de26f80e1ec Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 5 Mar 2025 10:36:07 +0100 Subject: [PATCH 064/176] retrigger workflow From f86564c1cb97bfb5429cf626f3b4fe95cc8f7b1e Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 5 Mar 2025 10:55:25 +0100 Subject: [PATCH 065/176] empty commit From e8d9090ef5d25673614cdef3ffa6686bb606eeee Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 5 Mar 2025 11:11:45 +0100 Subject: [PATCH 066/176] empty commit From 9c3c8a6d2efd2cbd6effb639b80c1f8114a73745 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 5 Mar 2025 11:24:35 +0100 Subject: [PATCH 067/176] update workflow --- .../build_wheel_windows_x64_test.yml | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index b7d35a22709..d068b1c4e35 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -20,6 +20,7 @@ on: options: - Python312 - Python311 + default: Python312 msvc_version: description: "MSVC Version" required: true @@ -28,11 +29,7 @@ on: - 'latest' - '14.40' - '14.36' - # pytorch_build_run_id: - # description: "PyTorch build run id for downloading the wheel artifact (number at the end of build run URL)" - # required: true - # default: "13589031393" - # type: string + default: 'latest' pytorch_build_artifact_name: description: "Artifact name of PyTorch build run" required: true @@ -40,23 +37,24 @@ on: type: string build_type: description: "Build type" - required: true + required: false type: choice options: - Release - # - Debug (not supported for wheel) + # - Debug not available for the wheel + default: Release repository_name: description: "torchvision repository (username/repo)" - required: true + required: false default: "pytorch/vision" type: string repository_branch: description: "repository branch" - required: true + required: false default: "main" type: string build_version: - description: "Optional: build version for wheel file name (e.g. 2.6.0); otherwise leave empty for default naming" + description: "Optional: build version for wheel file name (e.g. 2.6.0)" required: false default: "2.6.0" type: string @@ -69,10 +67,9 @@ jobs: trigger-test-infra: uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test with: - repository_name: ${{ inputs.repository_name || 'pytorch/vision' }} - repository_branch: ${{ inputs.repository_branch || 'main'}} - python_version: ${{ inputs.python_version || 'Python312' }} - msvc_version: ${{ inputs.msvc_version || 'latest' }} - # pytorch_build_run_id: ${{ inputs.pytorch_build_run_id || '13589031393' }} - build_type: ${{ inputs.build_type || 'Release' }} + repository_name: ${{ inputs.repository_name }} + repository_branch: ${{ inputs.repository_branch }} + python_version: ${{ inputs.python_version }} + msvc_version: ${{ inputs.msvc_version }} + build_type: ${{ inputs.build_type }} build_version: ${{ inputs.build_version }} From d87e3fff2f71efe81b2204d4a52a454225d6ed0c Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 5 Mar 2025 11:38:51 +0100 Subject: [PATCH 068/176] changes to input ordering and defaults --- .../build_wheel_windows_x64_test.yml | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index d068b1c4e35..88a6898ee73 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -30,34 +30,29 @@ on: - '14.40' - '14.36' default: 'latest' - pytorch_build_artifact_name: - description: "Artifact name of PyTorch build run" - required: true - default: "pytorch-wheel" - type: string build_type: description: "Build type" - required: false + required: true type: choice options: - Release - # - Debug not available for the wheel + # - Debug (not supported for wheel) default: Release repository_name: description: "torchvision repository (username/repo)" - required: false - default: "pytorch/vision" + required: true type: string + default: "pytorch/vision" repository_branch: description: "repository branch" - required: false - default: "main" + required: true type: string + default: "main" build_version: - description: "Optional: build version for wheel file name (e.g. 2.6.0)" + description: "Optional: build version for wheel file name (e.g. 2.6.0); leave empty for default naming" required: false - default: "2.6.0" type: string + default: "2.6.0" permissions: id-token: write @@ -67,9 +62,9 @@ jobs: trigger-test-infra: uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test with: - repository_name: ${{ inputs.repository_name }} - repository_branch: ${{ inputs.repository_branch }} python_version: ${{ inputs.python_version }} msvc_version: ${{ inputs.msvc_version }} build_type: ${{ inputs.build_type }} + repository_name: ${{ inputs.repository_name }} + repository_branch: ${{ inputs.repository_branch }} build_version: ${{ inputs.build_version }} From c442f9636790ccef5ecb1cbfabfe50fcc17e486f Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 5 Mar 2025 11:53:19 +0100 Subject: [PATCH 069/176] add default inputs --- .github/workflows/build_wheel_windows_x64_test.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 88a6898ee73..d569dd82dcf 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -52,7 +52,7 @@ on: description: "Optional: build version for wheel file name (e.g. 2.6.0); leave empty for default naming" required: false type: string - default: "2.6.0" + default: "" permissions: id-token: write @@ -62,9 +62,9 @@ jobs: trigger-test-infra: uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test with: - python_version: ${{ inputs.python_version }} - msvc_version: ${{ inputs.msvc_version }} - build_type: ${{ inputs.build_type }} - repository_name: ${{ inputs.repository_name }} - repository_branch: ${{ inputs.repository_branch }} - build_version: ${{ inputs.build_version }} + python_version: ${{ inputs.python_version || 'Python312' }} + msvc_version: ${{ inputs.msvc_version || 'latest' }} + build_type: ${{ inputs.build_type || 'Release' }} + repository_name: ${{ inputs.repository_name || 'pytorch/vision' }} + repository_branch: ${{ inputs.repository_branch || 'main' }} + build_version: ${{ inputs.build_version || '' }} From ef413b474c11d33dd728d62a3813544811ee66d3 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 2 Apr 2025 15:37:45 +0200 Subject: [PATCH 070/176] test logic --- .../workflows/build_wheel_windows_arm64.yml | 51 ++++++++++++++++ .../build_wheel_windows_x64_test.yml | 61 ++++++------------- 2 files changed, 71 insertions(+), 41 deletions(-) create mode 100644 .github/workflows/build_wheel_windows_arm64.yml diff --git a/.github/workflows/build_wheel_windows_arm64.yml b/.github/workflows/build_wheel_windows_arm64.yml new file mode 100644 index 00000000000..d8784dfa5f5 --- /dev/null +++ b/.github/workflows/build_wheel_windows_arm64.yml @@ -0,0 +1,51 @@ +name: Build Windows Arm64 Torchvision Wheel + +on: + pull_request: null + push: + branches: + - nightly + - main + - release/* + tags: + - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ + workflow_dispatch: + inputs: + build_type: + description: Build type + required: true + type: choice + options: + - Release + # - Debug not available + default: Release + repository_name: + description: Torchvision repository (username/repo) + required: false + type: string + default: pytorch/vision + repository_branch: + description: Repository branch + required: false + type: string + default: main + +permissions: + id-token: write + contents: read + +jobs: + trigger-test-infra: + strategy: + matrix: + python_version: ["3.12"] # only one for now + runs-on: "windows-11-arm64" + + steps: + - name: Trigger Test Infra workflow + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_arm64.yml@winarm64_wheels + with: + python_version: ${{ matrix.python_version }} + build_type: ${{ inputs.build_type }} + repository_name: ${{ inputs.repository_name }} + repository_branch: ${{ inputs.repository_branch }} diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index d569dd82dcf..7683bb443bd 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -1,70 +1,49 @@ -name: Build Windows X64 Wheels +name: Build Windows Arm64 Torchvision Wheel on: - pull_request: + pull_request: null push: branches: - nightly - main - release/* tags: - # NOTE: Binary build pipelines should only get triggered on release candidate builds - # Release candidate tags look like: v1.11.0-rc1 - - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ + - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ workflow_dispatch: inputs: - python_version: - description: "Python version" - required: true - type: choice - options: - - Python312 - - Python311 - default: Python312 - msvc_version: - description: "MSVC Version" - required: true - type: choice - options: - - 'latest' - - '14.40' - - '14.36' - default: 'latest' build_type: - description: "Build type" + description: Build type required: true type: choice options: - Release - # - Debug (not supported for wheel) + # - Debug not available default: Release repository_name: - description: "torchvision repository (username/repo)" - required: true + description: Torchvision repository (username/repo) + required: false type: string - default: "pytorch/vision" + default: pytorch/vision repository_branch: - description: "repository branch" - required: true - type: string - default: "main" - build_version: - description: "Optional: build version for wheel file name (e.g. 2.6.0); leave empty for default naming" + description: Repository branch required: false type: string - default: "" - + default: main + permissions: id-token: write contents: read jobs: trigger-test-infra: + strategy: + matrix: + python_version: ["3.12"] # only one for now + runs-on: "windows-latest" uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test + name: Trigger Test Infra workflow with: - python_version: ${{ inputs.python_version || 'Python312' }} - msvc_version: ${{ inputs.msvc_version || 'latest' }} - build_type: ${{ inputs.build_type || 'Release' }} - repository_name: ${{ inputs.repository_name || 'pytorch/vision' }} - repository_branch: ${{ inputs.repository_branch || 'main' }} - build_version: ${{ inputs.build_version || '' }} + python_version: ${{ matrix.python_version }} + build_type: ${{ inputs.build_type }} + repository_name: ${{ inputs.repository_name }} + repository_branch: ${{ inputs.repository_branch }} From b714712ce2121f095e1275706eafb7802524b08f Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 2 Apr 2025 15:44:15 +0200 Subject: [PATCH 071/176] test --- .../build_wheel_windows_x64_test.yml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 7683bb443bd..17ad39f3113 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,7 +17,6 @@ on: type: choice options: - Release - # - Debug not available default: Release repository_name: description: Torchvision repository (username/repo) @@ -29,7 +28,7 @@ on: required: false type: string default: main - + permissions: id-token: write contents: read @@ -38,12 +37,13 @@ jobs: trigger-test-infra: strategy: matrix: - python_version: ["3.12"] # only one for now + python_version: ["3.12"] runs-on: "windows-latest" - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test - name: Trigger Test Infra workflow - with: - python_version: ${{ matrix.python_version }} - build_type: ${{ inputs.build_type }} - repository_name: ${{ inputs.repository_name }} - repository_branch: ${{ inputs.repository_branch }} + steps: + - name: Trigger Test Infra workflow + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test + with: + python_version: ${{ matrix.python_version }} + build_type: ${{ inputs.build_type }} + repository_name: ${{ inputs.repository_name }} + repository_branch: ${{ inputs.repository_branch }} From 09069e2c3a63efb8c8d5bcdc95e3e9a5877710b7 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 2 Apr 2025 15:53:16 +0200 Subject: [PATCH 072/176] test --- .../workflows/build_wheel_windows_x64_test.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 17ad39f3113..5fa83d48a34 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -38,12 +38,10 @@ jobs: strategy: matrix: python_version: ["3.12"] - runs-on: "windows-latest" - steps: - - name: Trigger Test Infra workflow - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test - with: - python_version: ${{ matrix.python_version }} - build_type: ${{ inputs.build_type }} - repository_name: ${{ inputs.repository_name }} - repository_branch: ${{ inputs.repository_branch }} + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test + name: Build Windows x64 Torchvision Wheel + with: + python_version: ${{ matrix.python_version }} + build_type: ${{ inputs.build_type }} + repository_name: ${{ inputs.repository_name }} + repository_branch: ${{ inputs.repository_branch }} From 14339eebe7da86fa6eb19b449f6cb5e30dc5e5b4 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 4 Apr 2025 11:20:20 +0200 Subject: [PATCH 073/176] test changes --- .github/workflows/build_wheel_windows_x64_test.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 5fa83d48a34..1938bf9bf70 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -11,13 +11,6 @@ on: - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ workflow_dispatch: inputs: - build_type: - description: Build type - required: true - type: choice - options: - - Release - default: Release repository_name: description: Torchvision repository (username/repo) required: false @@ -42,6 +35,5 @@ jobs: name: Build Windows x64 Torchvision Wheel with: python_version: ${{ matrix.python_version }} - build_type: ${{ inputs.build_type }} repository_name: ${{ inputs.repository_name }} repository_branch: ${{ inputs.repository_branch }} From 47f4c790d55a5ea104499005505132df6f3735cc Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 4 Apr 2025 11:29:28 +0200 Subject: [PATCH 074/176] test --- .github/workflows/build_wheel_windows_x64_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 1938bf9bf70..132726d0ecb 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -1,4 +1,4 @@ -name: Build Windows Arm64 Torchvision Wheel +name: Build Windows X64 Torchvision Wheel Test on: pull_request: null From a03d785eb15a60db41f0e9ad7aaa4cd5f32c1e2c Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 4 Apr 2025 11:46:04 +0200 Subject: [PATCH 075/176] test --- .github/workflows/build_wheel_windows_x64_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 132726d0ecb..847c5a404f5 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -1,5 +1,5 @@ name: Build Windows X64 Torchvision Wheel Test - + on: pull_request: null push: From d8df8b12bc168cd1117869c5d3ae1c8d91866645 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 4 Apr 2025 11:53:32 +0200 Subject: [PATCH 076/176] test correct inputs --- .github/workflows/build_wheel_windows_x64_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 847c5a404f5..8f8d7d0822f 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -35,5 +35,5 @@ jobs: name: Build Windows x64 Torchvision Wheel with: python_version: ${{ matrix.python_version }} - repository_name: ${{ inputs.repository_name }} - repository_branch: ${{ inputs.repository_branch }} + repository_name: ${{ inputs.repository_name || 'pytorch/vision' }} + repository_branch: ${{ inputs.repository_branch || 'main'}} From 2855f29a414adec9abc81ac6d83e5effd725e740 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 4 Apr 2025 12:03:38 +0200 Subject: [PATCH 077/176] test --- .github/workflows/build_wheel_windows_x64_test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 8f8d7d0822f..f1f1db622e9 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -1,5 +1,6 @@ name: Build Windows X64 Torchvision Wheel Test - + + on: pull_request: null push: From 16afdeb9fb7ccd8cc0026816aafdf530835537bd Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 4 Apr 2025 12:21:37 +0200 Subject: [PATCH 078/176] tets --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index f1f1db622e9..a571cb2a730 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -1,6 +1,5 @@ name: Build Windows X64 Torchvision Wheel Test - on: pull_request: null push: From 3cec5e996388755f82c0aa9fb442c4ce75b39c76 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 7 Apr 2025 16:02:43 +0200 Subject: [PATCH 079/176] attempt merge workflow --- .github/workflows/build-wheels-windows.yml | 20 +++++++++++++++++++ .../build_wheel_windows_x64_test.yml | 15 ++------------ 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index a269aea2604..c67eb847a58 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -52,3 +52,23 @@ jobs: package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} trigger-event: ${{ github.event_name }} + + build-x64-test: + strategy: + fail-fast: false + matrix: + include: + - repository: pytorch/vision + smoke-test-script: test/smoke_test.py + package-name: torchvision + python-version: 3.12 + name: ${{ matrix.repository }}-x64-test + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test + with: + repository: ${{ matrix.repository }} + ref: "" + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test + package-name: ${{ matrix.package-name }} + smoke-test-script: ${{ matrix.smoke-test-script }} + aarch: "arm64" \ No newline at end of file diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index a571cb2a730..51e64d0f13f 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -10,17 +10,6 @@ on: tags: - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ workflow_dispatch: - inputs: - repository_name: - description: Torchvision repository (username/repo) - required: false - type: string - default: pytorch/vision - repository_branch: - description: Repository branch - required: false - type: string - default: main permissions: id-token: write @@ -35,5 +24,5 @@ jobs: name: Build Windows x64 Torchvision Wheel with: python_version: ${{ matrix.python_version }} - repository_name: ${{ inputs.repository_name || 'pytorch/vision' }} - repository_branch: ${{ inputs.repository_branch || 'main'}} + repository_name: 'pytorch/vision' + repository_branch: // predefined github branch variable From 9f9793ff4c2fc7df45f5e0c29a1f63630d11ca98 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 7 Apr 2025 16:10:56 +0200 Subject: [PATCH 080/176] use correct workflow file --- .github/workflows/build-wheels-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index c67eb847a58..db97d76fa6f 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -63,7 +63,7 @@ jobs: package-name: torchvision python-version: 3.12 name: ${{ matrix.repository }}-x64-test - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: repository: ${{ matrix.repository }} ref: "" From 51844d90de26cfa0ce51e4814200eaeef2f249cb Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 7 Apr 2025 16:18:09 +0200 Subject: [PATCH 081/176] test --- .github/workflows/build-wheels-windows.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index db97d76fa6f..6847da03fd4 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -54,6 +54,7 @@ jobs: trigger-event: ${{ github.event_name }} build-x64-test: + needs: generate-matrix strategy: fail-fast: false matrix: @@ -61,7 +62,7 @@ jobs: - repository: pytorch/vision smoke-test-script: test/smoke_test.py package-name: torchvision - python-version: 3.12 + python-version: '3.12' name: ${{ matrix.repository }}-x64-test uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: @@ -71,4 +72,4 @@ jobs: test-infra-ref: x64windows_test package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} - aarch: "arm64" \ No newline at end of file + aarch: 'x64' \ No newline at end of file From 6dd661a803e18ca650b49b311edf460bc9527732 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 7 Apr 2025 16:25:26 +0200 Subject: [PATCH 082/176] test --- .github/workflows/build-wheels-windows.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 6847da03fd4..dfa0bd45b0f 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -63,6 +63,7 @@ jobs: smoke-test-script: test/smoke_test.py package-name: torchvision python-version: '3.12' + aarch: 'x64' name: ${{ matrix.repository }}-x64-test uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: @@ -72,4 +73,5 @@ jobs: test-infra-ref: x64windows_test package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} - aarch: 'x64' \ No newline at end of file + aarch: ${{ matrix.aarch }} + python-version: ${{ matrix.python-version }} \ No newline at end of file From 6558c35d2a276d600e5b5be384c0419ce2b79480 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 7 Apr 2025 16:27:06 +0200 Subject: [PATCH 083/176] update inputs --- .github/workflows/build-wheels-windows.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index dfa0bd45b0f..e2e2bf733d5 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -73,5 +73,3 @@ jobs: test-infra-ref: x64windows_test package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} - aarch: ${{ matrix.aarch }} - python-version: ${{ matrix.python-version }} \ No newline at end of file From 691c65bc2dc303c59c5a9166910c6ba93ffc5cf3 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 7 Apr 2025 16:33:47 +0200 Subject: [PATCH 084/176] test --- .github/workflows/build-wheels-windows.yml | 26 ++++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index e2e2bf733d5..127cc819a34 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -54,22 +54,24 @@ jobs: trigger-event: ${{ github.event_name }} build-x64-test: - needs: generate-matrix strategy: fail-fast: false matrix: include: - - repository: pytorch/vision - smoke-test-script: test/smoke_test.py - package-name: torchvision - python-version: '3.12' - aarch: 'x64' + - repository: pytorch/vision + smoke-test-script: test/smoke_test.py + package-name: torchvision + python-version: '3.12' + aarch: 'x64' name: ${{ matrix.repository }}-x64-test uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: - repository: ${{ matrix.repository }} - ref: "" - test-infra-repository: alinpahontu2912/test-infra - test-infra-ref: x64windows_test - package-name: ${{ matrix.package-name }} - smoke-test-script: ${{ matrix.smoke-test-script }} + repository: ${{ matrix.repository }} + ref: "" + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test + package-name: ${{ matrix.package-name }} + smoke-test-script: ${{ matrix.smoke-test-script }} + python-version: ${{ matrix.python-version }} + aarch: ${{ matrix.aarch }} + From 48a8bf3ff808c47ea6511264f10ab8b7f24ec361 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 7 Apr 2025 16:34:40 +0200 Subject: [PATCH 085/176] update input --- .github/workflows/build-wheels-windows.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 127cc819a34..1545d65d16c 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -72,6 +72,5 @@ jobs: test-infra-ref: x64windows_test package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} - python-version: ${{ matrix.python-version }} aarch: ${{ matrix.aarch }} From 82277f0494d3856ebbd436420337dac5b6088d2a Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 7 Apr 2025 16:40:38 +0200 Subject: [PATCH 086/176] test --- .github/workflows/build-wheels-windows.yml | 43 +++++++++++----------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 1545d65d16c..9e68fa330ef 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -18,6 +18,27 @@ permissions: contents: read jobs: + build-x64-test: + strategy: + fail-fast: false + matrix: + include: + - repository: pytorch/vision + smoke-test-script: test/smoke_test.py + package-name: torchvision + python-version: '3.12' + aarch: 'x64' + name: ${{ matrix.repository }}-x64-test + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test + with: + repository: ${{ matrix.repository }} + ref: "" + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test + package-name: ${{ matrix.package-name }} + smoke-test-script: ${{ matrix.smoke-test-script }} + aarch: ${{ matrix.aarch }} + generate-matrix: uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main with: @@ -52,25 +73,3 @@ jobs: package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} trigger-event: ${{ github.event_name }} - - build-x64-test: - strategy: - fail-fast: false - matrix: - include: - - repository: pytorch/vision - smoke-test-script: test/smoke_test.py - package-name: torchvision - python-version: '3.12' - aarch: 'x64' - name: ${{ matrix.repository }}-x64-test - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test - with: - repository: ${{ matrix.repository }} - ref: "" - test-infra-repository: alinpahontu2912/test-infra - test-infra-ref: x64windows_test - package-name: ${{ matrix.package-name }} - smoke-test-script: ${{ matrix.smoke-test-script }} - aarch: ${{ matrix.aarch }} - From 02637d519946884abccc31cab00d7652bf1229ba Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 7 Apr 2025 16:42:23 +0200 Subject: [PATCH 087/176] test --- .github/workflows/build-wheels-windows.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 9e68fa330ef..cd5c2e85f24 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -28,16 +28,16 @@ jobs: package-name: torchvision python-version: '3.12' aarch: 'x64' - name: ${{ matrix.repository }}-x64-test + name: test new workflow uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: - repository: ${{ matrix.repository }} + repository: pytorch/vision ref: "" test-infra-repository: alinpahontu2912/test-infra test-infra-ref: x64windows_test - package-name: ${{ matrix.package-name }} - smoke-test-script: ${{ matrix.smoke-test-script }} - aarch: ${{ matrix.aarch }} + package-name: torchvision + smoke-test-script: test/smoke_test.py + aarch: 'x64' generate-matrix: uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From cf0ea30c80c8d5f9fd3d8071ff6829f73906ae53 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 10:25:01 +0200 Subject: [PATCH 088/176] test --- .github/workflows/build-wheels-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index cd5c2e85f24..1eee2707614 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -1,5 +1,5 @@ name: Build Windows Wheels - + on: pull_request: push: From ab83211fbadb4e3e9c7cb426de08434f088b70b7 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 10:38:59 +0200 Subject: [PATCH 089/176] test --- .github/workflows/build-wheels-windows.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 1eee2707614..9828b061185 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -31,13 +31,13 @@ jobs: name: test new workflow uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: - repository: pytorch/vision + repository: ${{ matrix.repository }} ref: "" test-infra-repository: alinpahontu2912/test-infra test-infra-ref: x64windows_test - package-name: torchvision - smoke-test-script: test/smoke_test.py - aarch: 'x64' + package-name: ${{ matrix.package-name }} + smoke-test-script: ${{ matrix.smoke-test-script }} + aarch: ${{ matrix.aarch }} generate-matrix: uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From 454ac54677010d662be1b4610c0cfe278a9f395f Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 13:26:06 +0200 Subject: [PATCH 090/176] test --- .github/workflows/build-wheels-windows.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 9828b061185..c0e1f7c06f4 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -13,6 +13,7 @@ on: - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ workflow_dispatch: + permissions: id-token: write contents: read From 8ec952621d9322f3f17749128856c914b156f382 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 13:45:11 +0200 Subject: [PATCH 091/176] test --- .github/workflows/build-wheels-windows.yml | 54 +++++++++++++--------- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index c0e1f7c06f4..7315c160a4e 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -19,26 +19,28 @@ permissions: contents: read jobs: - build-x64-test: - strategy: - fail-fast: false - matrix: - include: - - repository: pytorch/vision - smoke-test-script: test/smoke_test.py - package-name: torchvision - python-version: '3.12' - aarch: 'x64' - name: test new workflow - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test - with: - repository: ${{ matrix.repository }} - ref: "" - test-infra-repository: alinpahontu2912/test-infra - test-infra-ref: x64windows_test - package-name: ${{ matrix.package-name }} - smoke-test-script: ${{ matrix.smoke-test-script }} - aarch: ${{ matrix.aarch }} + # build-x64-test: + # strategy: + # fail-fast: false + # matrix: + # include: + # - repository: pytorch/vision + # smoke-test-script: test/smoke_test.py + # package-name: torchvision + # python-version: '3.12' + # aarch: 'x64' + # test-infra-ref: x64windows_test + # test-infra-repository: alinpahontu2912/test-infra + # name: test new workflow + # uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + # with: + # repository: ${{ matrix.repository }} + # ref: "" + # test-infra-repository: ${{ matrix.test-infra-repository }} + # test-infra-ref: ${{ matrix.test-infra-ref }} + # package-name: ${{ matrix.package-name }} + # smoke-test-script: ${{ matrix.smoke-test-script }} + # aarch: ${{ matrix.aarch }} generate-matrix: uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main @@ -60,13 +62,20 @@ jobs: post-script: "python packaging/wheel/relocate.py" smoke-test-script: test/smoke_test.py package-name: torchvision + - repository: pytorch/vision + smoke-test-script: test/smoke_test.py + package-name: torchvision + python-version: '3.12' + aarch: 'x64' + test-infra-ref: x64windows_test + test-infra-repository: alinpahontu2912/test-infra name: ${{ matrix.repository }} uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main with: repository: ${{ matrix.repository }} ref: "" - test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-repository: ${{ matrix.test-infra-repository || 'pytorch/test-infra' }} + test-infra-ref: ${{ matrix.test-infra-ref || 'main' }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: ${{ matrix.pre-script }} env-script: ${{ matrix.env-script }} @@ -74,3 +83,4 @@ jobs: package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} trigger-event: ${{ github.event_name }} + aarch: ${{ matrix.aarch || '' }} From 086c899955de63188f48a9a47fd632eaa508973b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 13:45:55 +0200 Subject: [PATCH 092/176] test --- .github/workflows/build-wheels-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 7315c160a4e..29a6475af30 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -83,4 +83,4 @@ jobs: package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} trigger-event: ${{ github.event_name }} - aarch: ${{ matrix.aarch || '' }} + From e1ca75152edd1e261e04f6d41f6c6bee4e9d2640 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 13:48:40 +0200 Subject: [PATCH 093/176] test --- .github/workflows/build-wheels-windows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 29a6475af30..d9cc7b4a8b0 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -70,13 +70,13 @@ jobs: test-infra-ref: x64windows_test test-infra-repository: alinpahontu2912/test-infra name: ${{ matrix.repository }} - uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: repository: ${{ matrix.repository }} ref: "" test-infra-repository: ${{ matrix.test-infra-repository || 'pytorch/test-infra' }} test-infra-ref: ${{ matrix.test-infra-ref || 'main' }} - build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + build-matrix: ${{ needs.generate-matrix.outputs.matrix || '{}' }} pre-script: ${{ matrix.pre-script }} env-script: ${{ matrix.env-script }} post-script: ${{ matrix.post-script }} From 20f761cf9f21a60c82c41ff6a8a2a6ccc459a7b9 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 14:09:10 +0200 Subject: [PATCH 094/176] test --- .github/workflows/build-wheels-windows.yml | 76 ++++++++++------------ 1 file changed, 34 insertions(+), 42 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index d9cc7b4a8b0..c70f44e3bf2 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -19,28 +19,28 @@ permissions: contents: read jobs: - # build-x64-test: - # strategy: - # fail-fast: false - # matrix: - # include: - # - repository: pytorch/vision - # smoke-test-script: test/smoke_test.py - # package-name: torchvision - # python-version: '3.12' - # aarch: 'x64' - # test-infra-ref: x64windows_test - # test-infra-repository: alinpahontu2912/test-infra - # name: test new workflow - # uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main - # with: - # repository: ${{ matrix.repository }} - # ref: "" - # test-infra-repository: ${{ matrix.test-infra-repository }} - # test-infra-ref: ${{ matrix.test-infra-ref }} - # package-name: ${{ matrix.package-name }} - # smoke-test-script: ${{ matrix.smoke-test-script }} - # aarch: ${{ matrix.aarch }} + build-x64-test: + strategy: + fail-fast: false + matrix: + include: + - repository: pytorch/vision + smoke-test-script: test/smoke_test.py + package-name: torchvision + python-version: '3.12' + aarch: 'x64' + test-infra-ref: x64windows_test + test-infra-repository: alinpahontu2912/test-infra + name: test new workflow + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test + with: + repository: ${{ matrix.repository }} + ref: "" + test-infra-repository: ${{ matrix.test-infra-repository }} + test-infra-ref: ${{ matrix.test-infra-ref }} + package-name: ${{ matrix.package-name }} + smoke-test-script: ${{ matrix.smoke-test-script }} + build-matrix: ${{ matrix }} generate-matrix: uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main @@ -54,33 +54,25 @@ jobs: needs: generate-matrix strategy: fail-fast: false - matrix: - include: - - repository: pytorch/vision - pre-script: packaging/pre_build_script.sh - env-script: packaging/windows/internal/vc_env_helper.bat - post-script: "python packaging/wheel/relocate.py" - smoke-test-script: test/smoke_test.py - package-name: torchvision - - repository: pytorch/vision - smoke-test-script: test/smoke_test.py - package-name: torchvision - python-version: '3.12' - aarch: 'x64' - test-infra-ref: x64windows_test - test-infra-repository: alinpahontu2912/test-infra + # matrix: + # include: + # - repository: pytorch/vision + # pre-script: packaging/pre_build_script.sh + # env-script: packaging/windows/internal/vc_env_helper.bat + # post-script: "python packaging/wheel/relocate.py" + # smoke-test-script: test/smoke_test.py + # package-name: torchvision name: ${{ matrix.repository }} - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test + uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main with: repository: ${{ matrix.repository }} ref: "" - test-infra-repository: ${{ matrix.test-infra-repository || 'pytorch/test-infra' }} - test-infra-ref: ${{ matrix.test-infra-ref || 'main' }} - build-matrix: ${{ needs.generate-matrix.outputs.matrix || '{}' }} + test-infra-repository: pytorch/test-infra + test-infra-ref: main + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: ${{ matrix.pre-script }} env-script: ${{ matrix.env-script }} post-script: ${{ matrix.post-script }} package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} trigger-event: ${{ github.event_name }} - From 57831ff0e448641f79f50dbc5b51afc0ac2894f4 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 15:36:58 +0200 Subject: [PATCH 095/176] test --- .github/workflows/build-wheels-windows.yml | 29 ++++++++++------------ 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index c70f44e3bf2..99dfa8124f7 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -1,5 +1,4 @@ name: Build Windows Wheels - on: pull_request: push: @@ -13,7 +12,6 @@ on: - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ workflow_dispatch: - permissions: id-token: write contents: read @@ -23,24 +21,23 @@ jobs: strategy: fail-fast: false matrix: + python-version: ['3.12', '3.13'] include: - repository: pytorch/vision smoke-test-script: test/smoke_test.py package-name: torchvision - python-version: '3.12' aarch: 'x64' - test-infra-ref: x64windows_test - test-infra-repository: alinpahontu2912/test-infra - name: test new workflow + test-infra-repository: pytorch/test-infra + test-infra-ref: main + name: test new job uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: repository: ${{ matrix.repository }} - ref: "" test-infra-repository: ${{ matrix.test-infra-repository }} test-infra-ref: ${{ matrix.test-infra-ref }} package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} - build-matrix: ${{ matrix }} + build-matrix: ${{ toJson(matrix) }} generate-matrix: uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main @@ -54,14 +51,14 @@ jobs: needs: generate-matrix strategy: fail-fast: false - # matrix: - # include: - # - repository: pytorch/vision - # pre-script: packaging/pre_build_script.sh - # env-script: packaging/windows/internal/vc_env_helper.bat - # post-script: "python packaging/wheel/relocate.py" - # smoke-test-script: test/smoke_test.py - # package-name: torchvision + matrix: + include: + - repository: pytorch/vision + pre-script: packaging/pre_build_script.sh + env-script: packaging/windows/internal/vc_env_helper.bat + post-script: "python packaging/wheel/relocate.py" + smoke-test-script: test/smoke_test.py + package-name: torchvision name: ${{ matrix.repository }} uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main with: From 057689018edb9e05534f1204c4f729ffcf0ab72a Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 15:44:12 +0200 Subject: [PATCH 096/176] test --- .github/workflows/build-wheels-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 99dfa8124f7..fadd351de26 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.12', '3.13'] + python-version: ['3.12'] include: - repository: pytorch/vision smoke-test-script: test/smoke_test.py From be06b43fea47d91bb6e6d53b4ddc5fa39caf58f4 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 15:50:48 +0200 Subject: [PATCH 097/176] test --- .github/workflows/build-wheels-windows.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index fadd351de26..a7263effd04 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -59,6 +59,7 @@ jobs: post-script: "python packaging/wheel/relocate.py" smoke-test-script: test/smoke_test.py package-name: torchvision + name: ${{ matrix.repository }} uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main with: From c6922f6d2fc3ec40b4a3013e36901743387f33ac Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 15:58:10 +0200 Subject: [PATCH 098/176] test --- .github/workflows/build-wheels-windows.yml | 99 ++++++++++++++++------ 1 file changed, 72 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index a7263effd04..789e5cf517b 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -17,28 +17,6 @@ permissions: contents: read jobs: - build-x64-test: - strategy: - fail-fast: false - matrix: - python-version: ['3.12'] - include: - - repository: pytorch/vision - smoke-test-script: test/smoke_test.py - package-name: torchvision - aarch: 'x64' - test-infra-repository: pytorch/test-infra - test-infra-ref: main - name: test new job - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test - with: - repository: ${{ matrix.repository }} - test-infra-repository: ${{ matrix.test-infra-repository }} - test-infra-ref: ${{ matrix.test-infra-ref }} - package-name: ${{ matrix.package-name }} - smoke-test-script: ${{ matrix.smoke-test-script }} - build-matrix: ${{ toJson(matrix) }} - generate-matrix: uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main with: @@ -47,30 +25,97 @@ jobs: test-infra-repository: pytorch/test-infra test-infra-ref: main with-xpu: enable + build: needs: generate-matrix strategy: fail-fast: false matrix: include: + # Standard matrix configuration from the original build job - repository: pytorch/vision pre-script: packaging/pre_build_script.sh env-script: packaging/windows/internal/vc_env_helper.bat post-script: "python packaging/wheel/relocate.py" smoke-test-script: test/smoke_test.py package-name: torchvision - - name: ${{ matrix.repository }} + # Special x64 configuration from the original build-x64-test job + - repository: pytorch/vision + smoke-test-script: test/smoke_test.py + package-name: torchvision + python-version: '3.12' + aarch: 'x64' + test-infra-repository: 'alinpahontu2912/test-infra' + test-infra-ref: 'x64_windowstest' + name: ${{ matrix.repository }}${{ matrix.aarch && format(' ({0})', matrix.aarch) || '' }} uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main with: repository: ${{ matrix.repository }} ref: "" - test-infra-repository: pytorch/test-infra - test-infra-ref: main - build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + test-infra-repository: ${{ matrix.test-infra-repository || 'pytorch/test-infra' }} + test-infra-ref: ${{ matrix.test-infra-ref || 'main' }} + build-matrix: ${{ !matrix.aarch && needs.generate-matrix.outputs.matrix || toJson(matrix) }} pre-script: ${{ matrix.pre-script }} env-script: ${{ matrix.env-script }} post-script: ${{ matrix.post-script }} package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} trigger-event: ${{ github.event_name }} + +# jobs: +# build-x64-test: +# strategy: +# fail-fast: false +# matrix: +# python-version: ['3.12'] +# include: +# - repository: pytorch/vision +# smoke-test-script: test/smoke_test.py +# package-name: torchvision +# aarch: 'x64' +# test-infra-repository: pytorch/test-infra +# test-infra-ref: main +# name: test new job +# uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main +# with: +# repository: ${{ matrix.repository }} +# test-infra-repository: ${{ matrix.test-infra-repository }} +# test-infra-ref: ${{ matrix.test-infra-ref }} +# package-name: ${{ matrix.package-name }} +# smoke-test-script: ${{ matrix.smoke-test-script }} +# build-matrix: ${{ toJson(matrix) }} + +# generate-matrix: +# uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main +# with: +# package-type: wheel +# os: windows +# test-infra-repository: pytorch/test-infra +# test-infra-ref: main +# with-xpu: enable +# build: +# needs: generate-matrix +# strategy: +# fail-fast: false +# matrix: +# include: +# - repository: pytorch/vision +# pre-script: packaging/pre_build_script.sh +# env-script: packaging/windows/internal/vc_env_helper.bat +# post-script: "python packaging/wheel/relocate.py" +# smoke-test-script: test/smoke_test.py +# package-name: torchvision +# name: ${{ matrix.repository }} +# uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main +# with: +# repository: ${{ matrix.repository }} +# ref: "" +# test-infra-repository: pytorch/test-infra +# test-infra-ref: main +# build-matrix: ${{ needs.generate-matrix.outputs.matrix }} +# pre-script: ${{ matrix.pre-script }} +# env-script: ${{ matrix.env-script }} +# post-script: ${{ matrix.post-script }} +# package-name: ${{ matrix.package-name }} +# smoke-test-script: ${{ matrix.smoke-test-script }} +# trigger-event: ${{ github.event_name }} From be65f4be378b2d078403b5a9071e42f925e2b6ca Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 16:01:39 +0200 Subject: [PATCH 099/176] test --- .github/workflows/build-wheels-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 789e5cf517b..05d66b6b5d5 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -48,7 +48,7 @@ jobs: test-infra-repository: 'alinpahontu2912/test-infra' test-infra-ref: 'x64_windowstest' name: ${{ matrix.repository }}${{ matrix.aarch && format(' ({0})', matrix.aarch) || '' }} - uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64_windowstest with: repository: ${{ matrix.repository }} ref: "" From c4dc1e819535f3f94bcb825eedab09dfd1527d70 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 16:05:01 +0200 Subject: [PATCH 100/176] use right test infra ref --- .github/workflows/build-wheels-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 05d66b6b5d5..0f3056edb56 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -48,7 +48,7 @@ jobs: test-infra-repository: 'alinpahontu2912/test-infra' test-infra-ref: 'x64_windowstest' name: ${{ matrix.repository }}${{ matrix.aarch && format(' ({0})', matrix.aarch) || '' }} - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64_windowstest + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: repository: ${{ matrix.repository }} ref: "" From 8f4341d4775e9c086e719754db2d5690d5cc1d49 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 16:08:38 +0200 Subject: [PATCH 101/176] change ref --- .github/workflows/build-wheels-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 0f3056edb56..eb3627477a9 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -46,7 +46,7 @@ jobs: python-version: '3.12' aarch: 'x64' test-infra-repository: 'alinpahontu2912/test-infra' - test-infra-ref: 'x64_windowstest' + test-infra-ref: 'x64windows_test' name: ${{ matrix.repository }}${{ matrix.aarch && format(' ({0})', matrix.aarch) || '' }} uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: From aca1c5d0c509f92e00b05f18918e5d1f19b87c6e Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 16:12:29 +0200 Subject: [PATCH 102/176] test exclude --- .github/workflows/build-wheels-windows.yml | 77 +++++++++++++++++++--- 1 file changed, 67 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index eb3627477a9..15e08919aac 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -31,36 +31,93 @@ jobs: strategy: fail-fast: false matrix: + # Main matrix from generate-matrix job + standard-config: [true] + + # Specific x64 configurations with multiple Python versions + python-version: [null, '3.12'] + aarch: [null, 'x64'] + + # Filter combinations to either use standard config or x64 specific configs + exclude: + # Exclude null values for standard config + - standard-config: true + python-version: null + - standard-config: true + aarch: null + # Exclude x64 configs when using standard config + - standard-config: true + aarch: x64 + include: - # Standard matrix configuration from the original build job - - repository: pytorch/vision + # Standard matrix configuration details + - standard-config: true + repository: pytorch/vision pre-script: packaging/pre_build_script.sh env-script: packaging/windows/internal/vc_env_helper.bat post-script: "python packaging/wheel/relocate.py" smoke-test-script: test/smoke_test.py package-name: torchvision - # Special x64 configuration from the original build-x64-test job - - repository: pytorch/vision + + # Add common properties to all x64 configurations + - aarch: x64 + repository: pytorch/vision smoke-test-script: test/smoke_test.py package-name: torchvision - python-version: '3.12' - aarch: 'x64' - test-infra-repository: 'alinpahontu2912/test-infra' - test-infra-ref: 'x64windows_test' - name: ${{ matrix.repository }}${{ matrix.aarch && format(' ({0})', matrix.aarch) || '' }} + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test + standard-config: false + + name: ${{ matrix.standard-config && matrix.repository || format('{0} (x64-py{1})', matrix.repository, matrix.python-version) }} uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: repository: ${{ matrix.repository }} ref: "" test-infra-repository: ${{ matrix.test-infra-repository || 'pytorch/test-infra' }} test-infra-ref: ${{ matrix.test-infra-ref || 'main' }} - build-matrix: ${{ !matrix.aarch && needs.generate-matrix.outputs.matrix || toJson(matrix) }} + build-matrix: ${{ matrix.standard-config && needs.generate-matrix.outputs.matrix || toJson(matrix) }} pre-script: ${{ matrix.pre-script }} env-script: ${{ matrix.env-script }} post-script: ${{ matrix.post-script }} package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} trigger-event: ${{ github.event_name }} + + # build: + # needs: generate-matrix + # strategy: + # fail-fast: false + # matrix: + # include: + # # Standard matrix configuration from the original build job + # - repository: pytorch/vision + # pre-script: packaging/pre_build_script.sh + # env-script: packaging/windows/internal/vc_env_helper.bat + # post-script: "python packaging/wheel/relocate.py" + # smoke-test-script: test/smoke_test.py + # package-name: torchvision + # # Special x64 configuration from the original build-x64-test job + # - repository: pytorch/vision + # smoke-test-script: test/smoke_test.py + # package-name: torchvision + # python-version: '3.12' + # aarch: 'x64' + # test-infra-repository: 'alinpahontu2912/test-infra' + # test-infra-ref: 'x64windows_test' + # name: ${{ matrix.repository }}${{ matrix.aarch && format(' ({0})', matrix.aarch) || '' }} + # uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test + # with: + # repository: ${{ matrix.repository }} + # ref: "" + # test-infra-repository: ${{ matrix.test-infra-repository || 'pytorch/test-infra' }} + # test-infra-ref: ${{ matrix.test-infra-ref || 'main' }} + # build-matrix: ${{ !matrix.aarch && needs.generate-matrix.outputs.matrix || toJson(matrix) }} + # pre-script: ${{ matrix.pre-script }} + # env-script: ${{ matrix.env-script }} + # post-script: ${{ matrix.post-script }} + # package-name: ${{ matrix.package-name }} + # smoke-test-script: ${{ matrix.smoke-test-script }} + # trigger-event: ${{ github.event_name }} # jobs: # build-x64-test: From 80c36513dbd797b81e06a4207db2e33f8d525796 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 16:29:29 +0200 Subject: [PATCH 103/176] test --- .github/workflows/build-wheels-windows.yml | 157 ++++----------------- 1 file changed, 27 insertions(+), 130 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 15e08919aac..4828d1bf1fb 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -17,6 +17,28 @@ permissions: contents: read jobs: + build-x64-test: + strategy: + fail-fast: false + matrix: + python-version: ['3.12'] + include: + - repository: pytorch/vision + smoke-test-script: test/smoke_test.py + package-name: torchvision + aarch: 'x64' + test-infra-repository: pytorch/test-infra + test-infra-ref: main + name: test new job + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test + with: + repository: ${{ matrix.repository }} + test-infra-repository: ${{ matrix.test-infra-repository }} + test-infra-ref: ${{ matrix.test-infra-ref }} + package-name: ${{ matrix.package-name }} + smoke-test-script: ${{ matrix.smoke-test-script }} + build-matrix: ${{ toJson(matrix) }} + generate-matrix: uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main with: @@ -25,154 +47,29 @@ jobs: test-infra-repository: pytorch/test-infra test-infra-ref: main with-xpu: enable - build: needs: generate-matrix strategy: fail-fast: false matrix: - # Main matrix from generate-matrix job - standard-config: [true] - - # Specific x64 configurations with multiple Python versions - python-version: [null, '3.12'] - aarch: [null, 'x64'] - - # Filter combinations to either use standard config or x64 specific configs - exclude: - # Exclude null values for standard config - - standard-config: true - python-version: null - - standard-config: true - aarch: null - # Exclude x64 configs when using standard config - - standard-config: true - aarch: x64 - include: - # Standard matrix configuration details - - standard-config: true - repository: pytorch/vision + - repository: pytorch/vision pre-script: packaging/pre_build_script.sh env-script: packaging/windows/internal/vc_env_helper.bat post-script: "python packaging/wheel/relocate.py" smoke-test-script: test/smoke_test.py package-name: torchvision - - # Add common properties to all x64 configurations - - aarch: x64 - repository: pytorch/vision - smoke-test-script: test/smoke_test.py - package-name: torchvision - test-infra-repository: alinpahontu2912/test-infra - test-infra-ref: x64windows_test - standard-config: false - - name: ${{ matrix.standard-config && matrix.repository || format('{0} (x64-py{1})', matrix.repository, matrix.python-version) }} + name: ${{ matrix.repository }} uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: repository: ${{ matrix.repository }} ref: "" - test-infra-repository: ${{ matrix.test-infra-repository || 'pytorch/test-infra' }} - test-infra-ref: ${{ matrix.test-infra-ref || 'main' }} - build-matrix: ${{ matrix.standard-config && needs.generate-matrix.outputs.matrix || toJson(matrix) }} + test-infra-repository: pytorch/test-infra + test-infra-ref: main + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: ${{ matrix.pre-script }} env-script: ${{ matrix.env-script }} post-script: ${{ matrix.post-script }} package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} trigger-event: ${{ github.event_name }} - - # build: - # needs: generate-matrix - # strategy: - # fail-fast: false - # matrix: - # include: - # # Standard matrix configuration from the original build job - # - repository: pytorch/vision - # pre-script: packaging/pre_build_script.sh - # env-script: packaging/windows/internal/vc_env_helper.bat - # post-script: "python packaging/wheel/relocate.py" - # smoke-test-script: test/smoke_test.py - # package-name: torchvision - # # Special x64 configuration from the original build-x64-test job - # - repository: pytorch/vision - # smoke-test-script: test/smoke_test.py - # package-name: torchvision - # python-version: '3.12' - # aarch: 'x64' - # test-infra-repository: 'alinpahontu2912/test-infra' - # test-infra-ref: 'x64windows_test' - # name: ${{ matrix.repository }}${{ matrix.aarch && format(' ({0})', matrix.aarch) || '' }} - # uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test - # with: - # repository: ${{ matrix.repository }} - # ref: "" - # test-infra-repository: ${{ matrix.test-infra-repository || 'pytorch/test-infra' }} - # test-infra-ref: ${{ matrix.test-infra-ref || 'main' }} - # build-matrix: ${{ !matrix.aarch && needs.generate-matrix.outputs.matrix || toJson(matrix) }} - # pre-script: ${{ matrix.pre-script }} - # env-script: ${{ matrix.env-script }} - # post-script: ${{ matrix.post-script }} - # package-name: ${{ matrix.package-name }} - # smoke-test-script: ${{ matrix.smoke-test-script }} - # trigger-event: ${{ github.event_name }} - -# jobs: -# build-x64-test: -# strategy: -# fail-fast: false -# matrix: -# python-version: ['3.12'] -# include: -# - repository: pytorch/vision -# smoke-test-script: test/smoke_test.py -# package-name: torchvision -# aarch: 'x64' -# test-infra-repository: pytorch/test-infra -# test-infra-ref: main -# name: test new job -# uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main -# with: -# repository: ${{ matrix.repository }} -# test-infra-repository: ${{ matrix.test-infra-repository }} -# test-infra-ref: ${{ matrix.test-infra-ref }} -# package-name: ${{ matrix.package-name }} -# smoke-test-script: ${{ matrix.smoke-test-script }} -# build-matrix: ${{ toJson(matrix) }} - -# generate-matrix: -# uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main -# with: -# package-type: wheel -# os: windows -# test-infra-repository: pytorch/test-infra -# test-infra-ref: main -# with-xpu: enable -# build: -# needs: generate-matrix -# strategy: -# fail-fast: false -# matrix: -# include: -# - repository: pytorch/vision -# pre-script: packaging/pre_build_script.sh -# env-script: packaging/windows/internal/vc_env_helper.bat -# post-script: "python packaging/wheel/relocate.py" -# smoke-test-script: test/smoke_test.py -# package-name: torchvision -# name: ${{ matrix.repository }} -# uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main -# with: -# repository: ${{ matrix.repository }} -# ref: "" -# test-infra-repository: pytorch/test-infra -# test-infra-ref: main -# build-matrix: ${{ needs.generate-matrix.outputs.matrix }} -# pre-script: ${{ matrix.pre-script }} -# env-script: ${{ matrix.env-script }} -# post-script: ${{ matrix.post-script }} -# package-name: ${{ matrix.package-name }} -# smoke-test-script: ${{ matrix.smoke-test-script }} -# trigger-event: ${{ github.event_name }} From a012c625ea9de3ffd956f6d194a606bf514d8e5d Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 16:47:15 +0200 Subject: [PATCH 104/176] test --- .github/workflows/build-wheels-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 4828d1bf1fb..4fbb8cdf3e5 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -37,7 +37,7 @@ jobs: test-infra-ref: ${{ matrix.test-infra-ref }} package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} - build-matrix: ${{ toJson(matrix) }} + aarch: ${{ matrix.aarch }} generate-matrix: uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From 5c3e539186472db512f8d4938ae2de20efd1a1eb Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 16:51:28 +0200 Subject: [PATCH 105/176] test --- .github/workflows/build-wheels-windows.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 4fbb8cdf3e5..f537b18dfe9 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -27,8 +27,8 @@ jobs: smoke-test-script: test/smoke_test.py package-name: torchvision aarch: 'x64' - test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test name: test new job uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: @@ -64,8 +64,8 @@ jobs: with: repository: ${{ matrix.repository }} ref: "" - test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: ${{ matrix.pre-script }} env-script: ${{ matrix.env-script }} @@ -73,3 +73,4 @@ jobs: package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} trigger-event: ${{ github.event_name }} + aarch: "" \ No newline at end of file From b5fc66d21c5af0fa93e290e4cf3e386ecf1ad355 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 17:31:50 +0200 Subject: [PATCH 106/176] test --- .github/workflows/build-wheels-windows.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index f537b18dfe9..dfb922b633a 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -21,7 +21,6 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.12'] include: - repository: pytorch/vision smoke-test-script: test/smoke_test.py @@ -29,6 +28,7 @@ jobs: aarch: 'x64' test-infra-repository: alinpahontu2912/test-infra test-infra-ref: x64windows_test + python-version: "3.12" name: test new job uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: @@ -38,14 +38,15 @@ jobs: package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} aarch: ${{ matrix.aarch }} + matrix: ${{ toJson(matrix) }} generate-matrix: uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main with: package-type: wheel os: windows - test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test with-xpu: enable build: needs: generate-matrix From ff6b77f1262dc88c5e830a639a84046bb009f0fc Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 17:32:48 +0200 Subject: [PATCH 107/176] fix wrong input --- .github/workflows/build-wheels-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index dfb922b633a..78febc10dc6 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -38,7 +38,7 @@ jobs: package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} aarch: ${{ matrix.aarch }} - matrix: ${{ toJson(matrix) }} + build-matrix: ${{ toJson(matrix) }} generate-matrix: uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From e87bab4218270648c0bd62bd1ee2f58b9f81e71b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 8 Apr 2025 17:34:59 +0200 Subject: [PATCH 108/176] retrigger --- .github/workflows/build-wheels-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 78febc10dc6..fb4affb88c1 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -21,6 +21,7 @@ jobs: strategy: fail-fast: false matrix: + python-version: ["3.12"] include: - repository: pytorch/vision smoke-test-script: test/smoke_test.py @@ -28,7 +29,6 @@ jobs: aarch: 'x64' test-infra-repository: alinpahontu2912/test-infra test-infra-ref: x64windows_test - python-version: "3.12" name: test new job uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: From 8af064e0b5cac406b169100f992f30d944c9898e Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 10:43:44 +0200 Subject: [PATCH 109/176] test --- .github/workflows/build-wheels-windows.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index fb4affb88c1..cf1414eb8b3 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -16,6 +16,7 @@ permissions: id-token: write contents: read + jobs: build-x64-test: strategy: From bebf80441cca8d482ca0e1dd7719ec42ae125dd5 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 11:10:04 +0200 Subject: [PATCH 110/176] retrigger --- .github/workflows/build-wheels-windows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index cf1414eb8b3..d166b32cd3d 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -16,7 +16,7 @@ permissions: id-token: write contents: read - + jobs: build-x64-test: strategy: @@ -42,7 +42,7 @@ jobs: build-matrix: ${{ toJson(matrix) }} generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@x64windows_test with: package-type: wheel os: windows From 9fb4cd0c22b5416f48c9cc068b087263c59f6a3b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 11:14:24 +0200 Subject: [PATCH 111/176] test send input matrix --- .github/workflows/build-wheels-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index d166b32cd3d..2a2d40afa39 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -39,7 +39,7 @@ jobs: package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} aarch: ${{ matrix.aarch }} - build-matrix: ${{ toJson(matrix) }} + build-matrix: ${{ matrix }} generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@x64windows_test From d863ed6b82260a9c27ceba0c755d89d989b5fa21 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 11:25:16 +0200 Subject: [PATCH 112/176] retrigger with python-version input --- .github/workflows/build-wheels-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 2a2d40afa39..f90a3ebe3f8 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -39,7 +39,7 @@ jobs: package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} aarch: ${{ matrix.aarch }} - build-matrix: ${{ matrix }} + python-version: ${{ matrix.python-version }} generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@x64windows_test From 0859d1e4c6ee46a6aa79db3ab0b968dae6c7adc5 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 11:32:06 +0200 Subject: [PATCH 113/176] test --- .github/workflows/build-wheels-windows.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index f90a3ebe3f8..31fa5a0b4ac 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -74,5 +74,4 @@ jobs: post-script: ${{ matrix.post-script }} package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} - trigger-event: ${{ github.event_name }} - aarch: "" \ No newline at end of file + trigger-event: ${{ github.event_name }} \ No newline at end of file From d89dbffe1134274a7dd655152c6cc6bb7fa6701a Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 11:50:58 +0200 Subject: [PATCH 114/176] update script inputs --- .github/workflows/build-wheels-windows.yml | 59 ++++++++++------------ 1 file changed, 28 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 31fa5a0b4ac..7dd2d6c90da 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -1,4 +1,5 @@ name: Build Windows Wheels + on: pull_request: push: @@ -16,38 +17,14 @@ permissions: id-token: write contents: read - jobs: - build-x64-test: - strategy: - fail-fast: false - matrix: - python-version: ["3.12"] - include: - - repository: pytorch/vision - smoke-test-script: test/smoke_test.py - package-name: torchvision - aarch: 'x64' - test-infra-repository: alinpahontu2912/test-infra - test-infra-ref: x64windows_test - name: test new job - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test - with: - repository: ${{ matrix.repository }} - test-infra-repository: ${{ matrix.test-infra-repository }} - test-infra-ref: ${{ matrix.test-infra-ref }} - package-name: ${{ matrix.package-name }} - smoke-test-script: ${{ matrix.smoke-test-script }} - aarch: ${{ matrix.aarch }} - python-version: ${{ matrix.python-version }} - generate-matrix: - uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@x64windows_test + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main with: package-type: wheel os: windows - test-infra-repository: alinpahontu2912/test-infra - test-infra-ref: x64windows_test + test-infra-repository: pytorch/test-infra + test-infra-ref: main with-xpu: enable build: needs: generate-matrix @@ -62,16 +39,36 @@ jobs: smoke-test-script: test/smoke_test.py package-name: torchvision name: ${{ matrix.repository }} - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test + uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main with: repository: ${{ matrix.repository }} ref: "" - test-infra-repository: alinpahontu2912/test-infra - test-infra-ref: x64windows_test + test-infra-repository: pytorch/test-infra + test-infra-ref: main build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: ${{ matrix.pre-script }} env-script: ${{ matrix.env-script }} post-script: ${{ matrix.post-script }} package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} - trigger-event: ${{ github.event_name }} \ No newline at end of file + trigger-event: ${{ github.event_name }} + + build_x64: + strategy: + matrix: + include: + - repository: pytorch/vision + smoke-test-script: test/smoke_test.py + package-name: torchvision + python-version: "3.12" + iswinarm64: true + name: ${{ matrix.repository }}-test-x64 + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test + with: + repository: ${{ matrix.repository }} + ref: "" + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test + build-matrix: ${{ matrix }} + package-name: ${{ matrix.package-name }} + smoke-test-script: ${{ matrix.smoke-test-script }} \ No newline at end of file From 8f46886b25a188afe7232bf7c03c54ca2571ec41 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 12:04:11 +0200 Subject: [PATCH 115/176] retrigger --- .github/workflows/build-wheels-windows.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 7dd2d6c90da..f6675b13ad1 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -39,12 +39,12 @@ jobs: smoke-test-script: test/smoke_test.py package-name: torchvision name: ${{ matrix.repository }} - uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: repository: ${{ matrix.repository }} ref: "" - test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: ${{ matrix.pre-script }} env-script: ${{ matrix.env-script }} From 0f9e84cd39d840cf225fc663111f075f5b0936f6 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 12:08:49 +0200 Subject: [PATCH 116/176] test combine jobs --- .github/workflows/build-wheels-windows.yml | 83 +++++++++++++++------- 1 file changed, 59 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index f6675b13ad1..0ff92071b3a 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -26,49 +26,84 @@ jobs: test-infra-repository: pytorch/test-infra test-infra-ref: main with-xpu: enable + # build: + # needs: generate-matrix + # strategy: + # fail-fast: false + # matrix: + # include: + # - repository: pytorch/vision + # pre-script: packaging/pre_build_script.sh + # env-script: packaging/windows/internal/vc_env_helper.bat + # post-script: "python packaging/wheel/relocate.py" + # smoke-test-script: test/smoke_test.py + # package-name: torchvision + # name: ${{ matrix.repository }} + # uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test + # with: + # repository: ${{ matrix.repository }} + # ref: "" + # test-infra-repository: alinpahontu2912/test-infra + # test-infra-ref: x64windows_test + # build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + # pre-script: ${{ matrix.pre-script }} + # env-script: ${{ matrix.env-script }} + # post-script: ${{ matrix.post-script }} + # package-name: ${{ matrix.package-name }} + # smoke-test-script: ${{ matrix.smoke-test-script }} + # trigger-event: ${{ github.event_name }} + + # build_x64: + # strategy: + # matrix: + # python-version: ["3.12"] + # include: + # - repository: pytorch/vision + # smoke-test-script: test/smoke_test.py + # package-name: torchvision + # python-version: "3.12" + # iswinarm64: true + # name: ${{ matrix.repository }}-test-x64 + # uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test + # with: + # repository: ${{ matrix.repository }} + # ref: "" + # test-infra-repository: alinpahontu2912/test-infra + # test-infra-ref: x64windows_test + # package-name: ${{ matrix.package-name }} + # smoke-test-script: ${{ matrix.smoke-test-script }} build: needs: generate-matrix strategy: fail-fast: false matrix: include: + # Regular build configurations - repository: pytorch/vision pre-script: packaging/pre_build_script.sh env-script: packaging/windows/internal/vc_env_helper.bat post-script: "python packaging/wheel/relocate.py" smoke-test-script: test/smoke_test.py package-name: torchvision - name: ${{ matrix.repository }} - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test - with: - repository: ${{ matrix.repository }} - ref: "" - test-infra-repository: alinpahontu2912/test-infra - test-infra-ref: x64windows_test - build-matrix: ${{ needs.generate-matrix.outputs.matrix }} - pre-script: ${{ matrix.pre-script }} - env-script: ${{ matrix.env-script }} - post-script: ${{ matrix.post-script }} - package-name: ${{ matrix.package-name }} - smoke-test-script: ${{ matrix.smoke-test-script }} - trigger-event: ${{ github.event_name }} - - build_x64: - strategy: - matrix: - include: + iswinarm64: false + # Windows test special configuration - repository: pytorch/vision smoke-test-script: test/smoke_test.py package-name: torchvision python-version: "3.12" iswinarm64: true - name: ${{ matrix.repository }}-test-x64 + name: ${{ matrix.repository }}${{ matrix.iswinarm64 && '-arm64' || '' }} uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: repository: ${{ matrix.repository }} ref: "" - test-infra-repository: alinpahontu2912/test-infra - test-infra-ref: x64windows_test - build-matrix: ${{ matrix }} + test-infra-repository: ${{ matrix.iswinarm64 && 'alinpahontu2912/test-infra' || 'pytorch/test-infra' }} + test-infra-ref: ${{ matrix.iswinarm64 && 'x64windows_test' || 'main' }} + build-matrix: ${{ matrix.iswinarm64 && '{0}' || needs.generate-matrix.outputs.matrix }} + pre-script: ${{ matrix.iswinarm64 && '' || matrix.pre-script }} + env-script: ${{ matrix.iswinarm64 && '' || matrix.env-script }} + post-script: ${{ matrix.iswinarm64 && '' || matrix.post-script }} package-name: ${{ matrix.package-name }} - smoke-test-script: ${{ matrix.smoke-test-script }} \ No newline at end of file + smoke-test-script: ${{ matrix.smoke-test-script }} + trigger-event: ${{ github.event_name }} + # python-version: ${{ matrix.iswinarm64 && matrix.python-version || '' }} \ No newline at end of file From 19b97534ca66bf44482fdd5bb437abf359de423c Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 12:17:42 +0200 Subject: [PATCH 117/176] test config --- .github/workflows/build-wheels-windows.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 0ff92071b3a..f1217525a7c 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -85,21 +85,21 @@ jobs: post-script: "python packaging/wheel/relocate.py" smoke-test-script: test/smoke_test.py package-name: torchvision - iswinarm64: false + iswinarm64: false # Windows test special configuration - repository: pytorch/vision smoke-test-script: test/smoke_test.py package-name: torchvision python-version: "3.12" iswinarm64: true - name: ${{ matrix.repository }}${{ matrix.iswinarm64 && '-arm64' || '' }} + name: ${{ matrix.repository }}${{ matrix.iswinarm64 && '-x64' || '' }} uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: repository: ${{ matrix.repository }} ref: "" - test-infra-repository: ${{ matrix.iswinarm64 && 'alinpahontu2912/test-infra' || 'pytorch/test-infra' }} - test-infra-ref: ${{ matrix.iswinarm64 && 'x64windows_test' || 'main' }} - build-matrix: ${{ matrix.iswinarm64 && '{0}' || needs.generate-matrix.outputs.matrix }} + test-infra-repository: 'alinpahontu2912/test-infra' + test-infra-ref: 'x64windows_test' + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: ${{ matrix.iswinarm64 && '' || matrix.pre-script }} env-script: ${{ matrix.iswinarm64 && '' || matrix.env-script }} post-script: ${{ matrix.iswinarm64 && '' || matrix.post-script }} From e268d8de308f0b52cd434490c68c2250bb0ddb23 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 13:21:59 +0200 Subject: [PATCH 118/176] test --- .github/workflows/build-wheels-windows.yml | 86 +++++++--------------- 1 file changed, 25 insertions(+), 61 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index f1217525a7c..a7874e871b8 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -18,6 +18,25 @@ permissions: contents: read jobs: + build_x64: + strategy: + matrix: + python-version: ["3.12"] + include: + - repository: pytorch/vision + smoke-test-script: test/smoke_test.py + package-name: torchvision + iswinarm64: true + name: ${{ matrix.repository }}-test-x64 + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test + with: + repository: ${{ matrix.repository }} + ref: "" + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test + package-name: ${{ matrix.package-name }} + smoke-test-script: ${{ matrix.smoke-test-script }} + generate-matrix: uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main with: @@ -26,84 +45,29 @@ jobs: test-infra-repository: pytorch/test-infra test-infra-ref: main with-xpu: enable - # build: - # needs: generate-matrix - # strategy: - # fail-fast: false - # matrix: - # include: - # - repository: pytorch/vision - # pre-script: packaging/pre_build_script.sh - # env-script: packaging/windows/internal/vc_env_helper.bat - # post-script: "python packaging/wheel/relocate.py" - # smoke-test-script: test/smoke_test.py - # package-name: torchvision - # name: ${{ matrix.repository }} - # uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test - # with: - # repository: ${{ matrix.repository }} - # ref: "" - # test-infra-repository: alinpahontu2912/test-infra - # test-infra-ref: x64windows_test - # build-matrix: ${{ needs.generate-matrix.outputs.matrix }} - # pre-script: ${{ matrix.pre-script }} - # env-script: ${{ matrix.env-script }} - # post-script: ${{ matrix.post-script }} - # package-name: ${{ matrix.package-name }} - # smoke-test-script: ${{ matrix.smoke-test-script }} - # trigger-event: ${{ github.event_name }} - - # build_x64: - # strategy: - # matrix: - # python-version: ["3.12"] - # include: - # - repository: pytorch/vision - # smoke-test-script: test/smoke_test.py - # package-name: torchvision - # python-version: "3.12" - # iswinarm64: true - # name: ${{ matrix.repository }}-test-x64 - # uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test - # with: - # repository: ${{ matrix.repository }} - # ref: "" - # test-infra-repository: alinpahontu2912/test-infra - # test-infra-ref: x64windows_test - # package-name: ${{ matrix.package-name }} - # smoke-test-script: ${{ matrix.smoke-test-script }} build: needs: generate-matrix strategy: fail-fast: false matrix: include: - # Regular build configurations - repository: pytorch/vision pre-script: packaging/pre_build_script.sh env-script: packaging/windows/internal/vc_env_helper.bat post-script: "python packaging/wheel/relocate.py" smoke-test-script: test/smoke_test.py package-name: torchvision - iswinarm64: false - # Windows test special configuration - - repository: pytorch/vision - smoke-test-script: test/smoke_test.py - package-name: torchvision - python-version: "3.12" - iswinarm64: true - name: ${{ matrix.repository }}${{ matrix.iswinarm64 && '-x64' || '' }} + name: ${{ matrix.repository }} uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: repository: ${{ matrix.repository }} ref: "" - test-infra-repository: 'alinpahontu2912/test-infra' - test-infra-ref: 'x64windows_test' + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test build-matrix: ${{ needs.generate-matrix.outputs.matrix }} - pre-script: ${{ matrix.iswinarm64 && '' || matrix.pre-script }} - env-script: ${{ matrix.iswinarm64 && '' || matrix.env-script }} - post-script: ${{ matrix.iswinarm64 && '' || matrix.post-script }} + pre-script: ${{ matrix.pre-script }} + env-script: ${{ matrix.env-script }} + post-script: ${{ matrix.post-script }} package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} trigger-event: ${{ github.event_name }} - # python-version: ${{ matrix.iswinarm64 && matrix.python-version || '' }} \ No newline at end of file From b19defbb6d17842cb0bde18cbc0f8756083f932c Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 13:24:31 +0200 Subject: [PATCH 119/176] change repo for generate-matrix --- .github/workflows/build-wheels-windows.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index a7874e871b8..3ebc39eddfd 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -38,13 +38,14 @@ jobs: smoke-test-script: ${{ matrix.smoke-test-script }} generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main with: package-type: wheel os: windows - test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test with-xpu: enable + build: needs: generate-matrix strategy: From efb2eecb7e388041b7e9b9461f650e38bd0205ff Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 13:26:33 +0200 Subject: [PATCH 120/176] retrigger --- .github/workflows/build-wheels-windows.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 3ebc39eddfd..54bcad61b73 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -17,6 +17,7 @@ permissions: id-token: write contents: read + jobs: build_x64: strategy: From 9fdc69e0bec3e074bbcd1c0c14a00de35691e276 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 15:50:24 +0200 Subject: [PATCH 121/176] try generate_matrix_change for arm64 --- .github/workflows/build-wheels-windows.yml | 110 +++++++++++++----- .../build_wheel_windows_x64_test.yml | 48 ++++++-- 2 files changed, 120 insertions(+), 38 deletions(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 54bcad61b73..2616e406f42 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -1,3 +1,78 @@ +# name: Build Windows Wheels + +# on: +# pull_request: +# push: +# branches: +# - nightly +# - main +# - release/* +# tags: +# # NOTE: Binary build pipelines should only get triggered on release candidate builds +# # Release candidate tags look like: v1.11.0-rc1 +# - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ +# workflow_dispatch: + +# permissions: +# id-token: write +# contents: read + + +# jobs: +# build_x64: +# strategy: +# matrix: +# python-version: ["3.12"] +# include: +# - repository: pytorch/vision +# smoke-test-script: test/smoke_test.py +# package-name: torchvision +# iswinarm64: true +# name: ${{ matrix.repository }}-test-x64 +# uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test +# with: +# repository: ${{ matrix.repository }} +# ref: "" +# test-infra-repository: alinpahontu2912/test-infra +# test-infra-ref: x64windows_test +# package-name: ${{ matrix.package-name }} +# smoke-test-script: ${{ matrix.smoke-test-script }} + +# generate-matrix: +# uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main +# with: +# package-type: wheel +# os: windows +# test-infra-repository: alinpahontu2912/test-infra +# test-infra-ref: x64windows_test +# with-xpu: enable + +# build: +# needs: generate-matrix +# strategy: +# fail-fast: false +# matrix: +# include: +# - repository: pytorch/vision +# pre-script: packaging/pre_build_script.sh +# env-script: packaging/windows/internal/vc_env_helper.bat +# post-script: "python packaging/wheel/relocate.py" +# smoke-test-script: test/smoke_test.py +# package-name: torchvision +# name: ${{ matrix.repository }} +# uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test +# with: +# repository: ${{ matrix.repository }} +# ref: "" +# test-infra-repository: alinpahontu2912/test-infra +# test-infra-ref: x64windows_test +# build-matrix: ${{ needs.generate-matrix.outputs.matrix }} +# pre-script: ${{ matrix.pre-script }} +# env-script: ${{ matrix.env-script }} +# post-script: ${{ matrix.post-script }} +# package-name: ${{ matrix.package-name }} +# smoke-test-script: ${{ matrix.smoke-test-script }} +# trigger-event: ${{ github.event_name }} name: Build Windows Wheels on: @@ -17,36 +92,15 @@ permissions: id-token: write contents: read - jobs: - build_x64: - strategy: - matrix: - python-version: ["3.12"] - include: - - repository: pytorch/vision - smoke-test-script: test/smoke_test.py - package-name: torchvision - iswinarm64: true - name: ${{ matrix.repository }}-test-x64 - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test - with: - repository: ${{ matrix.repository }} - ref: "" - test-infra-repository: alinpahontu2912/test-infra - test-infra-ref: x64windows_test - package-name: ${{ matrix.package-name }} - smoke-test-script: ${{ matrix.smoke-test-script }} - generate-matrix: - uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main with: package-type: wheel os: windows - test-infra-repository: alinpahontu2912/test-infra - test-infra-ref: x64windows_test + test-infra-repository: pytorch/test-infra + test-infra-ref: main with-xpu: enable - build: needs: generate-matrix strategy: @@ -60,16 +114,16 @@ jobs: smoke-test-script: test/smoke_test.py package-name: torchvision name: ${{ matrix.repository }} - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test + uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main with: repository: ${{ matrix.repository }} ref: "" - test-infra-repository: alinpahontu2912/test-infra - test-infra-ref: x64windows_test + test-infra-repository: pytorch/test-infra + test-infra-ref: main build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: ${{ matrix.pre-script }} env-script: ${{ matrix.env-script }} post-script: ${{ matrix.post-script }} package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} - trigger-event: ${{ github.event_name }} + trigger-event: ${{ github.event_name }} \ No newline at end of file diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 51e64d0f13f..75dcba1160f 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -1,14 +1,16 @@ -name: Build Windows X64 Torchvision Wheel Test +name: Build Windows Wheels X64 Test on: - pull_request: null + pull_request: push: branches: - nightly - main - release/* tags: - - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ + # NOTE: Binary build pipelines should only get triggered on release candidate builds + # Release candidate tags look like: v1.11.0-rc1 + - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ workflow_dispatch: permissions: @@ -16,13 +18,39 @@ permissions: contents: read jobs: - trigger-test-infra: + + generate-matrix: + uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + with: + package-type: wheel + os: windows-arm64 + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test + with-xpu: enable + + build: + needs: generate-matrix strategy: + fail-fast: false matrix: - python_version: ["3.12"] - uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test - name: Build Windows x64 Torchvision Wheel + include: + - repository: pytorch/vision + smoke-test-script: test/smoke_test.py + package-name: torchvision + python-version: ["3.12"] + architecture: 'arm64' + name: ${{ matrix.repository }} + uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: - python_version: ${{ matrix.python_version }} - repository_name: 'pytorch/vision' - repository_branch: // predefined github branch variable + repository: ${{ matrix.repository }} + ref: "" + test-infra-repository: alinpahontu2912/test-infra + test-infra-ref: x64windows_test + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + pre-script: ${{ matrix.pre-script }} + env-script: ${{ matrix.env-script }} + post-script: ${{ matrix.post-script }} + package-name: ${{ matrix.package-name }} + smoke-test-script: ${{ matrix.smoke-test-script }} + trigger-event: ${{ github.event_name }} + architecture: ${{ matrix.architecture }} From c6db743e0563111c7c4f246f4e59a8cce91eeeda Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 15:58:01 +0200 Subject: [PATCH 122/176] test aarchs list --- .github/workflows/build_wheel_windows_x64_test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 75dcba1160f..875ed2b37e5 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -37,8 +37,9 @@ jobs: - repository: pytorch/vision smoke-test-script: test/smoke_test.py package-name: torchvision + channel: "nightly" python-version: ["3.12"] - architecture: 'arm64' + architecture: ['arm64', x64] name: ${{ matrix.repository }} uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: From 5cd44064cb3d3743a011313e80515b0027584332 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 16:09:51 +0200 Subject: [PATCH 123/176] revert architecture list --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 875ed2b37e5..c3695de8039 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -39,7 +39,6 @@ jobs: package-name: torchvision channel: "nightly" python-version: ["3.12"] - architecture: ['arm64', x64] name: ${{ matrix.repository }} uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: From 3b19c7555bfbdaaeeecdddd77a1eb05170aec9d6 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 9 Apr 2025 16:11:31 +0200 Subject: [PATCH 124/176] test --- .github/workflows/build_wheel_windows_x64_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index c3695de8039..a41b05a5f35 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -39,6 +39,7 @@ jobs: package-name: torchvision channel: "nightly" python-version: ["3.12"] + architecture: "arm64" name: ${{ matrix.repository }} uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test with: From ffde59020849c75b7670a4934b3fdc335fab1445 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Apr 2025 11:27:17 +0200 Subject: [PATCH 125/176] tirgger first combined workflow --- .github/workflows/build_wheel_windows_x64_test.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index a41b05a5f35..eac6ac6dc1d 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -48,9 +48,6 @@ jobs: test-infra-repository: alinpahontu2912/test-infra test-infra-ref: x64windows_test build-matrix: ${{ needs.generate-matrix.outputs.matrix }} - pre-script: ${{ matrix.pre-script }} - env-script: ${{ matrix.env-script }} - post-script: ${{ matrix.post-script }} package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} trigger-event: ${{ github.event_name }} From bdc9bfb020f187ee93b9ee0afe032beeccba8402 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Apr 2025 11:37:29 +0200 Subject: [PATCH 126/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index eac6ac6dc1d..c04e7b5134f 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -19,6 +19,7 @@ permissions: jobs: + generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main with: From 5a2c874c064bba3f1c29cff17d4737f85a1f0d61 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Apr 2025 11:50:18 +0200 Subject: [PATCH 127/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index c04e7b5134f..eac6ac6dc1d 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -19,7 +19,6 @@ permissions: jobs: - generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main with: From bd5bb08420bc72eea56d7892cb7cef38e2fe3d90 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Apr 2025 14:21:33 +0200 Subject: [PATCH 128/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index eac6ac6dc1d..b1b7c609d12 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -18,7 +18,6 @@ permissions: contents: read jobs: - generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main with: From 63bada04ab53b53349297fbe85a441c67afba1f8 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Apr 2025 14:57:57 +0200 Subject: [PATCH 129/176] test list of python versions --- .github/workflows/build_wheel_windows_x64_test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index b1b7c609d12..a1f718b27fc 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,6 +17,7 @@ permissions: id-token: write contents: read + jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main @@ -37,7 +38,7 @@ jobs: smoke-test-script: test/smoke_test.py package-name: torchvision channel: "nightly" - python-version: ["3.12"] + python-version: ["3.12", "3.11"] architecture: "arm64" name: ${{ matrix.repository }} uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test From a8d61412482425816a5583cdc0944e73cd74a411 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Apr 2025 15:43:44 +0200 Subject: [PATCH 130/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index a1f718b27fc..edd71c98b45 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,7 +17,6 @@ permissions: id-token: write contents: read - jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From cb246d47e43a25b050efda7baf76c6eb3c300ed6 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 10 Apr 2025 16:18:27 +0200 Subject: [PATCH 131/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index edd71c98b45..f4a5048ba36 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -36,8 +36,6 @@ jobs: - repository: pytorch/vision smoke-test-script: test/smoke_test.py package-name: torchvision - channel: "nightly" - python-version: ["3.12", "3.11"] architecture: "arm64" name: ${{ matrix.repository }} uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test From 7a3552d6b59ce7debd6a0dd012e88ef8ead3460f Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 11 Apr 2025 10:46:45 +0200 Subject: [PATCH 132/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index f4a5048ba36..1e029be9a0a 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,6 +17,7 @@ permissions: id-token: write contents: read + jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From b77364c1469890ab133d93976e547b3f19e65dd1 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 11 Apr 2025 11:03:13 +0200 Subject: [PATCH 133/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 1e029be9a0a..f4a5048ba36 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,7 +17,6 @@ permissions: id-token: write contents: read - jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From e87342ddb21a1c4f7615aa8f16cc870a16225e16 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 11 Apr 2025 12:14:04 +0200 Subject: [PATCH 134/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index f4a5048ba36..1e029be9a0a 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,6 +17,7 @@ permissions: id-token: write contents: read + jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From e429a288266d112bd5c2f8b8eef5b1685c3067d7 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 11 Apr 2025 12:18:26 +0200 Subject: [PATCH 135/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 1e029be9a0a..f4a5048ba36 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,7 +17,6 @@ permissions: id-token: write contents: read - jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From 5848c2a52b6b9f9a99c7e63b416fc25974a8379e Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 11 Apr 2025 12:27:30 +0200 Subject: [PATCH 136/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index f4a5048ba36..1e029be9a0a 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,6 +17,7 @@ permissions: id-token: write contents: read + jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From ded581cad8a552c741f164c4f0e599be8a21f5e6 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 11 Apr 2025 13:14:53 +0200 Subject: [PATCH 137/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 1e029be9a0a..f4a5048ba36 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,7 +17,6 @@ permissions: id-token: write contents: read - jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From 9bf4403e414252287f3816db78a1221b500339f4 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 11 Apr 2025 13:18:34 +0200 Subject: [PATCH 138/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index f4a5048ba36..1e029be9a0a 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,6 +17,7 @@ permissions: id-token: write contents: read + jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From 5979b5d84a5b1ed5897299fe1ee31c6bf41e1f80 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 11 Apr 2025 13:39:42 +0200 Subject: [PATCH 139/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 1e029be9a0a..f4a5048ba36 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,7 +17,6 @@ permissions: id-token: write contents: read - jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From 0a1ded41fe2334b7fd64a046149a728121b84b59 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 30 Apr 2025 11:11:02 +0200 Subject: [PATCH 140/176] add pre-script for arm64 logic --- .../build_wheel_windows_x64_test.yml | 1 + packaging/pre_build_script_arm64.sh | 79 +++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 packaging/pre_build_script_arm64.sh diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index f4a5048ba36..c7be8490e24 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -35,6 +35,7 @@ jobs: include: - repository: pytorch/vision smoke-test-script: test/smoke_test.py + pre-script: packaging/pre_build_script_arm64.sh package-name: torchvision architecture: "arm64" name: ${{ matrix.repository }} diff --git a/packaging/pre_build_script_arm64.sh b/packaging/pre_build_script_arm64.sh new file mode 100644 index 00000000000..cff43e76f89 --- /dev/null +++ b/packaging/pre_build_script_arm64.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +echo "Building vision dependencies and wheel started." + +# Set environment variables +export SRC_PATH="$GITHUB_WORKSPACE/$SRC_DIR" +export CMAKE_BUILD_TYPE="$BUILD_TYPE" +export VCVARSALL_PATH="$DEPENDENCIES_DIR/VSBuildTools/VC/Auxiliary/Build/vcvarsall.bat" +export CONDA_PREFIX="$DEPENDENCIES_DIR" +export PATH="$PATH:$CONDA_PREFIX/Library/bin" +export DISTUTILS_USE_SDK=1 +export TRIPLET_FILE="triplets/x64-windows.cmake" +export PYTORCH_VERSION="$PYTORCH_VERSION" +export CHANNEL="$CHANNEL" + +echo "channel: $CHANNEL" + +# Dependencies +mkdir -p "$DOWNLOADS_DIR" +mkdir -p "$DEPENDENCIES_DIR" +echo "*" > "$DOWNLOADS_DIR/.gitignore" +echo "*" > "$DEPENDENCIES_DIR/.gitignore" + +# Install vcpkg +cd "$DOWNLOADS_DIR" || exit +git clone https://github.com/microsoft/vcpkg.git +cd vcpkg || exit +./bootstrap-vcpkg.sh + +# # Set vcpkg to only build release packages +echo "set(VCPKG_BUILD_TYPE release)" >> "$TRIPLET_FILE" + +# Install dependencies using vcpkg +./vcpkg install libjpeg-turbo:x64-windows --x-install-root="$DEPENDENCIES_DIR" +./vcpkg install libwebp:x64-windows --x-install-root="$DEPENDENCIES_DIR" +./vcpkg install libpng[tools]:x64-windows --x-install-root="$DEPENDENCIES_DIR" + +# Copy files using cp (replace robocopy) +cp "$DEPENDENCIES_DIR/x64-windows/lib/libpng16.lib" "$DEPENDENCIES_DIR/x64-windows/lib/libpng.lib" +cp "$DEPENDENCIES_DIR/x64-windows/bin/libpng16.dll" "$DEPENDENCIES_DIR/x64-windows/bin/libpng.dll" +cp "$DEPENDENCIES_DIR/x64-windows/bin/libpng16.pdb" "$DEPENDENCIES_DIR/x64-windows/bin/libpng.pdb" +mkdir -p "$DEPENDENCIES_DIR/Library/" +cp -r "$DEPENDENCIES_DIR/x64-windows/"* "$DEPENDENCIES_DIR/Library/" +cp -r "$DEPENDENCIES_DIR/Library/tools/libpng/"* "$DEPENDENCIES_DIR/Library/bin/" +cp -r "$DEPENDENCIES_DIR/Library/bin/"* "$SRC_PATH/torchvision" + +# Source directory +cd "$SRC_PATH" || exit + +# Create virtual environment +python -m pip install --upgrade pip +python -m venv .venv +echo "*" > .venv/.gitignore +source .venv/Scripts/activate + +# Install dependencies +pip install numpy==2.2.3 + +if [ "$CHANNEL" = "release" ]; then + echo "Installing latest stable version of PyTorch." + pip3 install torch +elif [ "$CHANNEL" = "test" ]; then + echo "Installing PyTorch version $PYTORCH_VERSION." + pip3 install torch=="$PYTORCH_VERSION" +else + echo "CHANNEL is not set, installing PyTorch from nightly." + pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu +fi + +# # Create wheel under dist folder +# python setup.py bdist_wheel + +# # Check if build was successful +# if [[ $? -ne 0 ]]; then +# echo "Failed on build_vision. (exit code = $?)" +# exit 1 +# fi + +echo "Dependencies install finished successfully." From 7f474f84c08aec45a9d9cc641f413656a5d0263b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 30 Apr 2025 11:22:53 +0200 Subject: [PATCH 141/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index c7be8490e24..e3947cb94fd 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,6 +17,7 @@ permissions: id-token: write contents: read + jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From 1af87a93aa039c9d554528ed2a0ac6f0fbbba995 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 30 Apr 2025 11:36:31 +0200 Subject: [PATCH 142/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index e3947cb94fd..c7be8490e24 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,7 +17,6 @@ permissions: id-token: write contents: read - jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From 5b0322f35b6be775744de49a7658e55f43a8876a Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 30 Apr 2025 11:55:34 +0200 Subject: [PATCH 143/176] retrigger test --- .github/workflows/build_wheel_windows_x64_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index c7be8490e24..e3947cb94fd 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,6 +17,7 @@ permissions: id-token: write contents: read + jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From b825844562d567f8249754a2658e20025c9e9f82 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 30 Apr 2025 13:05:45 +0200 Subject: [PATCH 144/176] add pre-script correctly --- .github/workflows/build_wheel_windows_x64_test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index e3947cb94fd..3675db09c11 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,7 +17,7 @@ permissions: id-token: write contents: read - + jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main @@ -46,6 +46,7 @@ jobs: ref: "" test-infra-repository: alinpahontu2912/test-infra test-infra-ref: x64windows_test + pre-script: ${{ matrix.pre-script }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }} package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} From b0dc4c005476f08dfdd6e0e8410c22902830d438 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 30 Apr 2025 13:15:38 +0200 Subject: [PATCH 145/176] trigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 3675db09c11..2f0b83cdfd3 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,7 +17,6 @@ permissions: id-token: write contents: read - jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From 7f3e641492699194565816219e98eccb220f5ec0 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 30 Apr 2025 13:37:37 +0200 Subject: [PATCH 146/176] retrigger workflow --- .github/workflows/build_wheel_windows_x64_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 2f0b83cdfd3..99a8df144d7 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -27,6 +27,7 @@ jobs: test-infra-ref: x64windows_test with-xpu: enable + build: needs: generate-matrix strategy: From 6264b34ae73866b88e8b913bb7aad27c22a9808a Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 30 Apr 2025 13:58:47 +0200 Subject: [PATCH 147/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 99a8df144d7..20f7f111742 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,6 +17,7 @@ permissions: id-token: write contents: read + jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main @@ -27,7 +28,7 @@ jobs: test-infra-ref: x64windows_test with-xpu: enable - + build: needs: generate-matrix strategy: From fbaa1b6a76aae811dc33be4a36d12ee0643ec5f2 Mon Sep 17 00:00:00 2001 From: Stefan-Alin Pahontu <56953855+alinpahontu2912@users.noreply.github.com> Date: Fri, 2 May 2025 11:54:09 +0200 Subject: [PATCH 148/176] retrigger --- .github/workflows/build-wheels-windows.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 2616e406f42..e6728c32c1d 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -16,7 +16,6 @@ # permissions: # id-token: write # contents: read - # jobs: # build_x64: From afcc1c3c95b053f9d5d429bd9766c77f489c8ddc Mon Sep 17 00:00:00 2001 From: Stefan-Alin Pahontu <56953855+alinpahontu2912@users.noreply.github.com> Date: Fri, 2 May 2025 12:16:09 +0200 Subject: [PATCH 149/176] retrigger --- .github/workflows/build-wheels-windows.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index e6728c32c1d..6034974fc35 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -16,7 +16,8 @@ # permissions: # id-token: write # contents: read - + + # jobs: # build_x64: # strategy: From d16e00c1bf3df60f3845098b000da5a3de847aee Mon Sep 17 00:00:00 2001 From: Stefan-Alin Pahontu <56953855+alinpahontu2912@users.noreply.github.com> Date: Fri, 2 May 2025 13:09:07 +0200 Subject: [PATCH 150/176] retrigger --- .github/workflows/build-wheels-windows.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index 6034974fc35..a7db63f7cbc 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -17,7 +17,6 @@ # id-token: write # contents: read - # jobs: # build_x64: # strategy: From 4a1e6c4a1eebb619d43ff7136f398e599ff5a890 Mon Sep 17 00:00:00 2001 From: Stefan-Alin Pahontu <56953855+alinpahontu2912@users.noreply.github.com> Date: Fri, 2 May 2025 14:05:26 +0200 Subject: [PATCH 151/176] retrigger --- .github/workflows/build-wheels-windows.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-wheels-windows.yml b/.github/workflows/build-wheels-windows.yml index a7db63f7cbc..6034974fc35 100644 --- a/.github/workflows/build-wheels-windows.yml +++ b/.github/workflows/build-wheels-windows.yml @@ -17,6 +17,7 @@ # id-token: write # contents: read + # jobs: # build_x64: # strategy: From 3bf56e3848b9a1d9627502b0bfc12ed8d1e13a0b Mon Sep 17 00:00:00 2001 From: Stefan-Alin Pahontu <56953855+alinpahontu2912@users.noreply.github.com> Date: Mon, 9 Jun 2025 15:39:03 +0300 Subject: [PATCH 152/176] test --- .github/workflows/build_wheel_windows_x64_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 20f7f111742..17490df610d 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -28,7 +28,7 @@ jobs: test-infra-ref: x64windows_test with-xpu: enable - + build: needs: generate-matrix strategy: From 2aa6f7e4fb741b7cb4a2baf2649fb3103be3adee Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 9 Jun 2025 16:11:39 +0300 Subject: [PATCH 153/176] test --- packaging/pre_build_script_arm64.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packaging/pre_build_script_arm64.sh b/packaging/pre_build_script_arm64.sh index 6b037b31d2b..7b6960cba6d 100644 --- a/packaging/pre_build_script_arm64.sh +++ b/packaging/pre_build_script_arm64.sh @@ -6,7 +6,7 @@ echo "Building vision dependencies and wheel started." export SRC_PATH="$GITHUB_WORKSPACE/$SRC_DIR" export CMAKE_BUILD_TYPE="$BUILD_TYPE" export VCVARSALL_PATH="$DEPENDENCIES_DIR/VSBuildTools/VC/Auxiliary/Build/vcvarsall.bat" -export CONDA_PREFIX="$DEPENDENCIES_DIR" +export CONDA_PREFIX="$DEPENDENCIES_DIR/Library/" export PATH="$PATH:$CONDA_PREFIX/Library/bin" export DISTUTILS_USE_SDK=1 export TRIPLET_FILE="triplets/x64-windows.cmake" @@ -27,7 +27,6 @@ git clone https://github.com/microsoft/vcpkg.git cd vcpkg || exit ./bootstrap-vcpkg.sh - # # Set vcpkg to only build release packages echo "set(VCPKG_BUILD_TYPE release)" >> "$TRIPLET_FILE" @@ -36,7 +35,7 @@ echo "set(VCPKG_BUILD_TYPE release)" >> "$TRIPLET_FILE" ./vcpkg install libwebp:x64-windows --x-install-root="$DEPENDENCIES_DIR" ./vcpkg install libpng[tools]:x64-windows --x-install-root="$DEPENDENCIES_DIR" -# Copy files using cp (replace robocopy) +# Copy files using cp cp "$DEPENDENCIES_DIR/x64-windows/lib/libpng16.lib" "$DEPENDENCIES_DIR/x64-windows/lib/libpng.lib" cp "$DEPENDENCIES_DIR/x64-windows/bin/libpng16.dll" "$DEPENDENCIES_DIR/x64-windows/bin/libpng.dll" cp "$DEPENDENCIES_DIR/x64-windows/bin/libpng16.pdb" "$DEPENDENCIES_DIR/x64-windows/bin/libpng.pdb" @@ -46,6 +45,10 @@ cp -r "$DEPENDENCIES_DIR/x64-windows/"* "$DEPENDENCIES_DIR/Library/" cp -r "$DEPENDENCIES_DIR/Library/tools/libpng/"* "$DEPENDENCIES_DIR/Library/bin/" cp -r "$DEPENDENCIES_DIR/Library/bin/"* "$SRC_PATH/torchvision" +ls -l "$DEPENDENCIES_DIR/Library/" +ls -l "$DEPENDENCIES_DIR/Library/bin/" +ls -l "$SRC_PATH/torchvision" + # Source directory cd "$SRC_PATH" || exit From 388e3d17397e6ab5798efc2f00339a553abb89a4 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 9 Jun 2025 16:43:29 +0300 Subject: [PATCH 154/176] test --- .github/workflows/build_wheel_windows_arm64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_arm64.yml b/.github/workflows/build_wheel_windows_arm64.yml index d8784dfa5f5..81a2a8a4d36 100644 --- a/.github/workflows/build_wheel_windows_arm64.yml +++ b/.github/workflows/build_wheel_windows_arm64.yml @@ -29,7 +29,7 @@ on: required: false type: string default: main - + permissions: id-token: write contents: read From d40ea4877990f085de77e1ad3a1b0529582f9655 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 9 Jun 2025 17:11:28 +0300 Subject: [PATCH 155/176] test --- .github/workflows/build_wheel_windows_arm64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_arm64.yml b/.github/workflows/build_wheel_windows_arm64.yml index 81a2a8a4d36..67ef54f4bfe 100644 --- a/.github/workflows/build_wheel_windows_arm64.yml +++ b/.github/workflows/build_wheel_windows_arm64.yml @@ -33,7 +33,7 @@ on: permissions: id-token: write contents: read - + jobs: trigger-test-infra: strategy: From 61b125bdc71d2acbbc051030b5fbb8483c377ddf Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 9 Jun 2025 17:44:06 +0300 Subject: [PATCH 156/176] test --- .github/workflows/build_wheel_windows_x64_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 17490df610d..13c261ca7ae 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -28,7 +28,7 @@ jobs: test-infra-ref: x64windows_test with-xpu: enable - + build: needs: generate-matrix strategy: From c4dfde6e23b89b55bb2c8d68c148e1e496467d35 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 10 Jun 2025 10:38:17 +0300 Subject: [PATCH 157/176] retrigger --- packaging/pre_build_script_arm64.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/packaging/pre_build_script_arm64.sh b/packaging/pre_build_script_arm64.sh index 7b6960cba6d..6c03ef72d66 100644 --- a/packaging/pre_build_script_arm64.sh +++ b/packaging/pre_build_script_arm64.sh @@ -6,8 +6,6 @@ echo "Building vision dependencies and wheel started." export SRC_PATH="$GITHUB_WORKSPACE/$SRC_DIR" export CMAKE_BUILD_TYPE="$BUILD_TYPE" export VCVARSALL_PATH="$DEPENDENCIES_DIR/VSBuildTools/VC/Auxiliary/Build/vcvarsall.bat" -export CONDA_PREFIX="$DEPENDENCIES_DIR/Library/" -export PATH="$PATH:$CONDA_PREFIX/Library/bin" export DISTUTILS_USE_SDK=1 export TRIPLET_FILE="triplets/x64-windows.cmake" export PYTORCH_VERSION="$PYTORCH_VERSION" From 0c0be281a272d23e46d09297b13bef2386a907b2 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 10 Jun 2025 11:24:48 +0300 Subject: [PATCH 158/176] retrigger --- packaging/pre_build_script_arm64.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/packaging/pre_build_script_arm64.sh b/packaging/pre_build_script_arm64.sh index 6c03ef72d66..26bb0bf6efe 100644 --- a/packaging/pre_build_script_arm64.sh +++ b/packaging/pre_build_script_arm64.sh @@ -6,7 +6,6 @@ echo "Building vision dependencies and wheel started." export SRC_PATH="$GITHUB_WORKSPACE/$SRC_DIR" export CMAKE_BUILD_TYPE="$BUILD_TYPE" export VCVARSALL_PATH="$DEPENDENCIES_DIR/VSBuildTools/VC/Auxiliary/Build/vcvarsall.bat" -export DISTUTILS_USE_SDK=1 export TRIPLET_FILE="triplets/x64-windows.cmake" export PYTORCH_VERSION="$PYTORCH_VERSION" export CHANNEL="$CHANNEL" From 2dba398e21cb9188120d0acf36fa1904d5980fb6 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 10 Jun 2025 11:55:59 +0300 Subject: [PATCH 159/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 13c261ca7ae..c46a029228b 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,7 +17,6 @@ permissions: id-token: write contents: read - jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From 3bfbc5239aafabdcbef6d9e9f24a96789d9ff635 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 10 Jun 2025 12:33:42 +0300 Subject: [PATCH 160/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index c46a029228b..13c261ca7ae 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,6 +17,7 @@ permissions: id-token: write contents: read + jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From 345018f37434b3f51406fc4889cf2973081e1546 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 10 Jun 2025 12:54:17 +0300 Subject: [PATCH 161/176] debug print --- packaging/pre_build_script_arm64.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/packaging/pre_build_script_arm64.sh b/packaging/pre_build_script_arm64.sh index 26bb0bf6efe..cd7726ddbea 100644 --- a/packaging/pre_build_script_arm64.sh +++ b/packaging/pre_build_script_arm64.sh @@ -43,6 +43,7 @@ cp -r "$DEPENDENCIES_DIR/Library/tools/libpng/"* "$DEPENDENCIES_DIR/Library/bin/ cp -r "$DEPENDENCIES_DIR/Library/bin/"* "$SRC_PATH/torchvision" ls -l "$DEPENDENCIES_DIR/Library/" +ls -l "$DEPENDENCIES_DIR/Library/include" ls -l "$DEPENDENCIES_DIR/Library/bin/" ls -l "$SRC_PATH/torchvision" From 93de16a9855aa58cae0b4e1d9a167e822206363d Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 10 Jun 2025 12:57:42 +0300 Subject: [PATCH 162/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 13c261ca7ae..92b690b3f74 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,7 +17,7 @@ permissions: id-token: write contents: read - + jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main @@ -28,7 +28,7 @@ jobs: test-infra-ref: x64windows_test with-xpu: enable - + build: needs: generate-matrix strategy: From 2f7d021faaa60852d762e46762400134cda56f6b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 10 Jun 2025 13:53:45 +0300 Subject: [PATCH 163/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 92b690b3f74..a89c5cd2b30 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -28,7 +28,7 @@ jobs: test-infra-ref: x64windows_test with-xpu: enable - + build: needs: generate-matrix strategy: From fdef4a618ad1969a3d1e619a487b6dbef1ce1ad6 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 10 Jun 2025 17:34:32 +0300 Subject: [PATCH 164/176] retrigger --- packaging/pre_build_script_arm64.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/pre_build_script_arm64.sh b/packaging/pre_build_script_arm64.sh index cd7726ddbea..6b5691b31e4 100644 --- a/packaging/pre_build_script_arm64.sh +++ b/packaging/pre_build_script_arm64.sh @@ -45,7 +45,7 @@ cp -r "$DEPENDENCIES_DIR/Library/bin/"* "$SRC_PATH/torchvision" ls -l "$DEPENDENCIES_DIR/Library/" ls -l "$DEPENDENCIES_DIR/Library/include" ls -l "$DEPENDENCIES_DIR/Library/bin/" -ls -l "$SRC_PATH/torchvision" +ls -l "$SRC_PATH" # Source directory cd "$SRC_PATH" || exit From d20a415f31f0b3307469b7a3261be6834d555e8b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 10 Jun 2025 18:26:22 +0300 Subject: [PATCH 165/176] debug --- packaging/pre_build_script_arm64.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/pre_build_script_arm64.sh b/packaging/pre_build_script_arm64.sh index 6b5691b31e4..0559958bd15 100644 --- a/packaging/pre_build_script_arm64.sh +++ b/packaging/pre_build_script_arm64.sh @@ -45,7 +45,7 @@ cp -r "$DEPENDENCIES_DIR/Library/bin/"* "$SRC_PATH/torchvision" ls -l "$DEPENDENCIES_DIR/Library/" ls -l "$DEPENDENCIES_DIR/Library/include" ls -l "$DEPENDENCIES_DIR/Library/bin/" -ls -l "$SRC_PATH" + # Source directory cd "$SRC_PATH" || exit @@ -56,6 +56,8 @@ python -m venv .venv echo "*" > .venv/.gitignore source .venv/Scripts/activate +ls -l "$SRC_PATH" + # Install dependencies pip install numpy==2.2.3 From 9689db38f5fc9cf5a42a9fcccfc65c67f057a9d0 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 10 Jun 2025 19:10:32 +0300 Subject: [PATCH 166/176] retrigger --- packaging/pre_build_script_arm64.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/pre_build_script_arm64.sh b/packaging/pre_build_script_arm64.sh index 0559958bd15..0cfefc61ef5 100644 --- a/packaging/pre_build_script_arm64.sh +++ b/packaging/pre_build_script_arm64.sh @@ -56,7 +56,8 @@ python -m venv .venv echo "*" > .venv/.gitignore source .venv/Scripts/activate -ls -l "$SRC_PATH" +ls -l "$SRC_PATH/.venv" + # Install dependencies pip install numpy==2.2.3 From d0252a0e4f488b3a39cf51052e33636da63684db Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 11 Jun 2025 10:35:02 +0300 Subject: [PATCH 167/176] debug prints --- packaging/pre_build_script_arm64.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packaging/pre_build_script_arm64.sh b/packaging/pre_build_script_arm64.sh index 0cfefc61ef5..172a97cf496 100644 --- a/packaging/pre_build_script_arm64.sh +++ b/packaging/pre_build_script_arm64.sh @@ -42,22 +42,22 @@ cp -r "$DEPENDENCIES_DIR/x64-windows/"* "$DEPENDENCIES_DIR/Library/" cp -r "$DEPENDENCIES_DIR/Library/tools/libpng/"* "$DEPENDENCIES_DIR/Library/bin/" cp -r "$DEPENDENCIES_DIR/Library/bin/"* "$SRC_PATH/torchvision" -ls -l "$DEPENDENCIES_DIR/Library/" -ls -l "$DEPENDENCIES_DIR/Library/include" -ls -l "$DEPENDENCIES_DIR/Library/bin/" - - # Source directory cd "$SRC_PATH" || exit +ls -la "$SRC_PATH" + # Create virtual environment python -m pip install --upgrade pip python -m venv .venv echo "*" > .venv/.gitignore -source .venv/Scripts/activate +source .venv/bin/activate + +which python -ls -l "$SRC_PATH/.venv" +ls -l "$SRC_PATH/.venv/" +ls -la "$SRC_PATH" # Install dependencies pip install numpy==2.2.3 From c563afe8d14aab9f8192add878251fe1e2129dd1 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 11 Jun 2025 11:01:48 +0300 Subject: [PATCH 168/176] debug --- packaging/pre_build_script_arm64.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/pre_build_script_arm64.sh b/packaging/pre_build_script_arm64.sh index 172a97cf496..7bf7f2e24d5 100644 --- a/packaging/pre_build_script_arm64.sh +++ b/packaging/pre_build_script_arm64.sh @@ -51,7 +51,7 @@ ls -la "$SRC_PATH" python -m pip install --upgrade pip python -m venv .venv echo "*" > .venv/.gitignore -source .venv/bin/activate +source .venv/Scripts/activate which python From 665ac828760cbfa6d24f03a2b3d79d31ef237571 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 11 Jun 2025 12:06:53 +0300 Subject: [PATCH 169/176] debug --- packaging/pre_build_script_arm64.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/pre_build_script_arm64.sh b/packaging/pre_build_script_arm64.sh index 7bf7f2e24d5..17c83912f8c 100644 --- a/packaging/pre_build_script_arm64.sh +++ b/packaging/pre_build_script_arm64.sh @@ -55,6 +55,8 @@ source .venv/Scripts/activate which python +pip list + ls -l "$SRC_PATH/.venv/" ls -la "$SRC_PATH" @@ -75,4 +77,6 @@ else pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu fi +pip list + echo "Dependencies install finished successfully." From a4ed01d056c16e52d3bb845d3e3a3c27c78c7e8d Mon Sep 17 00:00:00 2001 From: Stefan-Alin Pahontu <56953855+alinpahontu2912@users.noreply.github.com> Date: Mon, 16 Jun 2025 12:21:14 +0300 Subject: [PATCH 170/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index a89c5cd2b30..3675db09c11 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -28,7 +28,6 @@ jobs: test-infra-ref: x64windows_test with-xpu: enable - build: needs: generate-matrix strategy: From 2fd35609b1067e79a4b3c2dcd47d40f1221b32ae Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 16 Jun 2025 13:59:39 +0300 Subject: [PATCH 171/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index a89c5cd2b30..a60a8bab504 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -17,7 +17,6 @@ permissions: id-token: write contents: read - jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From 428c39be4a86008d9d7dd6a0eb0368928a905bf0 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 16 Jun 2025 14:13:17 +0300 Subject: [PATCH 172/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 2f0b83cdfd3..c684ea50e50 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -16,7 +16,7 @@ on: permissions: id-token: write contents: read - + jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main From 6ab68be80f6061590c6c2569039f101d96c5995b Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 16 Jun 2025 14:44:52 +0300 Subject: [PATCH 173/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index c684ea50e50..6101c1ad204 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -13,6 +13,7 @@ on: - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ workflow_dispatch: + permissions: id-token: write contents: read From d0076fbf9126fa25ff7384cc7b8f464cec26610d Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Mon, 16 Jun 2025 15:04:48 +0300 Subject: [PATCH 174/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index 6101c1ad204..c684ea50e50 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -13,7 +13,6 @@ on: - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ workflow_dispatch: - permissions: id-token: write contents: read From 99a2b45f559a6a6e1f9cebee1aa23a4fef382da2 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 17 Jun 2025 10:08:27 +0300 Subject: [PATCH 175/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index c684ea50e50..f1908094a54 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -12,7 +12,7 @@ on: # Release candidate tags look like: v1.11.0-rc1 - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ workflow_dispatch: - + permissions: id-token: write contents: read From 626141304219a092fc12afd77c5867dbf597ddc6 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Tue, 17 Jun 2025 11:21:36 +0300 Subject: [PATCH 176/176] retrigger --- .github/workflows/build_wheel_windows_x64_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheel_windows_x64_test.yml b/.github/workflows/build_wheel_windows_x64_test.yml index f1908094a54..fe89e9eebc4 100644 --- a/.github/workflows/build_wheel_windows_x64_test.yml +++ b/.github/workflows/build_wheel_windows_x64_test.yml @@ -16,7 +16,7 @@ on: permissions: id-token: write contents: read - + jobs: generate-matrix: uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main