FINERACT-2421: Optimize github actions workflow#5799
FINERACT-2421: Optimize github actions workflow#5799adamsaghy wants to merge 1 commit intoapache:developfrom
Conversation
201d575 to
2d12d94
Compare
|
|
||
| jobs: | ||
| test: | ||
| if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} |
There was a problem hiding this comment.
I cant seem to agree that we should add this here on existing checks
There was a problem hiding this comment.
This is needed since all dependent workflow must wait on build-core to be finished.
There was a problem hiding this comment.
Please confirm me What am i seeing that you are trying to cache the Tests on Push, What would happen if Someone does some major work (new feature or changes) in their forked Branch and then raise PR like every PR. Will that work on that. Im seeing it can fail on forked repo with new features. LIke we are not caching e2e tests from forked repo due to security reason.
There was a problem hiding this comment.
I am not caching on push anything.
Build-core compiles and generates required files. Once everything built, we are storing in cache the built files.
All workflow depends on build-core so that run first. Once it's finished, we are fetching the built files (compiles classes, generated fineract-client, etc.) from the cache and run the tests, build docker image, etc.
Why the change?
- All workflow was independent and standalone which means ALL of them were compiling and regenerating files which is unnecessary and led to java heap space issues.
There was a problem hiding this comment.
Ok, So is it like this?
1st -> Build Core will run it will Cache the Compiled files.
2nd -> Other tests will run taking on build files (Cucumber e2e test. and other tests)
There was a problem hiding this comment.
Hold it, i am facing some issues when i have excluded buildJavaSdk task
There was a problem hiding this comment.
ok, Ping me, when i should rebase
There was a problem hiding this comment.
@adamsaghy I have rebased my PRs against your branch you can check PR run on respective PR and
On Push workflow on https://github.com/Aman-Mittal/fineract/actions/workflows/full-build-ci.yml
a2c1dca to
416b469
Compare
|
Will try to review it by eod.
…On Fri, 24 Apr, 2026, 1:41 pm Adam Saghy, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In .github/workflows/build-mariadb.yml
<#5799?email_source=notifications&email_token=AHV6TA56O5T4V54TXE4U4R34XMOR3A5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTIMJWHA4TKNZVGM42M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJL3QOJPXEZLWNFSXOX3DNRUWG2Y#discussion_r3136341803>
:
>
permissions:
contents: read
jobs:
test:
+ if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
@Aman-Mittal <https://github.com/Aman-Mittal> Let me know if you need
more information.
—
Reply to this email directly, view it on GitHub
<#5799?email_source=notifications&email_token=AHV6TA7WHNEDO2XSXAVPWGD4XMOR3A5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTIMJWHA4TKNZVGM42M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJPLQOJPXEZLWNFSXOX3ON52GSZTJMNQXI2LPNZZV6Y3MNFRWW#discussion_r3136341803>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHV6TA7KKTC4DC2FRRGU7DD4XMOR3AVCNFSM6AAAAACYDZ6B4CVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHM2DCNRYHE2TONJTHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
3c4a544 to
ff11734
Compare
ff11734 to
80db9eb
Compare
|
All failed runs seems to giving cache miss error |
| **/build/resources | ||
| **/build/tmp | ||
| key: fineract-compiled-${{ runner.os }}-${{ github.run_id }}-${{ github.run_attempt }} | ||
| fail-on-cache-miss: true |
There was a problem hiding this comment.
@adamsaghy Can you reconsider on fail-oncach-miss part - I done a little digging myself it seems that Apache Fineract Repository have only 10 GB of cache limit which can cause cache eviction
|
@adamsaghy It seems The caches generated by your CI generating is ranging from 400MB to 900MB each which will likely overload cache of this repo at scale. |
Description
Describe the changes made and why they were made. (Ignore if these details are present on the associated Apache Fineract JIRA ticket.)
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
Your assigned reviewer(s) will follow our guidelines for code reviews.