You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
You can generally find language/servers/etc at toolset/setup/linux as named shell scripts. Specifically, swift.sh is where you would need to update swift.
Each one of them is requesting PostgreSQL, MySQL and MongoDB to be installed/started. When you build and test against PostgreSQL there is no need to activate another databases and data stores.
@msmith-techempower I was too slow to edit the comment. cmysql appears like some sort of bridge to the DB drivers. But I don't have any idea how swift/vapor connects to mongodb.
@zloster I think that the setup scripts are just wrong (potentially); there are three separate source folders for each database type (vapor-tfb-mongodb, vapor-tfb-mysql, vapor-tfb-postgresql), but each setup script relies on the default build process (not selecting one) which creates (I guess) vapor-tfb-mongodb by default.
I would expect each respective setup_...sh files to build their correct application server, and then execute the correct one rather than just the mongodb variant.
@twof@msmith-techempower I'm also dumb >_<
In the script that should build the PostgreSQL variant you should declare postgresql as dependency and call postgresql build artifact. Not the mongodb one.
So the code should look like as:
As long as a Postgres server is available to be connected to over TCP, Vapor 3 should no longer require those C dependencies (for MySQL as well). We have pure-Swift drivers now.
All we should need to fix is the Swift PackageDescription issue as well as updating to Swift >= 4.0 since we depend on features in Swift 4.
Activity
msmith-techempower commentedon Jan 15, 2018
You can generally find language/servers/etc at
toolset/setup/linuxas named shell scripts. Specifically, swift.sh is where you would need to update swift.zloster commentedon Jan 15, 2018
Also the scripts in the
Vaporframework itself need some attention:Each one of them is requesting
PostgreSQL,MySQLandMongoDBto be installed/started. When you build and test against PostgreSQL there is no need to activate another databases and data stores.twof commentedon Jan 15, 2018
So a more appropriate
setup-postgresql.shwould look likeyeah? @zloster
msmith-techempower commentedon Jan 15, 2018
Why would the release be called
vapir-tfb-mongodbif it depends onpostgresql.Also, what is
cmysql?zloster commentedon Jan 15, 2018
@twof Yes
@msmith-techempower It's
Vaporand its DB driver?! https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/toolset/setup/linux/systools/cmysql.sh#L9-L10 This is the referenced shell script. IMOcmysql.shshould be calledvapor.sh.msmith-techempower commentedon Jan 15, 2018
Agreed
But it doesn't outwardly appear to use
mongodbat all; what am I missing?zloster commentedon Jan 15, 2018
@msmith-techempower I was too slow to edit the comment. cmysql appears like some sort of bridge to the DB drivers. But I don't have any idea how
swift/vaporconnects tomongodb.msmith-techempower commentedon Jan 15, 2018
@zloster I think that the setup scripts are just wrong (potentially); there are three separate source folders for each database type (
vapor-tfb-mongodb,vapor-tfb-mysql,vapor-tfb-postgresql), but each setup script relies on the default build process (not selecting one) which creates (I guess)vapor-tfb-mongodbby default.I would expect each respective
setup_...shfiles to build their correct application server, and then execute the correct one rather than just the mongodb variant.zloster commentedon Jan 15, 2018
@msmith-techempower Take a look at the end of the setup scripts:
They are calling different build artefact in the
.build/releasefolder.msmith-techempower commentedon Jan 15, 2018
You're right and I'm dumb >_<
Well, that's good to know for sure.
I guess let's just clean up
cmysqlto bevapor?zloster commentedon Jan 15, 2018
@twof @msmith-techempower I'm also dumb >_<
In the script that should build the
PostgreSQLvariant you should declarepostgresqlas dependency and callpostgresqlbuild artifact. Not themongodbone.So the code should look like as:
With the agreement that
fw_depends cmysqlshould be renamed tofw_depends vaporand thecmysqlscript renamed tovapor.tanner0101 commentedon Jan 15, 2018
As long as a Postgres server is available to be connected to over TCP, Vapor 3 should no longer require those C dependencies (for MySQL as well). We have pure-Swift drivers now.
All we should need to fix is the Swift
PackageDescriptionissue as well as updating to Swift >= 4.0 since we depend on features in Swift 4.@msmith-techempower I will look into that file you linked, thanks! :)
michaelhixson commentedon Feb 1, 2018
I think we're running to this problem: https://bugs.swift.org/browse/SR-5800
The build gets much farther if I change
toolset/setup/linux/languages/swift3.shto use the latest swift 4.1 snapshot.It eventually runs into an error compiling vapor. The version of vapor we're using is missing this fix: vapor/vapor@5a31fc8#diff-4a85e78227146848570c0c42d00d2f17
If I edit
frameworks/Swift/vapor/Package.swiftto use a more recent version of vapor......then it passes all the TFB tests locally.
@msmith-techempower How do you feel about us using a snapshot version of Swift for the time being?
msmith-techempower commentedon Feb 1, 2018
I'm fine with that.
Upgrade to swift 4, repair vapor build
Upgrade to swift 4.1 and mongodb 3.6, fix vapor tests (#3242)
NateBrady23 commentedon Feb 5, 2018
This is solved for now, however as noted in #3242 the vapor tests are not completing queries/updates in a reasonable amount of time.
Upgrade to swift 4.1 and mongodb 3.6, fix vapor tests (TechEmpower#3242)