Skip to content

Tests: Disable assert in TraitTests #8132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

bkhouri
Copy link
Contributor

@bkhouri bkhouri commented Nov 21, 2024

Disable assertion in TraitTests, which was never executed on macOS due to the self-hosted macOS pipeline running Swift 5.9..2, and test being wrapped around #if compiler(>=6.0) pre-processor.

Motivation:

The assertion in TraitTets that ensured warnigs do not appear in stderr are failing against the 6.1 toolchain. Since 1) this test was never executed against macOS, since the self-hosted macOS pipeline was running Swift 5.9.2, and 2) work is underway to productive the Traits feature, it was decided to disable the assert for now, and open a GitHub issue to re-enable the assert with the production work.

This change removes the assert for GitHub issue 8131, which must be re-enabled when the respective issue is fixed.

Modifications:

Disabled assertion the the TraitTests

Result:

swift test --filter "TraitTests"

NOTE:

It is expected the assertions will be re-introduced when #8131 is fixed.

The assertion in `TraitTets` that ensured warnigs do not appear in
stderr are failing against the 6.1 toolchain.  Since 1) this test was
never executed against macOS, since the self-hosted macOS pipeline was
running Swift 5.9.2, and 2) work is underway to productive the Traits
feature, it was decided to disable the assert for now, and open a GitHub
issue to re-enable the assert with the production work.

This change removes the assert for GitHub issue 8131, which must be
re-enabled when the respective issue is fixed.
@plemarquand
Copy link
Contributor

@swift-ci please test

@dschaefer2 dschaefer2 merged commit dca0cc2 into swiftlang:main Nov 21, 2024
5 checks passed
bkhouri added a commit to bkhouri/swift-package-manager that referenced this pull request Nov 25, 2024
Disable assertion in `TraitTests`, which was never executed on macOS due
to the self-hosted macOS pipeline running Swift 5.9..2, and test being
wrapped around `#if compiler(>=6.0)` pre-processor.

### Motivation:

The assertion in `TraitTets` that ensured warnigs do not appear in
stderr are failing against the 6.1 toolchain. Since 1) this test was
never executed against macOS, since the self-hosted macOS pipeline was
running Swift 5.9.2, and 2) work is underway to productive the Traits
feature, it was decided to disable the assert for now, and open a GitHub
issue to re-enable the assert with the production work.

This change removes the assert for GitHub issue 8131, which must be
re-enabled when the respective issue is fixed.

### Modifications:

Disabled assertion the the `TraitTests`

### Result:

```
swift test --filter "TraitTests"
```

### NOTE:
It is expected the assertions will be re-introduced when swiftlang#8131 is fixed.

(cherry picked from commit dca0cc2)
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.

3 participants