Browse Source

[crystal/spider-gazelle] Fix tests and update dependencies

Reduce connection pool size to avoid connection errors like:

     psycopg2.OperationalError: connection to server at "10.0.0.2", port
     5432 failed: FATAL:  sorry, too many clients already
Petrik 1 year ago
parent
commit
8b7e55641e

+ 13 - 17
frameworks/Crystal/spider-gazelle/shard.lock

@@ -2,11 +2,11 @@ version: 2.0
 shards:
   action-controller:
     git: https://github.com/spider-gazelle/action-controller.git
-    version: 5.6.2
+    version: 7.4.3
 
   active-model:
     git: https://github.com/spider-gazelle/active-model.git
-    version: 4.2.3
+    version: 4.3.2
 
   backtracer:
     git: https://github.com/sija/backtracer.cr.git
@@ -14,27 +14,23 @@ shards:
 
   db:
     git: https://github.com/crystal-lang/crystal-db.git
-    version: 0.11.0
+    version: 0.13.1
 
   eventbus:
     git: https://github.com/spider-gazelle/eventbus.git
-    version: 0.9.9+git.commit.086b2ba92475b88e8481b0387eb56c735cbfd7bd
+    version: 1.0.0+git.commit.af63536d718348885a553dc4aa6debccc2946289
 
   exception_page:
     git: https://github.com/crystal-loot/exception_page.git
-    version: 0.3.0
-
-  future:
-    git: https://github.com/crystal-community/future.cr.git
-    version: 1.0.0
+    version: 0.5.0
 
   habitat:
     git: https://github.com/luckyframework/habitat.git
-    version: 0.4.7
+    version: 0.4.9
 
   hot_topic:
     git: https://github.com/jgaskins/hot_topic.git
-    version: 0.1.0+git.commit.c4577d949221d535f29162343bf503b578308954
+    version: 0.1.0+git.commit.3c901e77b6e000930398738260a2944b6f5785dc
 
   http-params-serializable:
     git: https://github.com/place-labs/http-params-serializable.git
@@ -42,7 +38,7 @@ shards:
 
   json-schema:
     git: https://github.com/spider-gazelle/json-schema.git
-    version: 1.3.0
+    version: 1.3.1
 
   kilt:
     git: https://github.com/jeromegn/kilt.git
@@ -50,21 +46,21 @@ shards:
 
   lucky_router:
     git: https://github.com/luckyframework/lucky_router.git
-    version: 0.5.2
+    version: 0.6.0
 
   pg:
     git: https://github.com/will/crystal-pg.git
-    version: 0.26.0
+    version: 0.28.0
 
   pg-orm:
     git: https://github.com/spider-gazelle/pg-orm.git
-    version: 1.0.0+git.commit.2bbafec9579f175880281279d33168360176540c
+    version: 1.1.2+git.commit.9b340ee269cd4a10ed6c5b51235cbaf45fc380e1
 
   pool:
     git: https://github.com/ysbaddaden/pool.git
-    version: 0.3.0
+    version: 0.2.4
 
   redis:
     git: https://github.com/stefanwille/crystal-redis.git
-    version: 2.8.3
+    version: 2.9.1
 

+ 2 - 3
frameworks/Crystal/spider-gazelle/spider-gazelle.dockerfile

@@ -1,5 +1,4 @@
-FROM 84codes/crystal:1.7.2-alpine
-RUN apk add --update --no-cache bash gmp-dev
+FROM crystallang/crystal:1.14.0
 
 WORKDIR /usr/src/app
 
@@ -10,7 +9,7 @@ COPY run.sh run.sh
 # Build App
 RUN shards build --release --no-debug
 
-ENV DATABASE_URL postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world?initial_pool_size=56&max_idle_pool_size=56
+ENV DATABASE_URL postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world?initial_pool_size=5&max_idle_pool_size=5
 
 ENV SG_ENV production