Skip to content

Commit 63b7344

Browse files
feat: add new GitHub workflow for dbsync config tests
1 parent dbb68cd commit 63b7344

File tree

3 files changed

+75
-19
lines changed

3 files changed

+75
-19
lines changed

.github/env_dbsync_config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CLUSTERS_COUNT=1
2+
MARKEXPR=dbsync or dbsync_config and not long
3+
DBSYNC_SKIP_INDEXES=true

.github/workflows/dbsync_config.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: db-sync config tests
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
node_rev:
7+
description: "cardano-node revision"
8+
default: master
9+
cli_rev:
10+
description: "cardano-cli revision (optional)"
11+
default: ""
12+
dbsync_rev:
13+
description: "db-sync revision"
14+
default: master
15+
cluster_era:
16+
type: choice
17+
description: "Cluster era"
18+
options:
19+
- conway 10
20+
- conway 9
21+
default: conway 10
22+
topology:
23+
type: choice
24+
description: "Network topology"
25+
options:
26+
- p2p
27+
- legacy
28+
- mixed
29+
default: p2p
30+
utxo_backend:
31+
type: choice
32+
description: "UTxO backend"
33+
options:
34+
- ""
35+
- mem
36+
- disk
37+
default: ""
38+
byron_cluster:
39+
type: boolean
40+
default: false
41+
description: "Start cluster in Byron era"
42+
testrun_name:
43+
required: false
44+
description: "Test run name (internal)"
45+
skip_passed:
46+
type: boolean
47+
default: false
48+
description: "Skip tests that already passed (internal)"
49+
50+
run-name: ${{ inputs.testrun_name && 'Run:' || ''}} ${{ inputs.testrun_name }} ${{ (inputs.testrun_name && inputs.skip_passed) && ':repeat:' || '' }}
51+
52+
jobs:
53+
regression_tests:
54+
# reusable workflow from local repo and same branch as this config
55+
uses: ./.github/workflows/regression_reusable.yaml
56+
with:
57+
node_rev: ${{ inputs.node_rev }}
58+
cli_rev: ${{ inputs.cli_rev }}
59+
dbsync_rev: ${{ inputs.dbsync_rev }}
60+
cluster_era: ${{ inputs.cluster_era }}
61+
topology: ${{ inputs.topology }}
62+
utxo_backend: ${{ inputs.utxo_backend }}
63+
byron_cluster: ${{ inputs.byron_cluster }}
64+
testrun_name: ${{ inputs.testrun_name }}
65+
skip_passed: ${{ inputs.skip_passed }}
66+
env-path: .github/env_dbsync_config
67+
secrets:
68+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
TCACHE_BASIC_AUTH: ${{ secrets.TCACHE_BASIC_AUTH }}
70+
TCACHE_URL: ${{ secrets.TCACHE_URL }}

.github/workflows/regression-dbsync.yaml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 02 Regression tests with db-sync
1+
name: db-sync config tests
22

33
on:
44
workflow_dispatch:
@@ -19,22 +19,6 @@ on:
1919
- conway 10
2020
- conway 9
2121
default: conway 10
22-
markexpr:
23-
type: choice
24-
description: "Selection of tests"
25-
options:
26-
- all
27-
- dbsync
28-
- smoke
29-
- plutus
30-
- plutus and smoke
31-
- team_plutus
32-
- not long
33-
- conway only
34-
- dbsync and smoke
35-
- dbsync and plutus
36-
- dbsync and not long
37-
default: dbsync
3822
topology:
3923
type: choice
4024
description: "Network topology"
@@ -74,13 +58,12 @@ jobs:
7458
cli_rev: ${{ inputs.cli_rev }}
7559
dbsync_rev: ${{ inputs.dbsync_rev }}
7660
cluster_era: ${{ inputs.cluster_era }}
77-
markexpr: ${{ inputs.markexpr }}
7861
topology: ${{ inputs.topology }}
7962
utxo_backend: ${{ inputs.utxo_backend }}
8063
byron_cluster: ${{ inputs.byron_cluster }}
8164
testrun_name: ${{ inputs.testrun_name }}
8265
skip_passed: ${{ inputs.skip_passed }}
83-
env-path: .github/env_regression_dbsync
66+
env-path: .github/env_dbsync_config
8467
secrets:
8568
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8669
TCACHE_BASIC_AUTH: ${{ secrets.TCACHE_BASIC_AUTH }}

0 commit comments

Comments
 (0)