EAS Build fails to upload with large files, and no way to ignore them

See original GitHub issue

Summary

I have an app with lots of assets; I keep the raw assets checked into version control but I process them into optimised versions before I upload run eas build.

These raw assets are pretty big. I’ve recently started being unable to build my app, because I’m getting a 400 error from the server at 2gb (I assume due to the file size but I have no way of knowing):

Compressing project files and uploading to EAS Build. Learn more
✔ Compressed project files 59s (2.1 GB)
✖ Uploading to EAS Build (2.0 GB / 2.1 GB)
    Error: Request failed: 400 (Bad Request)

If I delete these raw assets, the upload goes ahead ok:

Compressing project files and uploading to EAS Build. Learn more
✔ Compressed project files 3s (100.7 MB)
✔ Uploaded to EAS 1m 37s

I’ve tried moving the raw assets out of the directory of the expo app, but it appears expo uses .git (or some other method) to find the root of the project.

I’ve seen issues on this repo saying there is no need for ignore because the build process only bundles what is required, but this doesn’t help me.

Can we get a method of defining files to ignore when uploading? Right now I have to delete the raw assets, run the build, then revert the git changes to bring back the files 😭

What platform(s) does this occur on?

Android, iOS

SDK Version

45.0.5

Environment

expo-env-info 1.0.5 environment info: System: OS: macOS 12.4 Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.14.2 - ~/.asdf/installs/nodejs/16.14.2/bin/node Yarn: 1.22.18 - ~/.asdf/installs/nodejs/16.14.2/.npm/bin/yarn npm: 8.5.0 - ~/.asdf/plugins/nodejs/shims/npm Managers: CocoaPods: 1.11.3 - /Users/sam/.asdf/shims/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 30, 32 Build Tools: 29.0.2, 32.0.0, 32.1.0, 33.0.0 System Images: android-32 | Google APIs ARM 64 v8a, android-Tiramisu | Google Play ARM 64 v8a IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild npmPackages: expo: ^45.0.5 => 45.0.5 react: 17.0.2 => 17.0.2 react-dom: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-web: 0.17.7 => 0.17.7 npmGlobalPackages: eas-cli: 2.1.0 expo-cli: 6.0.5 Expo Workflow: managed

Minimal reproducible example

Put enough files into a project to get the uploaded size over 2gb. Happy to give more info if needed.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
samtgarsoncommented, Sep 14, 2022

I honestly had no idea that existed, sorry! I did search around the docs and GH issues and didn’t find anything, so some extra mentions either in the CLI or in the docs would be awesome.

Thanks for the quick reply 🙌

1reaction
brentvatnecommented, Sep 14, 2022

Compressing project files and uploading to EAS Build. Learn more

the “Learn more” text links out to the same page 😃 but it’s not always obvious so we could be more clear in cases where project archives are very large.

@szdziedzic - great, I created a task to track that internally on linear 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting build errors and crashes - Expo Documentation
This particular error means that the app is importing ./src/Routes and it is not found. The cause could be that the filename case...
Read more >
EAS on react-native non-expo app · Issue #1037 - GitHub
eas -build.gradle is responsible for injecting keystore into your android config, so it is necessary. The easiest way to fix that is to...
Read more >
Eas build brokes the app, when classic expo build works just ...
In my case, if an environment variable was missing on first screen the app would crash. The problem was that I had my...
Read more >
Reducing App Size | Voters - Expo - Canny
I just wanted to give "enableDangerousExperimentalLeanBuilds" : true a shot to see how much it cuts from the size, but my apk build...
Read more >
Building an Expo App with Native Code Using EAS Build
This walkthrough shows you how to build an Expo App that includes native code, using EAS Build.We'll make a dev app for iOS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found