apple / apple/container

[Bug]: Integration test failures - TestCLINetwork

Open
#1,124 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
49.9k
Forks
1.8k
Avg merge
1d 20h
Merged PRs (30d)
22

Description

### I have done the following

- [x] I have searched the existing issues
- [x] If possible, I've reproduced the issue using the 'main' branch of this project

### Steps to reproduce

We were seeing test flakes with the functions in TestCLINetwork, where a single function in the suite fails intermittently in CI builds.

I've not been able to reproduce the issue locally.

It also seemed that this problem started occurring after `testIsolatedNetwork` was added.

Currently we are working around the issue by annotating the test suite with `@Suite(.serialized)`. When we have time we should identify the root cause, fix it, and remove the serialization.

### Current behavior

It seems that most often the failing test is `testIsolatedNetwork`, but other functions fail at times.

### Expected behavior

Tests should reliably pass when run in parallel, unless there are proper bugs in the application code.

### Environment

```markdown
- OS: 26
- Xcode: 26
- Container: main (prior to #1114)
```

### Relevant log output

```shell
N/A
```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.