Skip to content

Commit 5bca132

Browse files
julianrichieclaude
andcommitted
ci: drop live job (Cloudflare blocks runner IPs)
The gateway is behind Cloudflare, which 403s GitHub Actions' datacenter runner IPs before auth, so the live suite can't pass from CI even with valid secrets. Keep CI to the unit + integration matrix; run live tests locally via composer test:live. Comment documents how to re-enable later. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 7cddf4f commit 5bca132

1 file changed

Lines changed: 6 additions & 31 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -41,34 +41,9 @@ jobs:
4141
- name: Run unit + integration suites
4242
run: composer test
4343

44-
# Opt-in live suite against the real gateway. Only runs on pushes to main and
45-
# manual dispatch — never on PRs, where secrets are unavailable (forks) and we
46-
# don't want to hit a real Odoo on every proposed change. The suite self-skips
47-
# if any ODX_* var is missing, so a misconfigured secret degrades to a skip.
48-
live:
49-
name: Live (real gateway)
50-
runs-on: ubuntu-latest
51-
needs: test
52-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
53-
steps:
54-
- uses: actions/checkout@v4
55-
56-
- name: Setup PHP
57-
uses: shivammathur/setup-php@v2
58-
with:
59-
php-version: '8.3'
60-
extensions: curl, json
61-
coverage: none
62-
63-
- name: Install dependencies
64-
uses: ramsey/composer-install@v3
65-
66-
- name: Run live suite
67-
env:
68-
ODX_GATEWAY_URL: ${{ secrets.ODX_GATEWAY_URL }}
69-
ODX_GATEWAY_API_KEY: ${{ secrets.ODX_GATEWAY_API_KEY }}
70-
ODX_ODOO_URL: ${{ secrets.ODX_ODOO_URL }}
71-
ODX_USER_ID: ${{ secrets.ODX_USER_ID }}
72-
ODX_DB: ${{ secrets.ODX_DB }}
73-
ODX_API_KEY: ${{ secrets.ODX_API_KEY }}
74-
run: composer test:live
44+
# NOTE: The live suite (composer test:live) is intentionally NOT run in CI.
45+
# The gateway sits behind Cloudflare, which blocks GitHub Actions' datacenter
46+
# runner IPs with a 403 before the request reaches the gateway's auth — so it
47+
# fails from CI even with valid ODX_* secrets. Run it locally / manually with
48+
# `composer test:live`. To re-enable in CI later, allowlist the runner at
49+
# Cloudflare (IP ranges or a shared bypass header) or use a self-hosted runner.

0 commit comments

Comments
 (0)