Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creation of release apk / bundle using circleCI fails due to Memory limit being exceeded #1528

Closed
himeshr opened this issue Oct 1, 2024 · 3 comments
Assignees

Comments

@himeshr
Copy link
Contributor

himeshr commented Oct 1, 2024

Motivation

Circle CI allows free tier usage of resource_class "large" for all the builds.
Since yesterday, we seemed to start hitting the memory limit of 8gb during our automated staging apk builds.
This prevented us from starting testing for 10.0.1 release.

Possible solution paths

This leaves us with 2 options:

  • Buy circle CI paid subscription
  • reduce memory usage during apk/bundle build

Acceptance Criteria

Ensure that CircleCI automated build of release apk/bundle succeeds always without facing memory limit issues.

@himeshr himeshr self-assigned this Oct 1, 2024
@github-project-automation github-project-automation bot moved this to New Issues in Avni Product Oct 1, 2024
@himeshr himeshr moved this from New Issues to Code Review Ready in Avni Product Oct 1, 2024
@himeshr
Copy link
Contributor Author

himeshr commented Oct 1, 2024

As a fix to quickly generate APKs for testing and release purposes, did the following changes:

  • Disabled 'org.gradle.daemon'
  • configured circle ci gradleOpts to have "-Dkotlin.compiler.execution.strategy=in-process" set, to avoid separate daemon being spawned

@himeshr
Copy link
Contributor Author

himeshr commented Oct 1, 2024

Commits related to this card

073abf1
a398f2c
089789d
c2ef4c4

@himeshr
Copy link
Contributor Author

himeshr commented Oct 1, 2024

@1t5j0y 1t5j0y moved this from In Code Review to Done in Avni Product Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants