Skip to content

Commit

Permalink
Removed debugging apart from macos latest pick, disabled CI/CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurphy18 committed Nov 7, 2024
1 parent 6871443 commit 1b8b907
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 961 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jobs:
separator: ","
files: |
bootstrap-salt.*
## DGM Gemfile
## DGM kitchen*.yml
tests/**
.github/workflows/**
files_ignore: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/templates/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jobs:
separator: ","
files: |
bootstrap-salt.*
## DGM Gemfile
## DGM kitchen*.yml
tests/**
.github/workflows/**
files_ignore: |
Expand Down
50 changes: 8 additions & 42 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
jobs:
Test:
name: ${{ matrix.instance }}
## DGM runs-on: ubuntu-20.04
## runs-on: ubuntu-20.04
runs-on: ubuntu-latest
container:
image: ghcr.io/saltstack/salt-ci-containers/packaging:ubuntu-22.04
Expand All @@ -41,52 +41,18 @@ jobs:
steps:
- uses: actions/checkout@v4

## DGM - name: Setup Ruby
## DGM uses: ruby/setup-ruby@v1
## DGM with:
## DGM ruby-version: 2.6.10
## DGM ## ruby-version: 3.3.4
## DGM bundler-cache: true

## DGM - name: Set up Python 3.10
## DGM uses: actions/setup-python@v5
## DGM with:
## DGM python-version: "3.10"

## DGM - name: Install Python Dependencies
## DGM run: |
## DGM python3 -m pip install -U pip
## DGM python3 -m pip install -r tests/requirements.txt

## DGM - name: Create Test Instance
## DGM run: |
## DGM bundle exec kitchen create ${{ matrix.instance }}-${{ inputs.distro-slug }} || \
## DGM (sleep 10 && bundle exec kitchen create ${{ matrix.instance }}-${{ inputs.distro-slug }})
## DGM sleep 2

## DGM - name: Test Bootstrap
## DGM run: |
## DGM bundle exec kitchen verify ${{ matrix.instance }}-${{ inputs.distro-slug }}
## DGM sleep 2

## DGM - name: Destroy Test Instance
## DGM if: always()
## DGM run: |
## DGM bundle exec kitchen destroy ${{ matrix.instance }}-${{ inputs.distro-slug }}
## DGM sleep 2

- name: Install Pytest
run: |
pip install -U pytest
- name: Bootstrap Salt
run: |
## sudo sh -x ./bootstrap-salt.sh
sh -x ./bootstrap-salt.sh
## TBD Disabled until CI/CD is functional
## - name: Bootstrap Salt
## run: |
## sh -x ./bootstrap-salt.sh

- name: Test Bootstrap
run: |
pytest --cache-clear -v -s -ra --log-cli-level=debug tests/integration/
## - name: Test Bootstrap
## run: |
## pytest --cache-clear -v -s -ra --log-cli-level=debug tests/integration/

- name: Set Exit Status
if: always()
Expand Down
54 changes: 9 additions & 45 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,11 @@ on:
default: 20
description: The timeout(in minutes) for the workflow

## DGM env:
## DGM KITCHEN_LOCAL_YAML: 'kitchen.macos.yml'

jobs:
Test:
name: ${{ matrix.instance }}
## DGM runs-on: ${{ inputs.runs-on }}
runs-on: macos-12
## runs-on: ${{ inputs.runs-on }}
runs-on: macos-13
timeout-minutes: ${{ inputs.timeout }}
strategy:
fail-fast: false
Expand All @@ -45,51 +42,18 @@ jobs:
steps:
- uses: actions/checkout@v4

## DGM - name: Setup Ruby
## DGM uses: ruby/setup-ruby@v1
## DGM with:
## DGM ruby-version: 2.6.10
## DGM ## ruby-version: 3.3.4
## DGM bundler-cache: true

## DGM - name: Set up Python 3.10
## DGM uses: actions/setup-python@v5
## DGM with:
## DGM python-version: "3.10"

## DGM - name: Install Python Dependencies
## DGM run: |
## DGM pip install -U pip
## DGM pip install -r tests/requirements.txt

## DGM - name: Create Test Instance
## DGM run: |
## DGM bundle exec kitchen create ${{ matrix.instance }}-${{ inputs.distro-slug }} || \
## DGM (sleep 10 && bundle exec kitchen create ${{ matrix.instance }}-${{ inputs.distro-slug }})
## DGM sleep 2

## DGM - name: Test Bootstrap
## DGM run: |
## DGM bundle exec kitchen verify ${{ matrix.instance }}-${{ inputs.distro-slug }}
## DGM sleep 2

## DGM - name: Destroy Test Instance
## DGM if: always()
## DGM run: |
## DGM bundle exec kitchen destroy ${{ matrix.instance }}-${{ inputs.distro-slug }}
## DGM sleep 2

- name: Install Pytest
run: |
pip install -U pytest
- name: Bootstrap Salt
run: |
sudo sh -x ./bootstrap-salt.sh
## TBD Disabled until CI/CD is functional
## - name: Bootstrap Salt
## run: |
## sudo sh -x ./bootstrap-salt.sh

- name: Test Bootstrap
run: |
pytest --cache-clear -v -s -ra --log-cli-level=debug tests/integration/
## - name: Test Bootstrap
## run: |
## pytest --cache-clear -v -s -ra --log-cli-level=debug tests/integration/

- name: Set Exit Status
if: always()
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,9 @@ on:
default: 20
description: The timeout(in minutes) for the workflow

## DGM env:
## DGM machine_user: kitchen
## DGM machine_pass: Password1
## DGM machine_port: 5985
## DGM KITCHEN_LOCAL_YAML: 'kitchen.windows.yml'

jobs:
Test:
name: ${{ matrix.instance }}
## DGM runs-on: ${{ inputs.runs-on }}
runs-on: windows-latest
timeout-minutes: ${{ inputs.timeout }}
strategy:
Expand All @@ -48,68 +41,16 @@ jobs:
steps:
- uses: actions/checkout@v4

## DGM - name: Setup Ruby
## DGM uses: ruby/setup-ruby@v1
## DGM with:
## DGM ruby-version: 2.6.10
## DGM ## ruby-version: 3.3.4
## DGM bundler-cache: true

## DGM - name: Install Chef
## DGM uses: actionshub/[email protected]
## DGM with:
## DGM project: chef
## DGM version: 16.10.8

## DGM - name: Add Chef bindir to PATH
## DGM uses: myci-actions/export-env-var-powershell@1
## DGM with:
## DGM name: PATH
## DGM value: "C:\\opscode\\chef\\bin;C:\\opscode\\chef\\embedded\\bin;$env:PATH"

## DGM - name: Setup test user
## DGM run: |
## DGM $password = ConvertTo-SecureString $env:machine_pass -AsPlainText -Force
## DGM New-LocalUser $env:machine_user -Password $password
## DGM Add-LocalGroupMember -Group "Administrators" -Member $env:machine_user
## DGM Get-LocalUser
## DGM Get-LocalGroupMember -Group "Administrators"

## DGM - name: Set up WinRM
## DGM run: |
## DGM Set-WSManQuickConfig -Force
## DGM winrm set winrm/config/service '@{AllowUnencrypted="True"}'
## DGM env

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

## DGM - name: Install Python Dependencies
- name: Install Pytest
run: |
## DGM pip install -U pip
## DGM pip install -r tests/requirements.txt
pip install -U pytest
## DGM - name: Create Test Instance
## DGM run: |
## DGM bundle exec kitchen create ${{ matrix.instance }}-${{ inputs.distro-slug }}
## DGM sleep 2

## DGM - name: Test Bootstrap
## DGM run: |
## DGM env
## DGM bundle exec kitchen verify ${{ matrix.instance }}-${{ inputs.distro-slug }}
## DGM sleep 2

## DGM - name: Destroy Test Instance
## DGM if: always()
## DGM run: |
## DGM bundle exec kitchen destroy ${{ matrix.instance }}-${{ inputs.distro-slug }}
## DGM sleep 2

- name: Bootstrap Salt
run: |
. ./bootstrap-salt.ps1 -RunService $false
Expand Down
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ repos:
args:
- requirements/release.in

## DGM - repo: https://github.com/asottile/pyupgrade
## DGM rev: v3.15.0
## DGM hooks:
## DGM - id: pyupgrade
## DGM name: Rewrite Code to be Py3.10+
## DGM args: [--py310-plus]

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
Expand Down
Loading

0 comments on commit 1b8b907

Please sign in to comment.