-
Notifications
You must be signed in to change notification settings - Fork 232
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
chore: Fix tests, remove EOL OSes, fix Ruby 3.4 compatibility warnings #421
Draft
RulerOf
wants to merge
18
commits into
test-kitchen:main
Choose a base branch
from
RulerOf:fix-tests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
355bb2a
fix: Support docker build output for Docker Desktop v4.31
RulerOf 9df17f1
chore: remove unused integration test files
RulerOf 0eee013
feat: Ruby 3.4.0 compatibility
RulerOf c2a06f7
feat: Use slightly-newer inspec in development
RulerOf c807bee
feat: Test dockerfile build with Oracle Linux
RulerOf 66a894f
feat: Stop installing Chef in every test suite
RulerOf 48430e9
chore: Switch all tests to inspec verifier
RulerOf b878f08
chore: Update gitignore
RulerOf e275469
chore: Remove EOL operating systems from test suite
RulerOf 3ee6ad5
chore: Fix yaml formatting
RulerOf 2004b94
chore: More restrictive Inspec pin
RulerOf ccc3c94
fix: release please configs
Stromweld 8ea4e37
chore: remove inspec suite
RulerOf 5c61930
fix: re-require lib/docker/version.rb
RulerOf 42ffa29
chore: Rework test suites to use kitchen.yml
RulerOf a84fe35
chore: test supported opensuse 15.5 and latest 15
RulerOf f8e3b26
feat: Implement `kitchen login` for docker transport
RulerOf e961595
fix: Use newer syntax for ENV variables
RulerOf 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
Validating CODEOWNERS rules …
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 @@ | ||
@test-kitchen/maintainers |
This file was deleted.
Oops, something went wrong.
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,88 @@ | ||
--- | ||
name: 'Lint, Unit & Integration Tests' | ||
|
||
"on": | ||
pull_request: | ||
|
||
jobs: | ||
lint-unit: | ||
uses: test-kitchen/.github/.github/workflows/lint-unit.yml@main | ||
|
||
build-matrix: | ||
name: Build test matrix from test-kitchen config | ||
runs-on: ubuntu-latest | ||
needs: lint-unit | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.3" | ||
bundler-cache: true | ||
- name: Discover Windows suites | ||
id: windows | ||
run: | | ||
cat << "EORUBY" | bundle exec ruby >> "$GITHUB_OUTPUT" | ||
require 'inspec' | ||
require 'kitchen' | ||
|
||
windows_loader = Kitchen::Loader::YAML.new(project_config: './kitchen.windows.yml') | ||
windows_suites = Kitchen::Config.new(loader: windows_loader).instances.map { |instance| instance.name } | ||
|
||
puts "suites=#{windows_suites.to_json}" | ||
EORUBY | ||
- name: Discover Linux suites | ||
id: linux | ||
run: | | ||
cat << "EORUBY" | bundle exec ruby >> "$GITHUB_OUTPUT" | ||
require 'inspec' | ||
require 'kitchen' | ||
|
||
linux_loader = Kitchen::Loader::YAML.new(project_config: './kitchen.yml') | ||
linux_suites = Kitchen::Config.new(loader: linux_loader).instances.map { |instance| instance.name } | ||
|
||
puts "suites=#{linux_suites.to_json}" | ||
EORUBY | ||
outputs: | ||
windows-suites: ${{ steps.windows.outputs.suites }} | ||
linux-suites: ${{ steps.linux.outputs.suites }} | ||
|
||
integration-windows: | ||
name: Windows ${{matrix.suite}} | ||
runs-on: windows-latest | ||
needs: | ||
- build-matrix | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
suite: ${{ fromJson(needs.build-matrix.outputs.windows-suites) }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.3" | ||
bundler-cache: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- run: bundle exec kitchen test ${{ matrix.suite }} -l debug | ||
|
||
integration-linux: | ||
name: Linux ${{matrix.suite}} | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build-matrix | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
suite: ${{ fromJson(needs.build-matrix.outputs.linux-suites) }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.3" | ||
bundler-cache: true | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- run: bundle exec kitchen test ${{ matrix.suite }} -l debug |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,5 @@ tmp | |
.kitchen.local.yml | ||
Dockerfile | ||
.DS_Store | ||
bin/* | ||
.idea/* |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
--- | ||
default: true | ||
MD004: false | ||
MD012: false | ||
MD013: false | ||
MD024: false | ||
MD026: false | ||
MD036: false | ||
MD012: false | ||
MD029: false | ||
MD004: false |
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,3 @@ | ||
{ | ||
".": "3.2.0" | ||
} |
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.
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.
This slug should get you the latest without having to maintain the version here
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.
I ended up putting in the two versions separately because both of them showed to still be under active support on the website.
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.
Oh wait I see what you mean. Specify a "latest v15" in addition to a "specific v15."
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.
Leap:15 should always be the latest