Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7326fc7
Upgraded module for Puppet 8 and current OS support
sourabhpatel-sumo Sep 1, 2026
a899dfc
Update CI lint command and add puppet install helper
sourabhpatel-sumo Sep 1, 2026
009ed32
Added BEAKER_PUPPET_COLLECTION environment variable
sourabhpatel-sumo Sep 1, 2026
5eb0904
Update acceptance test setup for Windows and Postgres
sourabhpatel-sumo Sep 1, 2026
f142df7
Fix Windows acceptance workflow: SSL copy, module versions, windows_env
sourabhpatel-sumo Sep 1, 2026
80ac086
Clear RUBYOPT for Windows subprocesses
sourabhpatel-sumo Sep 1, 2026
1aed5be
🔧chore(test): fix puppet binary path on windows
sourabhpatel-sumo Sep 1, 2026
63466af
🔧chore(windows): remove manual puppet agent installation and path
sourabhpatel-sumo Sep 1, 2026
6963a1e
🔧chore(deps): add ffi gem for Windows compatibility
sourabhpatel-sumo Sep 1, 2026
bad31dc
✨feat(test): move openssl unfreeze logic to separate file
sourabhpatel-sumo Sep 2, 2026
db65f51
♻️refactor(spec): hook OpenSSL unfreeze to avoid load order issues
sourabhpatel-sumo Sep 2, 2026
694a81a
✨feat(workflow): add minitar compatibility shim for puppet 8
sourabhpatel-sumo Sep 2, 2026
9b4c985
♻️refactor(sensu): allow mixed types in annotations
sourabhpatel-sumo Sep 2, 2026
b5324f8
✨feat(sensu): add sensu_pipeline resource type and properties
sourabhpatel-sumo Sep 2, 2026
c502163
🔧chore(ci): update acceptance test configurations
sourabhpatel-sumo Sep 3, 2026
b08e311
📝docs(tests): update BEAKER_set to rocky-9 in README
sourabhpatel-sumo Sep 3, 2026
e210a18
🐛 fix(sensu): resolve pr review blockers and test gaps
sourabhpatel-sumo Sep 8, 2026
ef46319
🔧 chore(sensu): restore plugin subsystem for pr split
sourabhpatel-sumo Sep 8, 2026
929280e
🐛 fix(ci): unfreeze ssl default_params for all rake tasks
sourabhpatel-sumo Sep 8, 2026
111bf5d
🐛 fix(sensu): fix ci gem/fact/test gaps exposed by real spec runs
sourabhpatel-sumo Sep 8, 2026
e22a7f6
🐛 fix(sensu): fix psych safety and pipeline constant warning
sourabhpatel-sumo Sep 8, 2026
e594bdc
🐛 fix(sensu): fix plugins_spec/repo_community_spec CI-breaking crash
sourabhpatel-sumo Sep 8, 2026
3417bc8
🐛 fix(ci): fix rexml gem, plugin acceptance skip, and docker timeout
sourabhpatel-sumo Sep 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .fixtures-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fixtures:
repo: https://github.com/richardc/puppet-datacat.git
yumrepo_core:
repo: https://github.com/puppetlabs/puppetlabs-yumrepo_core
puppet_version: ">= 6.0.0"
puppet_version: ">= 8.0.0"
chocolatey:
repo: https://github.com/puppetlabs/puppetlabs-chocolatey.git
# Needed by chocolatey
Expand All @@ -20,7 +20,7 @@ fixtures:
# Need by postgresql
augeas_core:
repo: https://github.com/puppetlabs/puppetlabs-augeas_core
puppet_version: ">= 6.0.0"
puppet_version: ">= 8.0.0"
# Need by postgresql
concat:
repo: https://github.com/puppetlabs/puppetlabs-concat.git
Expand All @@ -31,6 +31,6 @@ fixtures:
windows_env:
repo: https://github.com/voxpupuli/puppet-windows_env.git
systemd:
repo: https://github.com/camptocamp/puppet-systemd.git
repo: https://github.com/voxpupuli/puppet-systemd.git
symlinks:
sensu: "#{source_dir}"
30 changes: 15 additions & 15 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,48 @@ fixtures:
repositories:
apt:
repo: https://github.com/puppetlabs/puppetlabs-apt.git
ref: 5.0.1
ref: v11.3.2
stdlib:
repo: https://github.com/puppetlabs/puppetlabs-stdlib.git
ref: 5.1.0
ref: v9.7.0
datacat:
repo: https://github.com/richardc/puppet-datacat.git
ref: 0.6.2
yumrepo_core:
repo: https://github.com/puppetlabs/puppetlabs-yumrepo_core
ref: 1.0.1
puppet_version: ">= 6.0.0"
ref: v3.0.1
puppet_version: ">= 8.0.0"
chocolatey:
repo: https://github.com/puppetlabs/puppetlabs-chocolatey.git
ref: 3.0.0
ref: v9.0.0
# Needed by chocolatey
registry:
repo: https://github.com/puppetlabs/puppetlabs-registry.git
ref: 1.0.0
ref: v5.0.3
# Needed by chocolatey
powershell:
repo: https://github.com/puppetlabs/puppetlabs-powershell.git
ref: 1.0.1
ref: v6.1.0
# Need by postgresql
augeas_core:
repo: https://github.com/puppetlabs/puppetlabs-augeas_core
ref: 1.0.4
puppet_version: ">= 6.0.0"
ref: v2.0.1
puppet_version: ">= 8.0.0"
# Need by postgresql
concat:
repo: https://github.com/puppetlabs/puppetlabs-concat.git
ref: v6.0.0
ref: v10.0.1
postgresql:
repo: https://github.com/puppetlabs/puppetlabs-postgresql.git
ref: v6.4.0
ref: v10.6.3
archive:
repo: https://github.com/voxpupuli/puppet-archive.git
ref: 'v3.0.0'
ref: 'v7.1.0'
windows_env:
repo: https://github.com/voxpupuli/puppet-windows_env.git
ref: 'v3.0.0'
ref: 'v6.1.0'
systemd:
repo: https://github.com/camptocamp/puppet-systemd.git
ref: '2.0.0'
repo: https://github.com/voxpupuli/puppet-systemd.git
ref: 'v10.0.0'
symlinks:
sensu: "#{source_dir}"
39 changes: 29 additions & 10 deletions .github/workflows/acceptance-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,59 @@ on:
jobs:
acceptance-cluster:
runs-on: ubuntu-latest
timeout-minutes: 45
# Items marked as ci_build=yes are allowed to fail
continue-on-error: ${{ matrix.ci_build == 'yes' }}
strategy:
fail-fast: false
matrix:
puppet:
- puppet6
- puppet7
- puppet8
use_agent:
- no
- yes
ci_build:
- no
set:
- rocky-8-cluster
- ubuntu-24.04-cluster
env:
BEAKER_debug: true
name: Sensu Go Cluster ${{ matrix.puppet }} (use-agent=${{ matrix.use_agent }} CI=${{ matrix.ci_build }})
BEAKER_debug: false
name: Sensu Go Cluster ${{ matrix.set }} ${{ matrix.puppet }} (use-agent=${{ matrix.use_agent }} CI=${{ matrix.ci_build }})
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
ruby-version: '3.4'
bundler-cache: true
bundler: '2.1.0'
- name: Decrypt secrets
env:
SENSU_SECRETS_PASSWORD: ${{ secrets.SENSU_SECRETS_PASSWORD }}
if: ${{ env.SENSU_SECRETS_PASSWORD != null }}
run: ./tests/decrypt-secrets.sh
- name: Restore Docker image cache
uses: actions/cache@v6
with:
path: /tmp/.docker-cache
key: docker-${{ matrix.set }}-${{ hashFiles(format('spec/acceptance/nodesets/{0}.yml', matrix.set)) }}
restore-keys: docker-${{ matrix.set }}-
- name: Load cached Docker images
run: |
if [ -d /tmp/.docker-cache ]; then
for f in /tmp/.docker-cache/*.tar; do [ -f "$f" ] && docker load -i "$f" || true; done
fi
- name: Run tests
run: bundle exec rake acceptance
env:
BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet }}
BEAKER_set: centos-7-cluster
RUN_ACCEPTANCE: 1
BEAKER_set: ${{ matrix.set }}
BEAKER_PUPPET_COLLECTION: puppet8
BEAKER_sensu_mode: cluster
BEAKER_sensu_use_agent: ${{ matrix.use_agent }}
BEAKER_sensu_ci_build: ${{ matrix.ci_build }}
- name: Save Docker images to cache
if: always()
run: |
mkdir -p /tmp/.docker-cache
docker images --format '{{.Repository}}:{{.Tag}}' | grep '^sensu-' | \
xargs -I{} sh -c 'docker save {} -o /tmp/.docker-cache/$(echo {} | tr "/:." "_").tar' || true
48 changes: 34 additions & 14 deletions .github/workflows/acceptance-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
acceptance-full:
runs-on: ubuntu-latest
timeout-minutes: 45
# Items marked as ci_build=yes are allowed to fail
continue-on-error: ${{ matrix.ci_build == 'yes' }}
strategy:
Expand All @@ -20,44 +21,63 @@ jobs:
- types
- examples
puppet:
- puppet6
- puppet7
- puppet8
use_agent:
- no
ci_build:
- no
set:
- rocky-9
- ubuntu-24.04
include:
- sensu_mode: types
puppet: puppet6
use_agent: yes
ci_build: no
- sensu_mode: types
puppet: puppet7
puppet: puppet8
use_agent: yes
ci_build: no
set: rocky-9
- sensu_mode: bolt
puppet: puppet6
puppet: puppet8
use_agent: no
ci_build: no
set: rocky-9
env:
BEAKER_debug: true
BEAKER_debug: false
name: ${{ matrix.set }} ${{ matrix.puppet }} (mode=${{ matrix.sensu_mode }} use-agent=${{ matrix.use_agent }} CI=${{ matrix.ci_build }})
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
ruby-version: '3.4'
bundler-cache: true
bundler: '2.1.0'
- name: Decrypt secrets
env:
SENSU_SECRETS_PASSWORD: ${{ secrets.SENSU_SECRETS_PASSWORD }}
if: ${{ env.SENSU_SECRETS_PASSWORD != null }}
run: ./tests/decrypt-secrets.sh
- name: Restore Docker image cache
uses: actions/cache@v6
with:
path: /tmp/.docker-cache
key: docker-${{ matrix.set }}-${{ hashFiles(format('spec/acceptance/nodesets/{0}.yml', matrix.set)) }}
restore-keys: docker-${{ matrix.set }}-
- name: Load cached Docker images
run: |
if [ -d /tmp/.docker-cache ]; then
for f in /tmp/.docker-cache/*.tar; do [ -f "$f" ] && docker load -i "$f" || true; done
fi
- name: Run tests
run: bundle exec rake acceptance
env:
BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet }}
BEAKER_set: centos-7
RUN_ACCEPTANCE: 1
BEAKER_set: ${{ matrix.set }}
BEAKER_PUPPET_COLLECTION: puppet8
BEAKER_sensu_mode: ${{ matrix.sensu_mode }}
BEAKER_sensu_use_agent: ${{ matrix.use_agent }}
BEAKER_sensu_ci_build: ${{ matrix.ci_build }}
- name: Save Docker images to cache
if: always()
run: |
mkdir -p /tmp/.docker-cache
docker images --format '{{.Repository}}:{{.Tag}}' | grep '^sensu-' | \
xargs -I{} sh -c 'docker save {} -o /tmp/.docker-cache/$(echo {} | tr "/:." "_").tar' || true
55 changes: 55 additions & 0 deletions .github/workflows/acceptance-windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Acceptance Windows

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
acceptance-windows:
runs-on: windows-latest
timeout-minutes: 45
name: Windows sensu::cli and sensu::agent
env:
BUNDLE_WITHOUT: development
steps:
- uses: actions/checkout@v7
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
- name: Configure RUBYOPT for puppet OpenSSL and minitar compatibility
shell: pwsh
run: |
$fix = "${{ github.workspace }}/spec/openssl_unfreeze.rb" -replace '\\', '/'
$vendor = "${{ github.workspace }}/spec/vendor" -replace '\\', '/'
"RUBYOPT=-I $vendor -r $fix" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Install module and dependencies
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
$modulepath = "C:\ProgramData\PuppetLabs\code\environments\production\modules"
New-Item -ItemType Directory -Force $modulepath | Out-Null
# Install this module from the checkout so tests use current code
New-Item -ItemType Directory -Force "$modulepath\sensu" | Out-Null
Get-ChildItem -Path "." | Where-Object { $_.Name -notin @('vendor', '.git') } | Copy-Item -Destination "$modulepath\sensu" -Recurse -Force
# Provide the Puppet CA cert so ssl_ca_source resolves — the sensu class defaults
# ssl_ca_source to $facts['puppet_localcacert'], which points here on Windows.
# A fresh runner has no Puppet master, so no CA cert exists at that path yet.
New-Item -ItemType Directory -Force "C:\ProgramData\PuppetLabs\puppet\etc\ssl" | Out-Null
Get-ChildItem -Path "tests\ssl" | Copy-Item -Destination "C:\ProgramData\PuppetLabs\puppet\etc\ssl" -Recurse -Force
# Set certname for predictable $trusted['certname'] used as api_host default
bundle exec puppet config set --section main certname sensu_agent
# Install Forge dependencies (Windows-relevant subset)
bundle exec puppet module install puppetlabs-stdlib --version ">= 9.0.0 < 10.0.0"
bundle exec puppet module install richardc-datacat --version ">= 0.6.0 < 2.0.0"
bundle exec puppet module install puppet-archive --version ">= 7.0.0 < 8.0.0"
bundle exec puppet module install puppetlabs-chocolatey --version ">= 9.0.0 < 10.0.0"
# puppet-windows_env 6.1.0 supports Puppet 8 but has not been published to the Forge
git clone --depth 1 --branch v6.1.0 https://github.com/voxpupuli/puppet-windows_env.git "$modulepath\windows_env"
- name: Run Windows acceptance tests
shell: pwsh
run: bundle exec rake acceptance:windows
46 changes: 32 additions & 14 deletions .github/workflows/acceptance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,63 @@ on:
jobs:
acceptance:
runs-on: ubuntu-latest
timeout-minutes: 30
# Items marked as ci_build=yes are allowed to fail
continue-on-error: ${{ matrix.ci_build == 'yes' }}
strategy:
fail-fast: false
matrix:
set:
- centos-7
- rocky-8
- debian-10
- ubuntu-1804
- ubuntu-2004
- amazonlinux-201803
- rocky-9
- debian-12
- ubuntu-24.04
- ubuntu-22.04
- almalinux-9
puppet:
- puppet6
- puppet7
- puppet8
ci_build:
- no
exclude:
- puppet: puppet7
- puppet: puppet8
ci_build: yes
env:
BEAKER_debug: true
BEAKER_debug: false
name: ${{ matrix.set }} ${{ matrix.puppet }} (ci=${{ matrix.ci_build }})
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
ruby-version: '3.4'
bundler-cache: true
bundler: '2.1.0'
- name: Decrypt secrets
env:
SENSU_SECRETS_PASSWORD: ${{ secrets.SENSU_SECRETS_PASSWORD }}
if: ${{ env.SENSU_SECRETS_PASSWORD != null }}
run: ./tests/decrypt-secrets.sh
- name: Restore Docker image cache
uses: actions/cache@v6
with:
path: /tmp/.docker-cache
key: docker-${{ matrix.set }}-${{ hashFiles(format('spec/acceptance/nodesets/{0}.yml', matrix.set)) }}
restore-keys: docker-${{ matrix.set }}-
- name: Load cached Docker images
run: |
if [ -d /tmp/.docker-cache ]; then
for f in /tmp/.docker-cache/*.tar; do [ -f "$f" ] && docker load -i "$f" || true; done
fi
- name: Run tests
run: bundle exec rake acceptance
env:
BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet }}
RUN_ACCEPTANCE: 1
BEAKER_set: ${{ matrix.set }}
BEAKER_PUPPET_COLLECTION: puppet8
BEAKER_sensu_mode: base
BEAKER_sensu_use_agent: no
BEAKER_sensu_ci_build: ${{ matrix.ci_build }}
- name: Save Docker images to cache
if: always()
run: |
mkdir -p /tmp/.docker-cache
docker images --format '{{.Repository}}:{{.Tag}}' | grep '^sensu-' | \
xargs -I{} sh -c 'docker save {} -o /tmp/.docker-cache/$(echo {} | tr "/:." "_").tar' || true
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
deploy:
name: 'deploy to forge'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v7
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
ruby-version: '3.4'
bundler-cache: true
bundler: '2.1.0'
- name: Build and Deploy
env:
BLACKSMITH_FORGE_USERNAME: sensu
Expand Down
Loading