chore(infra): bootstrap template sync-dirs + retarget to store5Migration - #2681
Conversation
Sync infrastructure files updated from upstream template (single source of truth), as merged in openMF/kmp-project-template#158: - .github/workflows/sync-dirs.yaml — add fastlane-config to DIRS; add exclusions for cmp-desktop/build.gradle.kts, fastlane-config configs, .github/workflows/sync-dirs.yaml (self-preservation), and build-logic/convention/src/main/kotlin/local (consumer flavor extension point). Drop trailing whitespace. - sync-dirs.sh — mirror the same exclusion contract with explicit :dir / :file type tags. - .gitignore — add secrets.env + secrets/ entries (referenced by keystore-manager.sh and by the workflow's root EXCLUSIONS). Unblocks the first GitHub-Action sync run that will pull core-base/store, core-base/ui, build-logic, and the rest of the template infra into this repo — preserving consumer-branded Android/iOS resources via the new exclusion contract. Part of the Store5 template-adoption epic; full plan at plan-layer/project-plans/mifos-x/mifos-x-field-officer-app/active/store5-adoption/.
…ion branch Field-officer's epic uses store5Migration as the integration branch for all phase PRs (Phase A bootstrap, Phase B core/store seam, Phase C feature waves, Phase D cleanup). Final merge to development happens only after Phase D acceptance. Updates to .github/workflows/sync-dirs.yaml (consumer-side customization preserved across future template syncs by the workflow file's own self-exclusion contract): - ref: dev -> ref: store5Migration (line 26) - git checkout dev -> git checkout store5Migration (line 199) - base: dev -> base: store5Migration (line 311) Upstream branch (template) stays at upstream/dev — template's default branch is unchanged. Only the consumer-side ref / PR base change.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
2ac2fdc to
e03096f
Compare
|



Summary
Bootstrap field-officer's infra-sync mechanism by adopting the latest
kmp-project-templatesync workflow (postopenMF/kmp-project-template#158) and retargeting the consumer-side ref / PR base fromdev→store5Migrationso the epic's integration branch is the merge target for every subsequent sync.This is the prerequisite for triggering the first GitHub-Action sync run, which will open a separate PR titled "chore: Sync directories and files from upstream" against
store5Migrationwith the actual infra payload —core-base/store,core-base/ui,build-logic/convention,cmp-android/srcnon-branded structure,cmp-ios/iosApp,fastlane-config,scripts, etc.Changes
.github/workflows/sync-dirs.yamlfastlane-configto DIRS, adds workflow self-overwrite guard exclusion, addscmp-desktop/build.gradle.ktsexclusion, addsbuild-logic/convention/src/main/kotlin/localflavor-extension exclusion, drops trailing whitespace). Three additional edits retargetref: dev→ref: store5Migration,git checkout dev→git checkout store5Migration,base: dev→base: store5Migration.sync-dirs.sh:dir/:filetype tags. (Note: local script's hardcodedBASE_BRANCH="dev"is a known mismatch with field-officer'sdevelopmentdefault; we use the workflow, not the local script, for syncs going forward.).gitignoresecrets.envandsecrets/(referenced bykeystore-manager.shand by the workflow's root EXCLUSIONS list).Integration-branch model
All sub-phase PRs of the Store5-adoption epic target
store5MigrationonopenMF/mifos-x-field-officer-app:The final merge
store5Migration→developmenthappens only after Phase D's acceptance gate is green.Next step (post-merge)
Once this PR is merged into
store5Migration, trigger the sync workflow on openMF:The workflow will open a second PR with the actual infra payload, also targeting
store5Migration.Test plan
gh workflow list -R openMF/mifos-x-field-officer-appshows "Sync CMP Directories" once this is mergedstore5Migrationopens a sync PR (no payload — file additions only, no breaking changes to existing source)src/main/res,google-services.json,Assets.xcassets, etc. unchanged)Related
openMF/kmp-project-template#158(merged 2026-05-21)