From bc02532f9d31dd1aaad94d06356d9798f7477c9f Mon Sep 17 00:00:00 2001 From: Gosuto Inzasheru Date: Thu, 26 Mar 2026 11:44:24 +0100 Subject: [PATCH] remove debug workflow --- .../debug_raw_githubusercontent.yaml | 72 ------------------- 1 file changed, 72 deletions(-) delete mode 100644 .github/workflows/debug_raw_githubusercontent.yaml diff --git a/.github/workflows/debug_raw_githubusercontent.yaml b/.github/workflows/debug_raw_githubusercontent.yaml deleted file mode 100644 index 4c542cc..0000000 --- a/.github/workflows/debug_raw_githubusercontent.yaml +++ /dev/null @@ -1,72 +0,0 @@ -name: Debug raw.githubusercontent.com - -on: - workflow_dispatch: - -jobs: - debug: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v6 - - - name: Setup Python 3.10 - uses: actions/setup-python@v6 - with: - python-version: "3.10" - - - name: Install dependencies (same as trigger_fee_collection) - run: pip3 install -r requirements.txt - - - name: Debug - run: | - python3 << 'PYEOF' - import sys, json, importlib, traceback - print(f"python: {sys.version}") - - # 1) Baseline: test URL fetch with just requests (before any bal_* imports) - import requests - print(f"requests: {requests.__version__}") - url = "https://raw.githubusercontent.com/balancer/bal_addresses/refs/heads/main/extras/chains.json" - resp = requests.get(url) - print(f"\npre-import fetch: status={resp.status_code} len={len(resp.content)}") - print(f" bytes[:50] = {resp.content[:50]}") - try: - resp.json() - print(f" json(): OK") - except Exception as e: - print(f" json(): FAILED - {e}") - - # 2) Import every dep that gets loaded before bal_tools.utils - # to see if any of them break json/requests - print("\n--- importing deps one by one ---") - for mod in ["web3", "gql", "pydantic", "munch", "dotmap", "json_fix", "lxml", "pandas", "numpy"]: - try: - importlib.import_module(mod) - print(f" {mod}: OK") - except Exception as e: - print(f" {mod}: FAILED ({e})") - - # 3) After all deps loaded, test the same URL again - resp2 = requests.get(url) - print(f"\npost-import fetch: status={resp2.status_code} len={len(resp2.content)}") - print(f" bytes[:50] = {resp2.content[:50]}") - try: - resp2.json() - print(f" json(): OK") - except Exception as e: - print(f" json(): FAILED - {e}") - - # 4) Check if json.loads itself was modified - print(f"\njson.loads is stdlib: {json.loads.__module__ == 'json'}") - print(f"json.loads: {json.loads}") - - # 5) Try the actual import that crashes in CI - print("\n=== from fee_allocator.fee_allocator import FeeAllocator ===") - try: - from fee_allocator.fee_allocator import FeeAllocator - print("OK") - except Exception as e: - print(f"FAILED: {type(e).__name__}: {e}") - traceback.print_exc() - PYEOF