Skip to content

Commit 6082e59

Browse files
(PE-40377) deal with missing entries in inventory.yaml. temp remove other archs and PE versions.
1 parent 47b60d0 commit 6082e59

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/test-migration.yaml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,15 @@ jobs:
3535
strategy:
3636
fail-fast: false
3737
matrix:
38-
architecture: [standard, large, extra-large, standard-with-dr, large-with-dr, extra-large-with-dr]
39-
version: [2021.7.9, 2023.8.1, 2025.0.0]
38+
architecture:
39+
- standard
40+
# - large
41+
# - extra-large
42+
# - standard-with-dr
43+
# - large-with-dr
44+
# - extra-large-with-dr
45+
# version: [2021.7.9, 2023.8.1, 2025.0.0]
46+
version: [2025.0.0]
4047
image: [almalinux-cloud/almalinux-8]
4148
steps:
4249
- name: Checkout Source
@@ -100,14 +107,14 @@ jobs:
100107
bundle exec bolt plan run peadm_spec::test_migration \
101108
--inventoryfile spec/fixtures/litmus_inventory.yaml \
102109
--modulepath spec/fixtures/modules \
103-
primary_host=$(yq '.groups[].targets[] | select(.vars.role == "primary") | .name' spec/fixtures/litmus_inventory.yaml) \
104-
replica_host=$(yq '.groups[].targets[] | select(.vars.role == "replica") | .name' spec/fixtures/litmus_inventory.yaml) \
105-
primary_postgresql_host=$(yq '.groups[].targets[] | select(.vars.role == "primary-pdb-postgresql") | .name' spec/fixtures/litmus_inventory.yaml) \
106-
replica_postgresql_host=$(yq '.groups[].targets[] | select(.vars.role == "replica-pdb-postgresql") | .name' spec/fixtures/litmus_inventory.yaml) \
107-
new_primary_host=$(yq '.groups[].targets[] | select(.vars.role == "new-primary") | .name' spec/fixtures/litmus_inventory.yaml) \
108-
new_replica_host=$(yq '.groups[].targets[] | select(.vars.role == "new-replica") | .name' spec/fixtures/litmus_inventory.yaml) \
109-
new_primary_postgresql_host=$(yq '.groups[].targets[] | select(.vars.role == "new-primary-pdb-postgresql") | .name' spec/fixtures/litmus_inventory.yaml) \
110-
new_replica_postgresql_host=$(yq '.groups[].targets[] | select(.vars.role == "new-replica-pdb-postgresql") | .name' spec/fixtures/litmus_inventory.yaml) \
110+
primary_host=$(yq -r '.groups[].targets[] | select(.vars.role == "primary") | .name // ""' spec/fixtures/litmus_inventory.yaml) \
111+
replica_host=$(yq -r '.groups[].targets[] | select(.vars.role == "replica") | .name // ""' spec/fixtures/litmus_inventory.yaml) \
112+
primary_postgresql_host=$(yq -r '.groups[].targets[] | select(.vars.role == "primary-pdb-postgresql") | .name // ""' spec/fixtures/litmus_inventory.yaml) \
113+
replica_postgresql_host=$(yq -r '.groups[].targets[] | select(.vars.role == "replica-pdb-postgresql") | .name // ""' spec/fixtures/litmus_inventory.yaml) \
114+
new_primary_host=$(yq -r '.groups[].targets[] | select(.vars.role == "new-primary") | .name // ""' spec/fixtures/litmus_inventory.yaml) \
115+
new_replica_host=$(yq -r '.groups[].targets[] | select(.vars.role == "new-replica") | .name // ""' spec/fixtures/litmus_inventory.yaml) \
116+
new_primary_postgresql_host=$(yq -r '.groups[].targets[] | select(.vars.role == "new-primary-pdb-postgresql") | .name // ""' spec/fixtures/litmus_inventory.yaml) \
117+
new_replica_postgresql_host=$(yq -r '.groups[].targets[] | select(.vars.role == "new-replica-pdb-postgresql") | .name // ""' spec/fixtures/litmus_inventory.yaml) \
111118
--no-host-key-check
112119
- name: Install PE on test cluster
113120
timeout-minutes: 120

0 commit comments

Comments
 (0)