Skip to content

ci(pinner): align with Filebase migration in ewm-das#292

Merged
noslav merged 4 commits into
mainfrom
migrate-pinner-to-filebase
May 22, 2026
Merged

ci(pinner): align with Filebase migration in ewm-das#292
noslav merged 4 commits into
mainfrom
migrate-pinner-to-filebase

Conversation

@noslav
Copy link
Copy Markdown
Member

@noslav noslav commented May 22, 2026

Summary

Upstream ewm-das#72 replaced the w3 CLI integration with a direct-HTTPS Filebase client. The new pinner is FILEBASE_RPC_TOKEN-only (env), listens only on :5080, and no longer accepts the --w3-agent-key / --w3-delegation-proof-path flags. bsp-agent has been migrated in covalenthq/bsp-agent#341 — this PR brings refiner's compose / CI / env defaults into line so it can keep consuming from the unified pinner.

  • docker-compose-ci.yml — swap W3_* env + --w3-* pinner flags for FILEBASE_RPC_TOKEN; drop port 3001 from expose: and ports:; fix $PROOF_OUT_HEX shell-escaping inside the entrypoint heredoc.
  • docker-compose-mbase.yml, docker-compose-mbeam.yml — same env + pinner-flag changes (no port 3001 was exposed in these).
  • .github/workflows/docker-ci-test.yaml — remove WEB3_JWT, W3_AGENT_KEY, W3_DELEGATION_FILE from the generated .env; add FILEBASE_RPC_TOKEN.
  • .env_example — drop the stale WEB3_JWT line + comment; update both IPFS_PINNER_URL defaults from :3001 to :5080 and the docker hostname from ipfs-pinner to ewm-das.
  • .envrcIPFS_PINNER_URL port :3001:5080.

The Elixir code is already abstracted via Application.get_env(:refiner, :ipfs_pinner_url), and config/{config,docker,test}.exs already default to port :5080. No application changes needed.

Required CI setup (out of band)

The FILEBASE_RPC_TOKEN repo secret needs to be added under Settings → Secrets and variables → Actions of covalenthq/refiner before CI will pass. The retired WEB3_JWT, W3_AGENT_KEY, and W3_DELEGATION_FILE secrets can be deleted once this PR merges.

Test plan

  • Add FILEBASE_RPC_TOKEN to repo secrets
  • CI green on docker-ci-testewm-das container reaches Starting server on :5080, the three curl -F uploads at /upload return 200, and refiner exits 0 after coveralls.json
  • Spot-check docker inspect refiner (already in workflow)
  • (Operator follow-up) mbase/mbeam deployments: set FILEBASE_RPC_TOKEN in operator env and confirm autoheal-monitored ewm-das stays up

🤖 Generated with Claude Code

noslav and others added 4 commits May 21, 2026 17:42
Upstream ewm-das #72 replaced the w3 CLI integration with a direct-HTTPS
Filebase client (FILEBASE_RPC_TOKEN, env-only). The new pinner listens
only on :5080 and no longer accepts --w3-agent-key /
--w3-delegation-proof-path. bsp-agent (the upstream producer) has been
migrated in covalenthq/bsp-agent#341; this PR brings refiner's three
compose files, the docker-ci-test workflow, and the .env*/.envrc
defaults into line so refiner can keep consuming from the unified pinner.

Refiner's Elixir code already configures the pinner via IPFS_PINNER_URL
(config/{config,docker,test}.exs already default to :5080), so no
application changes are needed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…-das

Sweeps README, ARCH, DEVELOPMENT, and the rudder-compose.service unit:
- W3_AGENT_KEY / W3_DELEGATION_FILE / WEB3_JWT exports and prose →
  FILEBASE_RPC_TOKEN (Filebase IPFS RPC API token, scoped per bucket).
- ipfs-pinner / :3001 → ewm-das / :5080 across all example envs and logs.
- Replace the "Web3.storage + Pinata + dweb.link" pinner blurb with a
  description of the new Filebase-backed ewm-das pinner.
- Drop the now-meaningless `echo web3-jwt: $WEB3_JWT` line from the CI
  proof-chain entrypoint.
- Stale w3s.link gateway log examples replaced with a generic "fetching
  cid" line — the new pinner serves through Filebase's dedicated gateway
  + DHT, not w3s.link.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Temporary swap so CI exercises the freshly-built ewm-das image (which
replaces the internal IPFS gateway set). Will revert to :stable before
merge once the run goes green.
mix.exs was lagging the git tags (0.6.1 internally while git is on
v0.7.0). Bumping to 0.8.0 to match the upcoming release that ships
the Filebase pinner migration.
Copy link
Copy Markdown
Contributor

@rogarcia rogarcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@noslav noslav merged commit 92d7027 into main May 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants