Engineering Practices
- May 20, 2025
- 9 min read
TDD, DevSecOps, and Clean Code—How PT CPI Delivers on Google Cloud
Test-driven development, shift-left security, and maintainable engineering are not slogans at PT Cloud Platform Indonesia—they are how we build client platforms and internal products like Meta-dex-bot.
Executive summary: Enterprise and FinTech teams rarely fail because they lack tools—they fail because delivery habits do not scale: untested changes, security findings discovered late, and code that only one engineer can safely modify.…
Enterprise and FinTech teams rarely fail because they lack tools—they fail because delivery habits do not scale: untested changes, security findings discovered late, and code that only one engineer can safely modify. At PT Cloud Platform Indonesia (PT CPI), we treat test-driven development (TDD), DevSecOps, and clean code as one integrated discipline that runs through every practice—from GCP landing zones to data pipelines built with Polars and Python.
Who should read this
| Role | Why read this |
|---|---|
| CEO / COO | Cloud investment decisions and evidence of delivery discipline |
| CTO / Head of Engineering | Architecture patterns, pipelines, and adoptable quality gates |
| Engineering & Platform | Technical detail, trade-offs, and operational practice |
Why delivery habits fail to scale
Test-driven development means writing a failing test first, implementing the smallest change that passes, then refactoring with confidence. On this website and in client repositories we use automated checks (TypeScript strict mode, astro check, formatting gates, and growing Vitest coverage for shared utilities) so regressions surface in minutes, not after a production deploy. TDD is especially valuable for locale routing, billing allocation logic, trading adapters, and data transforms where edge cases are expensive to debug manually.
Test-driven development in practice
DevSecOps extends TDD into the supply chain. As partners for Snyk, GitLab, and GitHub, we wire SAST, SCA, container scanning, and IaC analysis into pull requests on GCP—Terraform, OpenTofu, Crossplane manifests, Kubernetes policies, and application code reviewed together. Policy gates block critical issues; warnings route to owners with SLAs. SBOM generation and GitOps promotion (Argo CD, Flux CD) give auditors evidence that security and delivery share the same pipeline—not separate, conflicting backlogs.
DevSecOps in the supply chain
Clean code is how we keep velocity after the first release. We favor small modules, explicit types, meaningful names, and architecture decision records (ADRs) over clever abstractions. Go, Rust, and TypeScript with Effect appear in our stack because they make invalid states harder to represent; Python and Polars power data engineering with readable, testable transforms. Comments explain business rules auditors care about; the code itself explains structure.
Clean code after the first release
These practices show up in our internal R&D as well: Meta-dex-bot and Meta-Equity-bot exercise low-latency patterns with testable components; Meta-content-factory applies the same CI discipline to AI-assisted workflows; our Indonesian translation initiative for Rust, Go, TypeScript, and Effect is reviewed for technical accuracy before publication.
Internal R&D on the same discipline
For regulated clients we map engineering habits to controls: who approves exceptions, how long critical vulnerabilities may remain open, which tests must pass before production, and how runbooks tie to monitored SLOs. FinOps and platform engineering benefit too—Infracost in CI and unit-tested allocation rules prevent cost surprises that no dashboard can explain after the fact.
Mapping habits to controls
If you are strengthening SDLC maturity on GCP, start with one service team and one golden pipeline: TDD for domain logic, DevSecOps gates in CI, and clean-code reviews backed by linters and architectural principles. PT CPI can assess your current state, implement tooling, and enable your developers—so practices outlive the engagement.
Conclusion and next steps
Explore our DevSecOps service, modern engineering stack, and blog articles on landing zones and FinOps—or contact PT CPI to schedule an architecture and SDLC review.