Skip to content

feat: add shallow cloning for Git materials - #6991

Closed
sagarkt wants to merge 1 commit into
devtron-labs:mainfrom
sagarkt:ao/devtron-64/monorepo-support
Closed

feat: add shallow cloning for Git materials#6991
sagarkt wants to merge 1 commit into
devtron-labs:mainfrom
sagarkt:ao/devtron-64/monorepo-support

Conversation

@sagarkt

@sagarkt sagarkt commented Jul 16, 2026

Copy link
Copy Markdown

Summary

  • add a persisted per-material FULL or SHALLOW cloning mode, defaulting existing and omitted values to FULL
  • propagate the selected mode to git-sensor, CI builds, pre-deployment stages, app cloning, and material history
  • serialize Git material creation per app and make exact retries idempotent so slow monorepo imports do not create duplicate sources
  • document the new API field and database migration

Testing

  • focused Git material default and clone-mode unit tests
  • focused mixed-mode git-sensor batching and retry identity unit tests
  • compile-only checks for pipeline history, build trigger, pre-stage trigger, REST handler, and app clone packages
  • OpenAPI YAML parse and git diff check

Addresses the shallow-cloning and slow-import portions of #6344 and the duplicate-source race described in #6158.

@bito-code-review

Copy link
Copy Markdown

Bito Review Skipped - Source Branch Not Found

Bito didn't review this change because the pull request is no longer valid. It may have been merged, or the source/target branch may no longer exist.

@sagarkt sagarkt closed this Jul 16, 2026
@sagarkt
sagarkt deleted the ao/devtron-64/monorepo-support branch July 16, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant