@@ -15,7 +15,8 @@ concurrency:
1515env :
1616 CARGO_TERM_COLOR : always
1717 RUST_BACKTRACE : full
18- THEGRAPH_STORE_POSTGRES_DIESEL_URL : " postgresql://postgres:postgres@localhost:5432/graph_node_test"
18+ RUSTFLAGS : " -C link-arg=-fuse-ld=lld -D warnings"
19+ THEGRAPH_STORE_POSTGRES_DIESEL_URL : " postgresql://graph:graph@localhost:5432/graph-test"
1920
2021jobs :
2122 unit-tests :
@@ -30,21 +31,28 @@ jobs:
3031 postgres :
3132 image : postgres
3233 env :
33- POSTGRES_PASSWORD : postgres
34- POSTGRES_DB : graph_node_test
34+ POSTGRES_USER : graph
35+ POSTGRES_PASSWORD : graph
36+ POSTGRES_DB : graph-test
3537 POSTGRES_INITDB_ARGS : " -E UTF8 --locale=C"
36- POSTGRESQL_EXTRA_FLAGS : " -c max_connections=1000"
3738 options : >-
38- --health-cmd pg_isready
39+ --health-cmd " pg_isready -U graph"
3940 --health-interval 10s
4041 --health-timeout 5s
4142 --health-retries 5
4243 ports :
4344 - 5432:5432
44- env :
45- RUSTFLAGS : " -C link-arg=-fuse-ld=lld -D warnings"
4645 steps :
4746 - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
47+ - name : Alter postgres max connections
48+ run : |
49+ docker exec -i postgres bash << EOF
50+ sed -i -e 's/max_connections = 100/max_connections = 1000/' /var/lib/postgresql/data/postgresql.conf
51+ sed -i -e 's/shared_buffers = 128MB/shared_buffers = 2GB/' /var/lib/postgresql/data/postgresql.conf
52+ EOF
53+ docker restart --time 0 postgres
54+ sleep 5
55+
4856 - name : Setup dependencies
4957 run : |
5058 sudo apt-get update
@@ -74,26 +82,30 @@ jobs:
7482 ports :
7583 - 5001:5001
7684 postgres :
77- image : bitnami/postgresql
85+ image : postgres
7886 env :
79- POSTGRES_PASSWORD : postgres
80- POSTGRES_DB : graph_node_test
87+ POSTGRES_USER : graph
88+ POSTGRES_PASSWORD : graph
89+ POSTGRES_DB : graph-test
8190 POSTGRES_INITDB_ARGS : " -E UTF8 --locale=C"
82- POSTGRESQL_EXTRA_FLAGS : " -c max_connections=1000"
83- POSTGRESQL_REPLICATION_USE_PASSFILE : no
8491 options : >-
85- --health-cmd "pg_isready -U postgres "
92+ --health-cmd "pg_isready -U graph "
8693 --health-interval 10s
8794 --health-timeout 5s
88- --health-retries 10
95+ --health-retries 5
8996 ports :
9097 - 5432:5432
91- env :
92- GRAPH_IPFS_REQUEST_TIMEOUT : " 60"
93- RUSTFLAGS : " -C link-arg=-fuse-ld=lld -D warnings --cfg test_with_ipfs"
94- RUNNER_TESTS_WAIT_FOR_SYNC_SECS : " 600"
9598 steps :
9699 - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
100+ - name : Alter postgres max connections
101+ run : |
102+ docker exec -i postgres bash << EOF
103+ sed -i -e 's/max_connections = 100/max_connections = 1000/' /var/lib/postgresql/data/postgresql.conf
104+ sed -i -e 's/shared_buffers = 128MB/shared_buffers = 2GB/' /var/lib/postgresql/data/postgresql.conf
105+ EOF
106+ docker restart --time 0 postgres
107+ sleep 5
108+
97109 - name : Setup dependencies
98110 run : |
99111 sudo apt-get update
@@ -141,18 +153,24 @@ jobs:
141153 POSTGRES_PASSWORD : let-me-in
142154 POSTGRES_DB : graph-node
143155 POSTGRES_INITDB_ARGS : " -E UTF8 --locale=C"
144- POSTGRESQL_EXTRA_FLAGS : " -c max_connections=1000"
145156 options : >-
146- --health-cmd pg_isready
157+ --health-cmd " pg_isready -U graph-node"
147158 --health-interval 10s
148159 --health-timeout 5s
149160 --health-retries 5
150161 ports :
151162 - 3011:5432
152- env :
153- RUSTFLAGS : " -C link-arg=-fuse-ld=lld -D warnings"
154163 steps :
155164 - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
165+ - name : Alter postgres max connections
166+ run : |
167+ docker exec -i postgres bash << EOF
168+ sed -i -e 's/max_connections = 100/max_connections = 1000/' /var/lib/postgresql/data/postgresql.conf
169+ sed -i -e 's/shared_buffers = 128MB/shared_buffers = 2GB/' /var/lib/postgresql/data/postgresql.conf
170+ EOF
171+ docker restart --time 0 postgres
172+ sleep 5
173+
156174 - name : Setup dependencies
157175 run : |
158176 sudo apt-get update
0 commit comments