Skip to content

Commit 181c8ab

Browse files
authored
Merge branch 'pytorch:main' into add-e2etest-for-devtools
2 parents e449350 + c9c5481 commit 181c8ab

File tree

274 files changed

+5867
-3877
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+5867
-3877
lines changed

Diff for: .ci/docker/ci_commit_pins/pytorch.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7ae0ce6360b6e4f944906502d20da24c04debee5
1+
59d5cf083b4f860dea76fe8936076177f9367f10

Diff for: .ci/scripts/build_android_instrumentation.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ if [[ -z "${PYTHON_EXECUTABLE:-}" ]]; then
1212
fi
1313
which "${PYTHON_EXECUTABLE}"
1414

15-
mkdir -p "${BUILD_AAR_DIR}"/executorch_android/src/androidTest/resources
16-
cp extension/module/test/resources/add.pte "${BUILD_AAR_DIR}"/executorch_android/src/androidTest/resources
15+
mkdir -p extension/android/executorch_android/src/androidTest/resources
16+
cp extension/module/test/resources/add.pte extension/android/executorch_android/src/androidTest/resources
1717

18-
pushd "${BUILD_AAR_DIR}"
18+
pushd extension/android
1919
ANDROID_HOME="${ANDROID_SDK:-/opt/android/sdk}" ./gradlew :executorch_android:testDebugUnitTest
2020
ANDROID_HOME="${ANDROID_SDK:-/opt/android/sdk}" ./gradlew :executorch_android:assembleAndroidTest
2121
popd

Diff for: .ci/scripts/test_ios_ci.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
set -e
99

10-
APP_PATH="examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo"
10+
APP_PATH="executorch-examples/apple/ExecuTorchDemo/ExecuTorchDemo"
1111
MODEL_NAME="mv3"
1212
SIMULATOR_NAME="executorch"
1313

@@ -34,6 +34,10 @@ say() {
3434
echo -e "\033[1m\n\t** $1 **\n\033[0m"
3535
}
3636

37+
say "Cloning the Demo App"
38+
39+
git clone --depth 1 https://github.com/pytorch-labs/executorch-examples.git
40+
3741
say "Installing CoreML Backend Requirements"
3842

3943
./backends/apple/coreml/scripts/install_requirements.sh

Diff for: .github/release.yml

+43-18
Original file line numberDiff line numberDiff line change
@@ -15,57 +15,82 @@ changelog:
1515
- title: ARM
1616
labels:
1717
- "release notes: arm"
18+
- "module: arm"
19+
- "partner: arm"
1820
- title: NXP
19-
labels:
21+
labels:
2022
- "release notes: nxp"
23+
- "module: nxp"
2124
- title: Exir
22-
labels:
25+
labels:
2326
- "release notes: exir"
27+
- "module: exir"
2428
- title: Misc
25-
labels:
29+
labels:
2630
- "release notes: misc"
2731
- title: Apple
28-
labels:
32+
labels:
2933
- "release notes: apple"
34+
- "module: coreml"
35+
- "module: mps"
36+
- title: Android
37+
labels:
38+
- "module: android"
39+
- title: IOS
40+
labels:
41+
- "module: ios"
3042
- title: Build
31-
labels:
43+
labels:
3244
- "release notes: build"
3345
- title: Vulkan
34-
labels:
46+
labels:
3547
- "release notes: vulkan"
48+
- "module: vulkan"
3649
- title: Cadence
37-
labels:
50+
labels:
3851
- "release notes: cadence"
52+
- "module: cadence"
3953
- title: Runtime
40-
labels:
54+
labels:
4155
- "release notes: runtime"
56+
- "module: runtime"
4257
- title: XNNPACK
43-
labels:
58+
labels:
4459
- "release notes: xnnpack"
60+
- "module: xnnpack"
4561
- title: Devtools
46-
labels:
62+
labels:
4763
- "release notes: devtools"
64+
- "module: devtools"
4865
- title: Examples
49-
labels:
66+
labels:
5067
- "release notes: examples"
68+
- title: LLM
69+
labels:
70+
- "module: llm"
5171
- title: Mediatek
52-
labels:
72+
labels:
5373
- "release notes: mediatek"
74+
- "partner: mediatek"
5475
- title: Openvino
55-
labels:
76+
labels:
5677
- "release notes: openvino"
5778
- title: Qualcomm
58-
labels:
79+
labels:
5980
- "release notes: qualcomm"
81+
- "partner: qualcomm"
82+
- "module: qnn"
6083
- title: Training
61-
labels:
84+
labels:
6285
- "release notes: training"
86+
- "module: training"
6387
- title: Quantization
64-
labels:
88+
labels:
6589
- "release notes: quantization"
6690
- title: Ops & kernels
67-
labels:
68-
- "release notes: ops & kernels"
91+
labels:
92+
- "release notes: ops & kernels"
93+
- "module: kernels"
6994
- title: Other Changes
7095
labels:
7196
- "*"

