swiftlang / swiftly

A Swift toolchain installer and manager, written in Swift.
https://swiftlang.github.io/swiftly/
Apache License 2.0
490 stars 28 forks source link

Too many bytes error running the swiftly tests #128

Closed cmcgee1024 closed 4 months ago

cmcgee1024 commented 4 months ago

There is now an NIOTooManyBytesError() being thrown while running the xctests on Ubuntu Linux 22.04 on arm64.

Steps to reproduce:

  1. docker run -it -v $(pwd):/swiftly swift:5.10.1-jammy
  2. apt update && apt -y install gpg curl gcc make
  3. cd /swiftly
  4. ./scripts/install-libarchive.sh
  5. SWIFTLY_PLATFORM_NAME_PRETTY="Ubuntu 22.04" SWIFTLY_PLATFORM_NAME=ubuntu2204 SWIFTLY_PLATFORM_NAME_FULL=ubuntu22.04 swift test
cmcgee1024 commented 4 months ago

Providing a SWIFTLY_GITHUB_TOKEN from a generated personal access token appears to eliminate these errors, and 403's that come due to rate limiting. It seems that under load the GH API's will provide inaccurate content-lengths.