Menu

Add a real China reachability check to your CI (GitHub Action)
📰

Add a real China reachability check to your CI (GitHub Action)

DEV Community: github·lsl17625394467·3 days ago
#MQDxkKNW
#devtogithub#technology#devto#dev#china
Reading 0:00
15s threshold

If you ship to a global audience, there is one failure mode your CI never catches: the site works in every region you test from, and does not work from mainland China.

I put a real mainland-China residential probe behind a small REST endpoint and wrapped it in a composite GitHub Action. You can now assert China reachability in the same pipeline that runs your tests.

Usage

- id : cn uses : lsl17625394467/[email protected] with : url : https://your-domain.com fail-on-blocked : true - run : echo "${{ steps.cn.outputs.verdict }} ${{ steps.cn.outputs.ms }}"

Enter fullscreen mode

Exit fullscreen mode

It emits a job summary with the five stages (DNS, TCP, TLS, TTFB, total), so a failed run tells you which layer broke instead of just "timeout".

Why five stages and not one number

DNS resolves, TCP never connects: IP-level blackhole. Change the edge, not the DNS.

TCP connects, TLS is 0ms: handshake reset at the SNI/IP layer.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.