aaif-goose / aaif-goose/goose

Flaky test: command_runs_with_configured_cwd_and_resolves_relative_path fails with ETXTBSY

Đang mở
#11,946 0 bình luận 0 reaction 1 người được giao Được @DOsinga nhận Xem trên GitHub
Ngôn ngữ chính
Rust
Star
54.2k
Fork
6.2k
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
262

Mô tả

**Describe the bug**

The test
`providers::command_auth::tests::command_runs_with_configured_cwd_and_resolves_relative_path`
occasionally fails on Linux CI with:

```text
failed to run auth command './get-token.sh': Text file busy (os error 26)
```

Failed CI job:
https://github.com/aaif-goose/goose/actions/runs/34327955183/job/102389802174?pr=11944

The equivalent `rustls-tls` job passed, and rerunning the test succeeds, suggesting a filesystem-related race when the temporary script is created and immediately executed.

The test was introduced in #11657.

**To reproduce**

Run repeatedly on Linux:

```bash
cargo test -p goose --lib \
providers::command_auth::tests::command_runs_with_configured_cwd_and_resolves_relative_path
```

**Expected behavior**

The test should pass reliably in CI.

**Additional context**

A possible fix is to create the script under a temporary filename and atomically rename it before execution. The exact cause should be confirmed before implementation.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.