awslabs / aws-sdk-swift

Apache License 2.0
398 stars 79 forks source link

Building all tests fails on linux platforms #894

Open epau opened 1 year ago

epau commented 1 year ago

Describe the bug

Building all tests results in an error on linux platforms. If you reduce the amount of tests to ~200 of a random subset, then both building tests completes successfully.

Running either swift build --build-tests or swift test will fail and results in the following error message: error: link command failed with exit code 254. I've tested and reproduced this behavior on the following platforms:

Expected Behavior

N/A

Current Behavior

N/A

Reproduction Steps

In a docker container using one of the following images

Clone the the aws-sdk-swift repo

Run either of the following commands

Possible Solution

This might be a swift bug, in which case we should open an issue with Swift.

Additionally, if we are blocked on this then we can implement a work around that executes the tests in batches on CI. This will allow us to execute every test without hitting this limitation.

Additional Information/Context

No response

AWS SWIFT SDK version used

N/A

Compiler and Version used

N/A

Operating System and version

N/A

ganeshnj commented 1 year ago

Things to try

smivij commented 1 year ago

We have workaround to split the tests into smaller batches, lowering priority