Skip to content

Commit

Permalink
Skip EOL operating systems in GHA acceptance tests
Browse files Browse the repository at this point in the history
With CentOS Linux 7 and CentOS Stream 8 going EOL soon, these will start
to fail because mirrors will no longer be available. This creates an
annotation and skips the OS release.
  • Loading branch information
ekohl committed May 7, 2024
1 parent 31c4a81 commit 2f09fe7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/puppet_metadata/github_actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,21 @@ def beaker_os_releases
yield [os, 'rolling', distro_puppet_version]
else
releases&.each do |release|
if PuppetMetadata::OperatingSystem.eol?(os, release)
message = "Skipping EOL operating system #{os} #{release}"

if (github_output = ENV.fetch('GITHUB_OUTPUT', nil))
File.open(github_output, 'a') do |f|
# TODO: determine file and position within the file
f.write "::warning file=metadata.json::#{message}"
end
else
warn message
end

next
end

majors.each do |puppet_version|
if AIO.has_aio_build?(os, release, puppet_version[:value])
yield [os, release, puppet_version]
Expand Down

0 comments on commit 2f09fe7

Please sign in to comment.