-
Notifications
You must be signed in to change notification settings - Fork 56
(PE-40162) XL PE approach to CI #540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 5 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5cd9ef8
(PE-40162)approach to CI
B00885424 a3e4ba0
Apply Yamlfix format changes.
B00885424 8d11819
(PE-40222) Updating file to add a job to provision a VM to replace a …
B00885424 fc08510
Merge branch 'PE-40162-approach-to-CI' of https://github.com/puppetla…
B00885424 5837398
Apply Yamlfix format changes.
B00885424 2b92dd9
(PE-40162)approach to CI
B00885424 a6abd4d
(PE-40222) Updating file to add a job to provision a VM to replace a …
B00885424 3cb8fb0
Apply Yamlfix format changes.
B00885424 30c6d01
Apply Yamlfix format changes.
B00885424 fd5340f
Merge branch 'PE-40162-approach-to-CI' of https://github.com/puppetla…
B00885424 1444c12
Moving file to suggested folder
B00885424 054b2de
Temporarily removing the other workflows to avoid triggering all the …
B00885424 0bee54e
Modifying to remove a line preventing the test from running, and prov…
B00885424 476787b
typo fix
B00885424 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,172 @@ | ||
| --- | ||
| name: Install test matrix | ||
| on: | ||
| pull_request: | ||
| paths: | ||
| - .github/workflows/**/* | ||
| - spec/**/* | ||
| - lib/**/* | ||
| - tasks/**/* | ||
| - functions/**/* | ||
| - types/**/* | ||
| - plans/**/* | ||
| - hiera/**/* | ||
| - manifests/**/* | ||
| - templates/**/* | ||
| - files/**/* | ||
| - metadata.json | ||
| - Rakefile | ||
| - Gemfile | ||
| - provision.yaml | ||
| - .rspec | ||
| - .rubocop.yml | ||
| - .puppet-lint.rc | ||
| - .fixtures.yml | ||
| branches: [main] | ||
| workflow_dispatch: {} | ||
| jobs: | ||
| test-install: | ||
| name: PE ${{ matrix.version }} ${{ matrix.architecture }} on ${{ matrix.image }} | ||
| runs-on: ubuntu-20.04 | ||
| env: | ||
| BOLT_GEM: true | ||
| BOLT_DISABLE_ANALYTICS: true | ||
| LANG: en_US.UTF-8 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| architecture: [extra-large-with-dr] | ||
| version: [2023.8.0] # can change to test multiple versions once this one works | ||
| image: [almalinux-cloud/almalinux-8] | ||
| steps: | ||
| - name: Checkout Source | ||
| uses: actions/checkout@v4 | ||
| - name: Activate Ruby 2.7 | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: '2.7' | ||
| bundler-cache: true | ||
| - name: Print bundle environment | ||
| if: ${{ github.repository_owner == 'puppetlabs' }} | ||
| run: | | ||
| echo ::group::info:bundler | ||
| bundle env | ||
| echo ::endgroup:: | ||
| - name: Provision test cluster | ||
| timeout-minutes: 15 | ||
| run: | | ||
| echo ::group::prepare | ||
| mkdir -p $HOME/.ssh | ||
| echo 'Host *' > $HOME/.ssh/config | ||
| echo ' ServerAliveInterval 150' >> $HOME/.ssh/config | ||
| echo ' ServerAliveCountMax 2' >> $HOME/.ssh/config | ||
| bundle exec rake spec_prep | ||
| echo ::endgroup:: | ||
| echo ::group::provision | ||
| bundle exec bolt plan run peadm_spec::provision_test_cluster \ | ||
| --modulepath spec/fixtures/modules \ | ||
| provider=provision_service \ | ||
| image=${{ matrix.image }} \ | ||
| architecture=${{ matrix.architecture }} \ | ||
| --log-level trace | ||
| echo ::endgroup:: | ||
| echo ::group::info:request | ||
| cat request.json || true; echo | ||
| echo ::endgroup:: | ||
| echo ::group::info:inventory | ||
| sed -e 's/password: .*/password: "[redacted]"/' < spec/fixtures/litmus_inventory.yaml || true | ||
| echo ::endgroup:: | ||
| - name: Install PE on test cluster | ||
| timeout-minutes: 120 | ||
| run: | | ||
| bundle exec bolt plan run peadm_spec::install_test_cluster \ | ||
| --inventoryfile spec/fixtures/litmus_inventory.yaml \ | ||
| --modulepath spec/fixtures/modules \ | ||
| architecture=${{ matrix.architecture }} \ | ||
| version=${{ matrix.version }} \ | ||
| console_password=${{ secrets.CONSOLE_PASSWORD }} | ||
| - name: Tear down test cluster | ||
| if: ${{ always() }} | ||
| continue-on-error: true | ||
| run: |- | ||
| if [ -f spec/fixtures/litmus_inventory.yaml ]; then | ||
| echo ::group::tear_down | ||
| bundle exec rake 'litmus:tear_down' | ||
| echo ::endgroup:: | ||
| echo ::group::info:request | ||
| cat request.json || true; echo | ||
| echo ::endgroup:: | ||
| fi | ||
| test-backup: # to replace failed VM | ||
| test-install: | ||
| name: PE ${{ matrix.version }} ${{ matrix.architecture }} on ${{ matrix.image }} | ||
| runs-on: ubuntu-20.04 | ||
| env: | ||
| BOLT_GEM: true | ||
| BOLT_DISABLE_ANALYTICS: true | ||
| LANG: en_US.UTF-8 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| architecture: [extra-large-with-dr] | ||
| version: [2023.8.0] # can change to test multiple versions once this one works | ||
| image: [almalinux-cloud/almalinux-8] | ||
| steps: | ||
| - name: Checkout Source | ||
| uses: actions/checkout@v4 | ||
| - name: Activate Ruby 2.7 | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: '2.7' | ||
| bundler-cache: true | ||
| - name: Print bundle environment | ||
| if: ${{ github.repository_owner == 'puppetlabs' }} | ||
| run: | | ||
| echo ::group::info:bundler | ||
| bundle env | ||
| echo ::endgroup:: | ||
| - name: Provision test cluster | ||
| timeout-minutes: 15 | ||
| run: | | ||
| echo ::group::prepare | ||
| mkdir -p $HOME/.ssh | ||
| echo 'Host *' > $HOME/.ssh/config | ||
| echo ' ServerAliveInterval 150' >> $HOME/.ssh/config | ||
| echo ' ServerAliveCountMax 2' >> $HOME/.ssh/config | ||
| bundle exec rake spec_prep | ||
| echo ::endgroup:: | ||
| echo ::group::provision | ||
| bundle exec bolt plan run peadm_spec::provision_test_cluster \ | ||
| --modulepath spec/fixtures/modules \ | ||
| provider=provision_service \ | ||
| image=${{ matrix.image }} \ | ||
| architecture=${{ matrix.architecture }} \ | ||
| --log-level trace | ||
| echo ::endgroup:: | ||
| echo ::group::info:request | ||
| cat request.json || true; echo | ||
| echo ::endgroup:: | ||
| echo ::group::info:inventory | ||
| sed -e 's/password: .*/password: "[redacted]"/' < spec/fixtures/litmus_inventory.yaml || true | ||
| echo ::endgroup:: | ||
| - name: Install PE on test cluster | ||
| timeout-minutes: 120 | ||
| run: | | ||
| bundle exec bolt plan run peadm_spec::install_test_cluster \ | ||
| --inventoryfile spec/fixtures/litmus_inventory.yaml \ | ||
| --modulepath spec/fixtures/modules \ | ||
| architecture=${{ matrix.architecture }} \ | ||
| version=${{ matrix.version }} \ | ||
| console_password=${{ secrets.CONSOLE_PASSWORD }} | ||
| - name: Tear down test cluster | ||
| if: ${{ always() }} | ||
| continue-on-error: true | ||
| run: |- | ||
| if [ -f spec/fixtures/litmus_inventory.yaml ]; then | ||
| echo ::group::tear_down | ||
| bundle exec rake 'litmus:tear_down' | ||
| echo ::endgroup:: | ||
| echo ::group::info:request | ||
| cat request.json || true; echo | ||
| echo ::endgroup:: | ||
| fi |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.