แดชบอร์ด

จับปัญหาก่อนที่จะถึง production ทุก pull request ถูกรีวิวเทียบกับสิ่งที่รันอยู่จริง ไม่ใช่แค่ diff

ลงชื่อเข้า waitlist

คำเตือนมาถึงก่อน merge กลไก หลักฐาน และการแก้ไข: ตรงที่คุณรีวิว

github.com/coreplane/orders-api/pull/482

Add trigram index for order search #482

Open rvidal wants to merge 1 commit into main from order-search-trgm
Conversation 1 Commits 1 Checks 2 Files changed 1
polylane bot commented 2 minutes ago ···
Caution

Merging this pull request may degrade production (high impact).

Merging this blocks every write to orders while the index builds. migrations/0114_order_search_trgm.sql:3 adds CREATE INDEX … USING gin (search_text gin_trgm_ops) without CONCURRENTLY, and a plain CREATE INDEX takes a full write lock on orders for the whole build. Checkout sustains ~38 writes/s on that table; each one queues behind the lock until the build finishes.

To make this safe: build the index with CREATE INDEX CONCURRENTLY outside the transactional migration.

orders-db · writes per second · last 48h projected lock window
02040
-48h -24h now
every one of these writes blocks while the index builds

Polylane analysed de91b47 for production impact.

Some checks were not successful 1 failing and 1 successful check
ci / test Successful in 2m 4s Details
Polylane production impact Non-concurrent index build locks writes on orders Details
Merging is blocked

มันปรับปรุงโค้ด ไม่ใช่แค่กั้นไว้ instrumentation ที่ขาดหายถูกเพิ่มลงบน branch ของคุณเลย

Clouds prod-cloudflare Key queries

Key queries

31 active · 2 telemetry gaps

Generated from your telemetry and your connected code, judged on observed data: every candidate ran against a day of real data before it was kept.

Did any payment capture fail? code answered
logs: "payment capture failed for order {orderId}"
declared in apps/api/src/payments.ts
Is the checkout webhook retrying more than usual? telemetry answered
metric: webhook.delivery.retries · rate over 5m
baseline 0.4/min over the observed day
Is the nightly reconciliation completing? code answered
logs: "reconciliation complete" · count over 24h
quiet all day: healthy. Kept because the code provably emits it
Are D1 writes hitting rate limits? telemetry unanswerable
no series found for this question
kept as a telemetry gap
Re-confirmed on every discovery run: one thin run cannot wipe a good set.

และมันเฝ้าดูต่อหลัง merge อะไรที่หลุดรอดไปจะถูกจับได้ใน production

Issues Critical latency degradation in checkout-edge worker Overview

Critical latency degradation in checkout-edge worker

Incident critical Polylane ·Detected 3 hours ago ·Last seen 4 minutes ago ·2 occurrences
OverviewInvestigationMetricsTimelineProperties
checkout-edge Cloudflare Worker

Critical latency degradation detected in checkout-edge worker: 18x+ P99 latency spikes sustained for 12 minutes

Causal metrics All metrics
Request Duration
414 ms ▲ 43.1σ
Wall Time
416 ms ▲ 43.0σ
CPU Time
14 ms ▲ 2.6σ
Blast radius
Search your cloud resources...
Graph Table
edge-gateway Cloudflare Worker ··· checkout-edge Cloudflare Worker ··· hd-prod Hyperdrive ··· payments-db PlanetScale ··· cart-svc Cloudflare Worker ···
Analysis Copy

Deploy 9f3c2a1 shrank the Hyperdrive pool hd-prod from 50 connections to 5. Under checkout load, requests queue on connection checkout and P99 rises 18× against the 30-minute baseline. Restoring the pool size restores latency.

Tags
service · checkout-edgeprovider · cloudflaredeploy · 9f3c2a1signal · wall_time_p99

