Skip to content

[workflow-health] Metrics Collector failing — ENOENT: /tmp/gh-aw/aw_info.json #19019

Description

@github-actions

The Metrics Collector workflow has begun failing in the activation job with an unexpected infrastructure error. This is a regression from its previously stable state (5+ consecutive successes as of 2026-02-25).

Error Details

Workflow: Metrics Collector - Infrastructure Agent
Run: §22526204448 (run #73, 2026-02-28T18:13)
Job: activation
Error:

Error: ENOENT: no such file or directory, open '/tmp/gh-aw/aw_info.json'
    at Object.writeFileSync (node:fs:2415:20)
    at eval (eval at callAsyncFunction ...
```

### Root Cause Analysis

The `activation` job fails when `generateWorkflowOverview(core)` tries to write `/tmp/gh-aw/aw_info.json`. This file is created by the `gh-aw setup` action as part of initialization. The error indicates `/tmp/gh-aw/` directory did not exist when the activation job ran.

Possible causes:
1. **Transient runner failure**: The setup step may have failed silently and the directory was never created
2. **Setup action regression**: A recent change to the setup action may have broken directory creation
3. **Race condition**: The setup step may complete but not have created the expected path

### Impact

- Metrics Collector is our infrastructure agent — it provides daily metrics for other meta-orchestrators (Campaign Manager, Agent Performance Analyzer, Workflow Health Manager)
- Failure of this workflow degrades shared memory quality and trend analysis
- Without fresh metrics, health monitoring relies on stale data

### Suggested Fix

1. Check recent changes to `actions/setup` and the `generate_workflow_overview.cjs` script
2. Verify the setup action properly creates `/tmp/gh-aw/` before the activation job runs
3. Add explicit directory creation guard (`mkdir -p /tmp/gh-aw`) in setup if missing

### Debugging

```
/agent agentic-workflows debug the agentic workflow metrics-collector failure in https://github.com/github/gh-aw/actions/runs/22526204448

Detected by: Workflow Health Manager, run §22538460268

Generated by Workflow Health Manager - Meta-Orchestrator

  • expires on Mar 2, 2026, 7:28 AM UTC

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions