Skip to content

Melodic cloud environment verification results (2026-08-14) #2654

Closed

Description

@kyle-sexton

Verification run of the checklist in docs/CLOUD-FLEET-SETUP.md ("Verification checklist"), executed from a cloud session on this repo inside the newly created Melodic environment on 2026-08-14 (~21:15–21:20 UTC). No repository changes were made or pushed.

PASS/FAIL summary

# Check Result
1a gh --version PASS — gh version 2.45.0 (2025-07-18 Ubuntu 2.45.0-1ubuntu0.3); installed by the setup script (dpkg log 21:15:45)
1b pwsh --version FAIL at boot — not installed by the setup script; not network-blocked (installed manually in-session in <1 min, see Blocker 2)
1c dotnet --list-sdks FAIL — dotnet missing entirely; /opt/dotnet does not exist. .NET track blocked by the proxy under Trusted network access (see Blocker 1)
1d node --version PARTIAL — nvm has v24.18.0 installed with default alias set (setup Track C succeeded), but session shells resolve /usr/local/bin/node → v22.22.2, not the .node-version pin (24.18.0), because the repo hook that writes the PATH line to $CLAUDE_ENV_FILE never ran/completed
1e check-tools PASS — full VM inventory green (Python 3.11.15, uv 0.8.17, Go 1.24.7, Docker 29.3.1, Java 21, Rust 1.94.1, node 22.22.2 default, nvm with 24.18.0)
2 Repo bootstrap ran at cache build FAIL — node_modules/.bin was empty at session start; typos, actionlint, markdownlint-cli2 all absent
2b CLAUDE_CODE_REMOTE=true bash .claude/hooks/session-start.sh re-run is a fast no-op FAIL — the hook deterministically exits 1 on this VM (see Blocker 3). First run: 12s, npm ci succeeded (biome + claude now in node_modules/.bin), then aborted. Second run: fails again in 2.5s at the same step — a fast failure, not a no-op
3 echo $GH_TOKEN PASS — prints proxy-injected
4 Plugins loaded from melodic-software marketplace NONE — plugin listing is empty. Consistent with the guide's Findings: committed .claude/settings.json declares the marketplace (directory source) but has no enabledPlugins and no SessionStart hook registration
5 .NET blocked under Trusted? YES, confirmed live (Blocker 1) — apply the Custom-allowlist fallback from Step 1

Blocker 1 — .NET installer blocked by the proxy (predicted by the guide)

https://dot.net/v1/dotnet-install.sh 301-redirects to builds.dotnet.microsoft.com, which the agent proxy rejects. Reproduced live in the session:

$ curl -fsSIL https://dot.net/v1/dotnet-install.sh
curl: (22) The requested URL returned error: 403

HTTP/1.1 200 Connection Established
HTTP/2 301
location: https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.sh
HTTP/1.1 403 Forbidden

Setup-script Track B exits early on this (curl ... || exit 0), so /opt/dotnet never gets created. Fix: the guide's Step 1 fallback — switch the environment to Custom network access, check "Also include default list of common package managers", and add dot.net, aka.ms, builds.dotnet.microsoft.com, download.visualstudio.microsoft.com. This is required both for the env's /opt/dotnet warm cache and for every repo hook's repo-local .dotnet install.

Blocker 2 — setup-script run was cut short (~13s of activity); PowerShell and the baked-in bootstrap never ran

Forensics from /var/log/dpkg.log / /var/log/apt/history.log in this container:

  • 21:15:43 — Node 24.18.0 install finished (Track C ✅)
  • 21:15:45 — gh 2.45.0 installed (Track A, step 1 ✅)
  • 21:15:46 — packages-microsoft-prod 1.2-ubuntu24.04 configured (Track A, step 2 ✅)
  • 21:15:53 — last dpkg activity (java cert triggers); no apt-get install powershell and no repo-hook execution ever appear

This is not a network problem: the Microsoft apt repo is configured and reachable, apt-cache policy powershell shows candidate 7.6.5-1.deb, the 54 MB .deb downloads in ~2s, and apt-get install -y powershell completed successfully in-session (PowerShell 7.6.5). The script's final step (line 121, run the repo's SessionStart hook) also never executed — node_modules was empty at session start.

Note: apt-get update exits 0 despite two PPA 403s through the proxy (ppa.launchpadcontent.net deadsnakes/ondrej — Invalid response from proxy: HTTP/1.1 403 Forbidden), so those warnings did not break the chain.

Fix: rebuild the environment cache (any trivial setup-script edit forces a rebuild) and re-verify; the 21:15 build appears to have been interrupted/raced by session start.

Blocker 3 — repo hook fails deterministically: pyyaml hash coverage gap on the VM's Python 3.11

The hook's required step python3 -m pip install --require-hashes -r .github/requirements-ci.txt fails on every run:

ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    pyyaml==6.0.3 from ``https://files.pythonhosted.org/packages/71/60/917329f640924b18ff085ab889a11c763e0b573da888e8404ff486657602/pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl`` (from -r .github/requirements-ci.txt (line 24)):
        Expected sha256 34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310
        Expected     or 4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac
        Expected     or 501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7
        Expected     or 5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35
        Expected     or 7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764
        Expected     or 8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac
        Expected     or 93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3
        Expected     or c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5
             Got        b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d

Root cause: .github/requirements-ci.txt pins pyyaml 6.0.3 hashes for cp314 wheels (CI's Python 3.14 plus fleet dev platforms, per the file's own comment), but the cloud VM's interpreter is Python 3.11, so pip selects the cp311 manylinux wheel whose hash is not in the list. Two independent downloads of that wheel produced the identical hash (b8bb0864…) — this is a coverage gap, not tampering.

Because the hook uses set -euo pipefail, this aborts before every downstream step: the hygiene-binary installs (shellcheck, actionlint, typos, editorconfig-checker, gitleaks, shfmt, markdownlint-cli2, check-jsonschema) and the git-unshallow/origin/main fetch. Even with a perfect environment, the hook fails on every cloud session until fixed.

Fix: add the cp311 Linux-x64 pyyaml 6.0.3 wheel hash to .github/requirements-ci.txt (verify it against PyPI's published digest before committing, per the file's own convention), or make the hook run the pip step under an interpreter matching CI.

Recommended actions (in order)

  1. Apply the Custom-allowlist fallback from docs/CLOUD-FLEET-SETUP.md Step 1 (Blocker 1).
  2. Fix the pyyaml cp311 hash gap in .github/requirements-ci.txt (Blocker 3) — this gates the entire hygiene-tool tier.
  3. Rebuild the environment cache and re-run this checklist (Blocker 2).
  4. Decide and land the SessionStart hook registration + enabledPlugins in .claude/settings.json (the guide's standing "bootstrap is currently unwired" finding) — without it, sessions get Node 22 on PATH, no toolchain, and zero plugins even when the env cache is healthy.

Side effects of the verification session (container-only, nothing pushed): PowerShell 7.6.5 installed, npm ci populated node_modules, apt lists refreshed.

Activity

  1. added
    needs-triage
    on Aug 15, 2026
  2. added a commit that references this issue on Aug 15, 2026
    1eea04d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions