Skip to content

Commit 0c5e4b1

Browse files
committed
(PIE-1595) Testing Matrix
1 parent 7d66010 commit 0c5e4b1

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.github/workflows/latest_testing.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: "Setup Test Matrix"
88
runs-on: ubuntu-20.04
99
outputs:
10-
matrix: ${{ steps.build-matrix.outputs.matrix }}
10+
matrix: ${{ steps.set-matrix.outputs.matrix }}
1111

1212
steps:
1313
- name: Checkout Source
@@ -34,19 +34,19 @@ jobs:
3434
- name: Set latest release
3535
id: latest_release
3636
run: |
37-
out=$(jq -c '[.[] | select(.lts == false)][0].latest | {"collection": [.]}' <<<'${{ steps.curl_forge.outputs.forge_response }}')
37+
out=$(jq -c '[.[] | select(.lts == false)][0].latest | {"pe_version": [.]}' <<<'${{ steps.curl_forge.outputs.forge_response }}')
3838
echo "latest=$out" >> $GITHUB_OUTPUT
39-
- name: Setup Spec Test Matrix
40-
id: set-matrix
39+
- name: Build Test Matrix
40+
id: build-matrix
4141
run: |
42-
echo "matrix={\"platforms\":[\"rhel-8\",\"rhel-9\",\"sles-15\",\"ubuntu-2204-lts\"]}" >> $GITHUB_OUTPUT
42+
bundle exec matrix_from_metadata_v3 --provision-exclude docker --arch-exclude arm --platform-exclude debian
4343
- name: Setup Acceptance Test Matrix
44-
id: build-matrix
44+
id: set-matrix
4545
run: |
46-
out=$(echo '${{ steps.set-matrix.outputs.matrix }}' | jq -c --argjson latest '${{ steps.latest_release.outputs.latest }}' '.collection += $latest.collection')
46+
out=$(echo '${{ steps.build-matrix.outputs.matrix }}' | jq -c --argjson latest '${{ steps.latest_release.outputs.latest }}' '.pe_version += $latest.pe_version')
4747
echo "matrix=$out" >> $GITHUB_OUTPUT
4848
Integration:
49-
name: "${{matrix.platforms}}, ${{matrix.collection}}"
49+
name: "${{matrix.platforms.label}}, ${{matrix.pe_version}}"
5050
needs:
5151
- setup_matrix
5252
if: ${{ needs.setup_matrix.outputs.matrix != '{}' }}
@@ -78,7 +78,7 @@ jobs:
7878
echo ::endgroup::
7979
- name: Provision test environment
8080
run: |
81-
bundle exec bolt --modulepath spec/fixtures/modules plan run splunk_hec::acceptance::provision_machines using='provision_service' image='${{ matrix.platforms }}'
81+
bundle exec bolt --modulepath spec/fixtures/modules plan run splunk_hec::acceptance::provision_machines using='provision_service' image='${{ matrix.platforms.image }}'
8282
echo ::group::=== REQUEST ===
8383
cat request.json || true
8484
echo
@@ -96,7 +96,7 @@ jobs:
9696
echo INVENTORY_PATH=$FILE >> $GITHUB_ENV
9797
- name: Install server
9898
run: |
99-
bundle exec bolt --modulepath spec/fixtures/modules plan run splunk_hec::acceptance::server_setup puppet_version='${{ matrix.collection }}' -i ./$INVENTORY_PATH --stream
99+
bundle exec bolt --modulepath spec/fixtures/modules plan run splunk_hec::acceptance::server_setup puppet_version='${{ matrix.pe_version }}' -i ./$INVENTORY_PATH --stream
100100
- name: Install module
101101
run: |
102102
bundle exec rake 'litmus:install_module'

.github/workflows/lts_testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Setup Spec Test Matrix
4040
id: set-matrix
4141
run: |
42-
echo "matrix={\"platforms\":[\"rhel-8\",\"rhel-9\",\"sles-15\",\"ubuntu-2204-lts\"]}" >> $GITHUB_OUTPUT
42+
echo "matrix={\"platforms\":[\"rhel-8\",\"rhel-9\",\"sles-15\",\"ubuntu-2004-lts\"]}" >> $GITHUB_OUTPUT
4343
- name: Setup Acceptance Test Matrix
4444
id: build-matrix
4545
run: |

.github/workflows/nightly_testing.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
- name: Get Test Matrix
3131
id: get-matrix
3232
run: |
33-
bundle exec matrix_from_metadata_v3 --provision-include provision_service --output stdout
3433
bundle exec matrix_from_metadata_v3
3534
- name: Set nightly releases
3635
id: nightly_release
@@ -40,7 +39,7 @@ jobs:
4039
- name: Setup Spec Test Matrix
4140
id: set-matrix
4241
run: |
43-
echo "matrix={\"platforms\":[\"rhel-8\",\"rhel-9\",\"sles-15\",\"ubuntu-2204-lts\"]}" >> $GITHUB_OUTPUT
42+
echo "matrix={\"platforms\":[\"rhel-8\",\"rhel-9\",\"ubuntu-2204-lts\"]}" >> $GITHUB_OUTPUT
4443
- name: Setup Acceptance Test Matrix
4544
id: build-matrix
4645
run: |

plans/acceptance/pe_server_setup.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
)
3131

3232
$cmd = @("CMD")
33+
df -h
3334
echo 'puppetlabsPi3!' | puppet access login -l 1y --username admin
3435
puppet infrastructure tune | sed "s,\\x1B\\[[0-9;]*[a-zA-Z],,g" > /etc/puppetlabs/code/environments/production/data/common.yaml
3536
puppet agent -t

0 commit comments

Comments
 (0)