Commit graph naco-api/scripts
Author SHA1 Message Date
60d18beda2
Switch CI and defaults back to CDP facilitator (auth fixed)
Some checks failed
test-endpoints.yaml / Switch CI and defaults back to CDP facilitator (auth fixed) (push) Failing after 0s
CI/CD Go Verification / build_and_test (push) Successful in 1m10s
- test-endpoints.yaml: X402_FACILITATOR_URL -> https://api.cdp.coinbase.com/platform/v2/x402 (2 locations)
- start-test-server.sh: X402_FACILITATOR_URL -> https://api.cdp.coinbase.com/platform/v2/x402
- config.go default: https://api.cdp.coinbase.com/platform/v2/x402
- x402.go fallback: https://api.cdp.coinbase.com/platform/v2/x402
- CDP auth now matches official SDK (fixes 401 Unauthorized)
2026-09-04 23:42:22 +00:00
bf7a91ca89
Switch CI to PayAI facilitator (supports exact + upto)
Some checks failed
test-endpoints.yaml / Switch CI to PayAI facilitator (supports exact + upto) (push) Failing after 0s
CI/CD Go Verification / build_and_test (push) Has been cancelled
- PayAI facilitator supports both exact and upto schemes on Base Sepolia
- Workflow and start-test-server.sh: X402_FACILITATOR_URL -> https://facilitator.payai.network
- check-facilitator: handles payai.network as no-auth facilitator like Mogami
2026-09-04 23:06:42 +00:00
3717a37748
Switch CI to Mogami facilitator for testing (no auth)
Some checks failed
test-endpoints.yaml / Switch CI to Mogami facilitator for testing (no auth) (push) Failing after 0s
CI/CD Go Verification / build_and_test (push) Successful in 1m9s
- Workflow: X402_FACILITATOR_URL -> https://v2.facilitator.mogami.tech/
- start-test-server.sh: same facilitator URL
- check-facilitator: auto-detects facilitator type, skips auth for Mogami
- This unblocks CI testing while CDP facilitator auth is investigated
2026-09-04 22:51:54 +00:00
4c723445e0
Fix log capture and add verify failure logging
Some checks failed
Test Every Endpoint on Base Sepolia / test_endpoints (push) Failing after 1m28s
CI/CD Go Verification / build_and_test (push) Successful in 1m10s
- x402: wrap payment middleware to log verify failures (decoded PAYMENT-REQUIRED with scheme/network/asset/amount/payTo per accept) and settlement errors
- x402: add verifyErrorCapture and decodePaymentRequiredHeader for structured error logging
- start-test-server.sh: build binary first (go build -o /tmp/mcpserver), run with output redirected to log file, wait 2s on shutdown for log flush
- workflow: Cleanup uses kill -TERM + sleep 2 to let server flush logs
- main.go: defer log.Close() to flush slog handlers on shutdown
- All tests pass, gofmt/go vet clean
2026-09-04 18:13:28 +00:00
6e5670f69e
ci: make ollama service not block job, handle localhost vs service names
Some checks failed
Test Every Endpoint on Base Sepolia / test_endpoints (push) Failing after 1m46s
CI/CD Go Verification / build_and_test (push) Successful in 59s
- ollama image takes >60s and healthcheck curl fails inside container
  (marking service not healthy and aborting job before steps run).
  Remove ollama healthcheck from services, let Wait steps poll.
- Wait for PostgreSQL/Ollama try both localhost and service hostnames
  (postgres / ollama) for 60-90 retries, as Act network is
  WORKFLOW-* where localhost != service.
- Pull models via HTTP POST /api/pull to whichever host responds
  (no docker exec needed for services).
- start-test-server.sh: respect GOOSE_DBSTRING/OLLAMA_HOST from env,
  auto-detect postgres/ollama service hostnames if localhost not reachable.
2026-09-04 00:17:19 +00:00
027a4ee5e9 test: add auto-funding to test client and fix CI workflow
- testClient: add ensureFundedWallet() with USDC/ETH balance checks and faucet requests
- fund-wallet.sh: update faucet format for Coinbase CDP API
- start-test-server.sh: use Coinbase facilitator URL, add payment endpoint verification
- test-endpoints.yaml: fund test wallet before server, pass RPC/Faucet URLs to test client
2026-09-01 23:39:14 +02:00