Skip to content

Refactor DownloadFileWithBackup to a freestanding function#2695

Merged
rmuthiah merged 1 commit into
google:mainfrom
Databean:refactor-download-file-with-backup
Jun 12, 2026
Merged

Refactor DownloadFileWithBackup to a freestanding function#2695
rmuthiah merged 1 commit into
google:mainfrom
Databean:refactor-download-file-with-backup

Conversation

@Databean

Copy link
Copy Markdown
Member

This makes the BuildApi interface smaller, reducing the burden on interface implementations. The extracted logic is also now shared between all implementations.

  • Remove DownloadFileWithBackup from BuildApi interface.
  • Implement it as a freestanding function accepting BuildApi& in build_api.cpp.
  • Remove implementations from AndroidBuildApi and CachingBuildApi.
  • Add unit tests for the new freestanding function.

Assisted-by: Jetski:Gemini Next

@Databean Databean added the kokoro:run Run e2e tests. label Jun 11, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Jun 11, 2026
- Remove DownloadFileWithBackup from BuildApi interface.
- Implement it as a freestanding function accepting BuildApi& in build_api.cpp.
- Remove implementations from AndroidBuildApi and CachingBuildApi.
- Add unit tests for the new freestanding function.

Assisted-by: Jetski:Gemini Next
@Databean Databean force-pushed the refactor-download-file-with-backup branch from 7bfdfc1 to 4a9577f Compare June 11, 2026 17:38
@Databean Databean added the kokoro:run Run e2e tests. label Jun 11, 2026
@Databean Databean requested a review from jemoreira June 11, 2026 18:43
@Databean

Copy link
Copy Markdown
Member Author

Thanks for reviewing!

@Databean Databean added this pull request to the merge queue Jun 11, 2026
@rmuthiah rmuthiah removed this pull request from the merge queue due to a manual request Jun 11, 2026
@rmuthiah rmuthiah added this pull request to the merge queue Jun 12, 2026
Merged via the queue into google:main with commit e76cc45 Jun 12, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kokoro:run Run e2e tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants