-
Notifications
You must be signed in to change notification settings - Fork 54
PE-38815 add_replica plan updated, test matrix added #480
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
Merged
AaronShannon
merged 14 commits into
add_replica_supported
from
PE-38815-add_replica-test-matrix
Aug 28, 2024
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c4277e4
PE-38815 add_replica plan updated, test matrix added
AaronShannon e2ed549
PE-38815 matrix updated
AaronShannon 299f045
PE-38815 removed CentOS 7 from matrix
AaronShannon 31ca6ea
PE-38815 workflow updated
AaronShannon 78a7c9c
PE-38815 workflow updated
AaronShannon 012f1cf
PE-38815 plan updated
AaronShannon 3025583
PE-38815 provision_test_cluster updated
AaronShannon 2278d91
PE-38815 matrix updated
AaronShannon 3fb4e16
PE-38815 matrix updated
AaronShannon 192a758
PE-38815 timeout increased
AaronShannon e3f3652
PE-38815 timeout increased
AaronShannon c745021
PE-38815 push trigger removed
AaronShannon fba0097
PE-38815 architectures updated
AaronShannon 67cac66
PE-38815 push trigger removed
AaronShannon 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 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,124 @@ | ||
--- | ||
name: "Add replica 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-add-replica: | ||
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: | ||
- standard | ||
- standard-with-dr | ||
- large | ||
- extra-large | ||
version: | ||
- 2021.7.7 | ||
- 2023.6.0 | ||
image: | ||
- almalinux-cloud/almalinux-8 | ||
steps: | ||
- name: "Checkout Source" | ||
uses: actions/checkout@v2 | ||
|
||
- 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 (specified architecture and a spare replica)' | ||
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 }}-and-spare-replica | ||
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 }} \ | ||
code_manager_auto_configure=true | ||
|
||
- name: 'Run add_replica plan' | ||
timeout-minutes: 60 | ||
run: | | ||
bundle exec bolt plan run peadm_spec::add_replica -v \ | ||
--inventoryfile spec/fixtures/litmus_inventory.yaml \ | ||
--modulepath spec/fixtures/modules \ | ||
--stream | ||
|
||
- 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 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the top this plan still has:
is that still the case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is being removed in the below PR:
#478