Browse Source

[crystal/lucky] Fix tests and update dependencies (#9380)

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 de Heus 9 months ago
parent
commit
aecc2a43c4
2 changed files with 5 additions and 5 deletions
  1. 2 2
      frameworks/Crystal/lucky/lucky.dockerfile
  2. 3 3
      frameworks/Crystal/lucky/shard.lock

+ 2 - 2
frameworks/Crystal/lucky/lucky.dockerfile

@@ -1,4 +1,4 @@
-FROM crystallang/crystal:1.12.1
+FROM crystallang/crystal:1.14.0
 
 WORKDIR /lucky
 COPY shard.lock shard.lock
@@ -14,7 +14,7 @@ ENV LUCKY_ENV production
 
 RUN shards build bench --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=10&max_idle_pool_size=10
 
 EXPOSE 8080
 

+ 3 - 3
frameworks/Crystal/lucky/shard.lock

@@ -2,7 +2,7 @@ version: 2.0
 shards:
   avram:
     git: https://github.com/luckyframework/avram.git
-    version: 1.2.0
+    version: 1.3.0
 
   backtracer:
     git: https://github.com/sija/backtracer.cr.git
@@ -30,7 +30,7 @@ shards:
 
   habitat:
     git: https://github.com/luckyframework/habitat.git
-    version: 0.4.8
+    version: 0.4.9
 
   lucky:
     git: https://github.com/luckyframework/lucky.git
@@ -66,7 +66,7 @@ shards:
 
   splay_tree_map:
     git: https://github.com/wyhaines/splay_tree_map.cr.git
-    version: 0.2.2
+    version: 0.3.0
 
   wordsmith:
     git: https://github.com/luckyframework/wordsmith.git