Skip to content

Commit b4ecaff

Browse files
akherchaRemsko
andauthored
test: E2E get_entry (#178)
* tests(e2e_get_entry): get_entry simple * tests(e2e_get_entry): removed to_owned * tests(e2e_get_entry): removed postgre from CI * tests(e2e_get_entry): Added nextest config * tests(e2e_get_entry): test OK * tests(e2e_get_entry): OK for multiple intervals * tests(e2e_get_entry): increased startup timeout * tests(e2e_get_entry): Increase startup timeout for pragma nod * tests(e2e_get_entry): Local mode for integration tests * test: e2e get_entry for strk/eth (#185) * tests: add fake datas * tests: deps * tests: more tests * tests: more tests * tests: fix view refresh call * tests: add twap table * tests: fix routing many * tests: fix twap * tests: uncomment * tests: fix * tests: remove pairs const * tests: lint * tests(e2e_get_entry): toml lint * tests(e2e_get_entry): Removed one test * tests(e2e_get_entry): Fixed deadlock * tests(e2e_get_entry): Removed outliers filtering --------- Co-authored-by: Rémi <33517098+Remsko@users.noreply.github.com>
1 parent 90364b7 commit b4ecaff

File tree

25 files changed

+977
-378
lines changed

25 files changed

+977
-378
lines changed

.config/nextest.toml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[profile.default]
2+
# "retries" defines the number of times a test should be retried. If set to a
3+
# non-zero value, tests that succeed on a subsequent attempt will be marked as
4+
# flaky. Can be overridden through the `--retries` option.
5+
# Examples
6+
# * retries = 3
7+
# * retries = { backoff = "fixed", count = 2, delay = "1s" }
8+
# * retries = { backoff = "exponential", count = 10, delay = "1s", jitter = true, max-delay = "10s" }
9+
retries = 0
10+
11+
# The number of threads to run tests with. Supported values are either an
12+
# integer or the string "num-cpus". Can be overridden through the
13+
# `--test-threads` option.
14+
test-threads = "num-cpus"
15+
16+
# The number of threads required for each test. This is generally used in
17+
# overrides to mark certain tests as heavier than others. However, it can also
18+
# be set as a global parameter.
19+
threads-required = 1
20+
21+
[[profile.default.overrides]]
22+
filter = "package(tests)"
23+
threads-required = "num-cpus"
24+
run-extra-args = ["--test-threads=1"]
25+
26+
[profile.ci]
27+
retries = 0
28+
test-threads = "num-cpus"
29+
30+
[[profile.ci.overrides]]
31+
filter = "package(tests)"
32+
run-extra-args = ["--test-threads=1"]
33+
threads-required = "num-cpus"

.github/workflows/pragma.yaml

-21
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,6 @@ jobs:
3131
security-events: write
3232
checks: write
3333
pull-requests: write
34-
env:
35-
HOST: 0.0.0.0
36-
PORT: 3000
37-
METRICS_PORT: 8080
38-
POSTGRES_DATABASE_URL: postgres://postgres:postgres@localhost:5432
39-
40-
services:
41-
postgres:
42-
image: postgres:latest
43-
env:
44-
POSTGRES_DB: postgres
45-
POSTGRES_USER: postgres
46-
POSTGRES_HOST_AUTH_METHOD: trust
47-
ports:
48-
- 5432:5432
49-
# Set health checks to wait until postgres has started
50-
options: >-
51-
--health-cmd pg_isready
52-
--health-interval 10s
53-
--health-timeout 5s
54-
--health-retries 5
5534

5635
steps:
5736
- name: Checkout toml files

0 commit comments

Comments
 (0)