SwiftPackageIndex / SwiftPackageIndex-Server

The Swift Package Index is the place to find Swift packages!
https://swiftpackageindex.com
Apache License 2.0
538 stars 42 forks source link

Bump to 16 #3278

Closed finestructure closed 1 week ago

finestructure commented 1 month ago

Both dev and prod are on version 16.3 now.

In order to switch over locally, run

make db-down db-up

⚠️ This will delete local data ⚠️

Check the postgres version via the following SQL query:

SELECT version();
finestructure commented 1 week ago

Putting this back in draft, because I'm seeing a huge performance regression when running the tests locally with the postgres:16.3-alpine container: 360 seconds vs 90 seconds.

I'm guessing it's related to the temp fs flag --tmpfs /pgdata:rw,noexec,nosuid,size=1024m we're using. Needs investigation.

finestructure commented 1 week ago

No, it's Postgres itself. Here are the timing just running the AnalyzerTests:

❯ make db-down-test db-up-test && sleep 3 && time swift test --disable-automatic-resolution --filter AppTests.AnalyzerTests

for different versions of Postgres (plus with/without tempfs in two cases):

Next guess it's related to the table truncation we're doing in db test setup.