Local Plan Says No Changes, CI Wants to Rebuild 37 Resources: 5 Gates for Pinning Terraform Dependency Versions

Overview On a Thursday afternoon in the second half of last year, I was doing something deeply boring at my desk: renaming a variable in an old module. It used to be name, which is too vague; name_prefix says what it means. Three lines of HCL. I ran terraform plan locally three times and got No changes. Your infrastructure matches the configuration. every single time. I opened the PR, merged it, and the CI plan job failed....

November 13, 2026 · 28 mins · 5817 words · Xu Baojin

63% of Red Builds Were False Alarms: 6 Engineering Decisions for Detecting, Quarantining, and Governing Flaky Tests in CI

Overview At 2 AM, the main branch of an e-commerce platform went red again. The on-call developer’s reaction was well-practiced: open the pipeline, glance at the failing test case name, skip the logs, and post “just rerun it” in the chat. Ten minutes later: green. Merge continues. This is not an isolated case. Whenever I review CI health for clients, I run into the same phenomenon almost every time: a team’s first reaction to a red build is not “what broke?...

November 6, 2026 · 38 mins · 7915 words · Xu Baojin

Rollback Made It Worse: 5-Layer CI/CD Auto-Rollback Architecture and 4 Production Pitfalls

Overview 2:47 AM, the alert chat exploded. A payment service’s P99 latency spiked from 80ms to 1200ms after a new version went live. The on-call engineer hit rollback immediately. kubectl rollout undo executed successfully, old version Pods came back up, traffic shifted back. The result? The service went completely down — because the new version had run a database migration script that changed the status column in the orders table from varchar(20) to tinyint....

October 3, 2026 · 22 mins · 4596 words · Xu Baojin

Stop Configuring Servers by Hand: A Complete Guide to Packer Golden Image Pipelines from Build to Security Scanning

Overview 2 AM, alert fires. Investigation reveals a server running an outdated OpenSSL version with known vulnerabilities. Security team asks: how many more machines are in the same state? You don’t have an answer. That’s the cost of configuring servers manually. Each machine gets its own apt install, producing environments that drift apart. Someone forgot a patch, someone installed extra packages, someone changed a kernel parameter without documenting it. When things break, you realize—you have no idea how many “configuration drift” variants are running in production....

September 29, 2026 · 25 mins · 5210 words · Xu Baojin

Pushing the Same Image 3 Times to 3 Environments? CI/CD Artifact Promotion Pipeline Layered Design and 4 Production Decisions

Overview You’ve probably seen this release workflow: a developer builds a Docker image, tags it as dev, and pushes it to the dev registry. After testing passes, they re-tag it as staging and push it again. Finally, for production, they tag it as prod and push a third time. Same image, built once, pushed three times with three different tags. This seems fine — until one day you discover that the image validated in staging and the image running in prod are not the same artifact at all....

September 19, 2026 · 24 mins · 5110 words · Xu Baojin

False Positive Rate from 70% to 5%: A Four-Layer Security Gate Design and False Positive Management in CI/CD

Overview Plug a SAST tool into your Jenkins pipeline, let the scan finish with zero alerts, then tell your boss “we’ve adopted DevSecOps” — I’ve seen this playbook too many times. During a Level 2 cybersecurity protection audit for a ride-hailing project, the client’s security team required us to integrate security scanning into our CI/CD pipeline. The first version was textbook standard: SonarQube for code scanning + Trivy for image scanning, with the gate set to “block Critical....

August 18, 2026 · 25 mins · 5153 words · ABao

Starting from Docker Machine Deprecation: 7 Production Decisions for GitLab CI Runner Elastic Architecture and Cache Governance

Overview 1 AM. You get an alert: GitLab CI pipeline queue has 47 pending jobs. The dev chat explodes—“code pushed 40 minutes ago, still not running"“is the Runner down?““just add more machines!” You check the console: all 3 Runners are at capacity, each running 10 concurrent jobs, 30 slots fully occupied. Add machines? Docker Machine executor needs 3 minutes to spin up a new EC2, then another 2 minutes to become Ready....

August 13, 2026 · 17 mins · 3581 words · ABao

Don't Let Jenkins Dictate Your Release Cadence: Architecture Decisions and Lessons from Building a Go DAG Scheduler Engine

Overview 2 AM. A ride-hailing platform’s release window just opened. Jenkins Master suddenly hits CPU 100%. The build queue backs up with 200+ tasks. The entire deployment pipeline is frozen. The ops team spent 40 minutes finding the root cause: a legacy project’s Git repo had 15GB of binary files stuffed in it. A single clone took 20 minutes, exhausting all of Master’s thread pool. This isn’t an isolated case. Jenkins is a fine CI tool, but when you have 120+ microservices with tangled deployment dependencies and need fine-grained control over concurrency and rollback ordering, Jenkins’s Stage model starts to crack....

August 4, 2026 · 26 mins · 5482 words · ABao

CI/CD Deployment Speed Optimization in Practice: From 90 Minutes to 5 Minutes

Overview You have probably experienced this scenario: a developer commits one line of code, CI runs for 40 minutes, CD deployment takes another 20. You come back after two cups of coffee only to find the build failed—time to start over. By the end of the day, three hours gone just waiting on the pipeline. This is not an isolated case. Among the teams I have worked with, the majority have pipelines exceeding 30 minutes....

July 25, 2026 · 21 mins · 4408 words · ABao

Jenkins Freestyle vs Pipeline: A Practical Comparison and Configuration Guide

Overview Jenkins users fall into two camps: one fills out forms on the web UI, clicks a few buttons, and gets things running — simple and direct. The other writes Jenkinsfiles in the code repository, turning build pipelines into code with version control, peer review, and rollback all built in. The first is called Freestyle Project. The second is called Pipeline Project. These two aren’t mutually exclusive. Many teams use both — simple script tasks with Freestyle, complex multi-stage releases with Pipeline....

July 14, 2026 · 19 mins · 3929 words · ABao