Polylane ทำงานอย่างไร มันเรียนรู้ระบบของคุณ เฝ้าดู สืบสวน และลงมือ

  • มันเรียนรู้ระบบของคุณก่อน

    context graph วาดแผนที่ทุกทรัพยากรและการพึ่งพาทั่วคลาวด์ repo และผู้ให้บริการ observability ของคุณ เอเจนต์ใช้เหตุผลบน topology จริง ไม่ใช่การเดา

  • การตรวจจับโดยไม่ใช้ threshold

    check ในตัวสำหรับทุกผู้ให้บริการ บวก check ที่สร้างจาก query และแดชบอร์ดที่คุณบันทึกไว้เอง การประมวลผลทางสถิติและเอเจนต์ตัดสินร่วมกัน และการเปลี่ยนแปลงในทางที่ดีขึ้นไม่มีทางเปิด issue

  • การสืบสวนที่แสดงหลักฐาน

    ทุกข้ออ้างลิงก์กลับไปยัง query, บรรทัด log หรือบันทึกการเปลี่ยนแปลงที่อยู่เบื้องหลัง คำตัดสินที่ไม่มีหลักฐานจะถอยกลับเป็นสรุปไม่ได้

  • การเขียนต้องได้รับสิทธิ์ ไม่ใช่ถือว่ามี

    บัญชีเชื่อมต่อแบบอ่านอย่างเดียว rollback ปิดอยู่โดยค่าเริ่มต้น จำกัดอัตรา และมีบันทึกไว้ การเปลี่ยนโค้ดผ่านการรีวิวตามปกติของคุณ

  • มันคมขึ้นทุกสัปดาห์

    memory โน้ตประจำวัน และ query สำหรับมอนิเตอร์ที่ยืนยันซ้ำกับข้อมูลจริง: การสืบสวนเดือนกรกฎาคมเรียนรู้จากเดือนมิถุนายน

มันเสียบเข้ากับสิ่งที่คุณรันอยู่แล้ว เชื่อมต่อแบบอ่านอย่างเดียวแล้วเริ่มได้เลย

คำถาม

การรีวิว pull request ด้วย AI ทำงานอย่างไร

Polylane เชื่อมต่อกับ GitHub ในรูปแบบแอปและรีวิวแต่ละ pull request เทียบกับโครงสร้างพื้นฐานจริงที่มันจะ deploy ไป: context graph, telemetry ปัจจุบัน และการเปลี่ยนแปลงล่าสุด คำตัดสินมาถึงเป็นคอมเมนต์บวก check 'Polylane production impact'

มันจะบล็อกการ merge ของฉันไหม

เฉพาะเมื่อคุณต้องการ บังคับใช้ check 'Polylane production impact' ผ่าน branch protection แล้วการ merge ที่เสี่ยงจะถูกบล็อก ปล่อยเป็นตัวเลือกแล้วคำตัดสินจะเป็นเพียงคำแนะนำ

นี่สำหรับโค้ดที่ AI สร้างใช่ไหม

สำหรับโค้ดทั้งหมด เพียงแต่มันสำคัญที่สุดเมื่อไม่มีใครอ่านการเปลี่ยนแปลงอย่างละเอียด: ตาข่ายนิรภัยสำหรับโค้ดที่ AI สร้างคือการรีวิวเดียวกันที่จับข้อผิดพลาดที่คนเขียนเอง

ต่างจาก CI อย่างไร

CI รันเทสต์ของคุณกับโค้ด Polylane รีวิวการเปลี่ยนแปลงเทียบกับ production: การตั้งค่า ความจุ และการพึ่งพาที่มันจะไปลง และ telemetry ที่สิ่งเหล่านั้นส่งออกมาในตอนนี้ มันปรากฏเป็น check ในรายการเดียวกัน แต่ตอบคำถามคนละข้อ

มันจะ merge หรือ deploy ด้วยตัวเองไหม

ไม่ การเปลี่ยนแปลงถึง branch หลักของคุณผ่านการรีวิวของคุณเท่านั้น และ rollback ไปยัง deploy ก่อนหน้าที่ทราบว่าดียังคงปิดอยู่จนกว่าคุณจะเปิดใช้

กรณีใช้งานเพิ่มเติม

ปล่อยงานด้วยความเร็วของเอเจนต์ รีวิวเทียบกับ production ทุกครั้ง