Skip to content

[BUG] CI instability: ruff formatting + multiple test failures — request 1-day observation window #926

@SB2318

Description

@SB2318

Summary

Description

We are observing intermittent CI failures caused by formatting drift detected by ruff format --check.

Current Behavior

CI fails with output like:

Would reformat: app/nodes/root_cause_diagnosis/prompt_builder.py
1 file would be reformatted, 899 files already formatted

### Expected vs actual behavior

## Expected vs Actual

### Expected Behavior
- `ruff format --check` should pass in CI
- All files should already follow formatting rules before commit
- Test suite should run consistently without random failures
- CI should be stable and deterministic across runs
- Same codebase should produce same CI result across environments (local, CI, different OS runners)

---

### Actual Behavior
- CI fails due to formatting drift:
  ```bash
  Would reformat: app/nodes/root_cause_diagnosis/prompt_builder.py

### Steps to reproduce

## Steps to Reproduce

### 1. Trigger CI pipeline
- Push any commit or open a PR targeting `main`
- CI workflow starts automatically (GitHub Actions)

---

### 2. Run formatting check stage
CI executes:
```bash
python -m ruff format --check app/ tests/

### Can you reproduce it consistently?

Yes

### How often does it occur?

Every time

### Operating system

Windows

### Logs and error output

_No response_

### Additional context

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions