pytorch / executorch

On-device AI across mobile, embedded and edge for PyTorch
https://pytorch.org/executorch/
Other
1.87k stars 307 forks source link

Unable to deploy artifacts to Device Farm #5048

Closed guangy10 closed 4 weeks ago

guangy10 commented 4 weeks ago

🐛 Describe the bug

The issue is noted from android-perf workflow: https://github.com/pytorch/executorch/actions/runs/10688054393/job/29628676113

Though upload-android-apps is finished successfully, when trying to fetch the apps in benchmark-on-device, it shows a unload failure:

Exception: Couldn't upload ci.apk: {'upload': {'arn': 'arn:aws:devicefarm:us-west-2:308535385114:upload:02a2cf0f-6d9b-45ee-ba1a-a086587469e6/3844b584-45a8-4505-8542-648fb984e21e', 'name': 'mobile-job-android-10688054393-1-2024-09-03-gjnoeVEt_ci.apk', 'created': datetime.datetime(2024, 9, 3, 18, 29, 22, 795000, tzinfo=tzlocal()), 'type': 'ANDROID_APP', 'status': 'FAILED', 'url': 'https://prod-us-west-2-uploads.s3-us-west-2.amazonaws.com/arn%3Aaws%3Adevicefarm%3Aus-west-2%3A308535385114%3Aproject%3A02a2cf0f-6d9b-45ee-ba1a-a086587469e6/uploads/arn%3Aaws%3Adevicefarm%3Aus-west-2%3A308535385114%3Aupload%3A02a2cf0f-6d9b-45ee-ba1a-a086587469e6/3844b584-45a8-4505-8542-648fb984e21e/mobile-job-android-10688054393-1-2024-09-03-gjnoeVEt_ci.apk?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240903T182928Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Credential=AKIAUJHLTYS5AWNTRO6L%2F20240903%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Signature=b0044cde3becd4f3ecf77c0b21bd77bd7568ed5b6a915a3e77bee547b3e1cbbb', 'metadata': '{"errorMessageUrl":"https://docs.aws.amazon.com/console/devicefarm/ANDROID_APP_UNZIP_FAILED","errorMessage":"We could not unzip your APK file. Please verify that the file is valid and try again.","errorCode":"ANDROID_APP_UNZIP_FAILED"}'

By checking URls to the app (https://github.com/pytorch/executorch/actions/runs/10688054393/job/29628676113#step:9:46), it seem all URLs are invalid.

Models and test-spec are downloadable w/o any issue. It turns out just the links to the app artifacts are invalid.

Versions

from ET main.

guangy10 commented 4 weeks ago

@huydhn @kit1980 can you take a look this issue?