Interview Prep/CI/CD/Secrets, Security and Pipeline Performance

CI pipeline is slow: checkout takes 4 minutes.

AdvancedTroubleshootingSecrets, Security and Pipeline Performance
Answer

Likely causes → Huge repo, full history, LFS objects, submodules.

Diagnose → Time the checkout step; git count-objects -vH.

Fix → Shallow clone, sparse checkout, partial clone (--filter=blob:none), skip LFS where unneeded, use a cached reference clone.

Prevent → Repository hygiene and git gc / large file policy.

All CI/CD questions

More on Secrets, Security and Pipeline Performance