Diff for: .github/workflows/_android.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
3838
mkdir -p ${ARTIFACTS_DIR_NAME}/library_test_dir
3939
bash .ci/scripts/build_android_instrumentation.sh
40-
cp ${BUILD_AAR_DIR}/executorch_android/build/outputs/apk/androidTest/debug/executorch_android-debug-androidTest.apk "${ARTIFACTS_DIR_NAME}/library_test_dir"
40+
cp extension/android/executorch_android/build/outputs/apk/androidTest/debug/executorch_android-debug-androidTest.apk "${ARTIFACTS_DIR_NAME}/library_test_dir"
4141
4242
mkdir -p ${ARTIFACTS_DIR_NAME}/fp32-xnnpack-custom
4343
bash examples/models/llama/install_requirements.sh

Diff for: .github/workflows/android-release-artifacts.yml

+24-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: Version name to be uploaded for AAR release
88
required: false
99
type: string
10+
upload_to_maven:
11+
description: Upload the AAR to maven staging repository
12+
required: false
13+
type: boolean
1014

1115
concurrency:
1216
group: ${{ github.workflow }}-${{ github.ref }}
@@ -31,11 +35,14 @@ jobs:
3135
build-aar:
3236
name: build-aar
3337
needs: check-if-aar-exists
34-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
38+
if: ${{ !github.event.pull_request.head.repo.fork }}
39+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
40+
secrets: inherit
3541
permissions:
3642
id-token: write
3743
contents: read
3844
with:
45+
secrets-env: EXECUTORCH_MAVEN_SIGNING_KEYID EXECUTORCH_MAVEN_SIGNING_PASSWORD EXECUTORCH_MAVEN_CENTRAL_PASSWORD EXECUTORCH_MAVEN_CENTRAL_USERNAME EXECUTORCH_MAVEN_SIGNING_GPG_KEY_CONTENTS
3946
runner: linux.2xlarge
4047
docker-image: executorch-ubuntu-22.04-clang12-android
4148
submodules: 'true'
@@ -52,6 +59,16 @@ jobs:
5259
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool buck2
5360
export ARTIFACTS_DIR_NAME=artifacts-to-be-uploaded
5461
62+
mkdir -p ~/.gradle
63+
touch ~/.gradle/gradle.properties
64+
echo "signing.keyId=${SECRET_EXECUTORCH_MAVEN_SIGNING_KEYID}" >> ~/.gradle/gradle.properties
65+
echo "signing.password=${SECRET_EXECUTORCH_MAVEN_SIGNING_PASSWORD}" >> ~/.gradle/gradle.properties
66+
echo "mavenCentralUsername=${SECRET_EXECUTORCH_MAVEN_CENTRAL_USERNAME}" >> ~/.gradle/gradle.properties
67+
echo "mavenCentralPassword=${SECRET_EXECUTORCH_MAVEN_CENTRAL_PASSWORD}" >> ~/.gradle/gradle.properties
68+
echo "signing.secretKeyRingFile=/tmp/secring.gpg" >> ~/.gradle/gradle.properties
69+
70+
echo -n "$SECRET_EXECUTORCH_MAVEN_SIGNING_GPG_KEY_CONTENTS" | base64 -d > /tmp/secring.gpg
71+
5572
# Build AAR Package
5673
mkdir aar-out
5774
export BUILD_AAR_DIR=aar-out
@@ -61,6 +78,12 @@ jobs:
6178
6279
shasum -a 256 "${ARTIFACTS_DIR_NAME}/executorch.aar"
6380
81+
# Publish to maven staging
82+
UPLOAD_TO_MAVEN="${{ inputs.upload_to_maven }}"
83+
if [[ "$UPLOAD_TO_MAVEN" == "true" ]]; then
84+
(cd aar-out; ANDROID_HOME="${ANDROID_SDK:-/opt/android/sdk}" ./gradlew :executorch_android:publishToMavenCentral)
85+
fi
86+
6487
upload-release-aar:
6588
name: upload-release-aar
6689
needs: build-aar

0 commit comments

Comments
 (0)