Skip to content

Discover the agent address from BLACKSMITH_AGENT_ADDR - #32

Merged
piob-io merged 1 commit into
mainfrom
agent-addr-discovery
Jul 30, 2026
Merged

Discover the agent address from BLACKSMITH_AGENT_ADDR#32
piob-io merged 1 commit into
mainfrom
agent-addr-discovery

Conversation

@piob-io

@piob-io piob-io commented Jul 29, 2026

Copy link
Copy Markdown

Discovers the sticky disk service through the BLACKSMITH_AGENT_ADDR env var the agent advertises on every platform (FastActions/fa#4816); the action contains no hardcoded agent IPs, and cache mounts degrade per path instead of failing the job:

  • BLACKSMITH_AGENT_ADDR unset (GitHub-hosted runner, or an agent that does not export it): warn, create the cache paths as plain runner-owned directories (sudo mkdir -p + chown to the runner user, same permissions a successful mount produces), zero agent dials.
  • Agent answers Unimplemented (service not offered on this platform): same plain-directory fallback per path.
  • Dial refused or timed out while BLACKSMITH_AGENT_ADDR is set: same plain-directory fallback per path.

Bazel runs with non-persistent caches in every fallback case. Requires the agent change (FastActions/fa#4816) to be rolled out fleet-wide before this is released.


View with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is enabled. (Staging)


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@piob-io
piob-io force-pushed the agent-addr-discovery branch 3 times, most recently from 3a4c5b7 to 06d4593 Compare July 29, 2026 19:00
@piob-io
piob-io marked this pull request as ready for review July 29, 2026 20:36
@piob-io
piob-io requested a review from taha-au July 29, 2026 21:40
@piob-io
piob-io force-pushed the agent-addr-discovery branch from 06d4593 to f7af86f Compare July 29, 2026 21:49
…irectories when unavailable

Co-authored-by: Codesmith Staging <codesmith-bot@users.noreply.github.com>
@piob-io
piob-io force-pushed the agent-addr-discovery branch from f7af86f to de66a62 Compare July 30, 2026 11:51
@piob-io
piob-io merged commit f172a3e into main Jul 30, 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