Skip to content

Commit

Permalink
Removed Debian-13 container and cleaned up debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurphy18 committed Dec 12, 2024
1 parent 1040775 commit 73475d2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 71 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,21 +225,6 @@ jobs:
instances: '["stable-3007", "git-3007", "onedir-3007", "stable-3007-1", "git-master", "latest", "default"]'


debian-13:
name: Debian 13
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
uses: ./.github/workflows/test-linux.yml
needs:
- lint
- generate-actions-workflow
with:
distro-slug: debian-13
display-name: Debian 13
container-slug: debian-13
timeout: 20
instances: '["stable-3006", "git-3006", "onedir-3006", "stable-3006-8", "stable-3007", "onedir-3007", "stable-3007-1", "latest", "default"]'


photon-5:
name: Photon OS 5
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
Expand Down Expand Up @@ -315,7 +300,6 @@ jobs:
- amazonlinux-2023
- debian-11
- debian-12
- debian-13
- photon-5
- rockylinux-8
- rockylinux-9
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/templates/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
os.chdir(os.path.abspath(os.path.dirname(__file__)))

# "amazonlinux-2",
# "debian-13",
# "fedora-40",
# "photon-4",
# "ubuntu-2004",
Expand All @@ -15,7 +16,6 @@
"amazonlinux-2023",
"debian-11",
"debian-12",
"debian-13",
"photon-5",
"rockylinux-8",
"rockylinux-9",
Expand All @@ -33,6 +33,7 @@
]

# "amazonlinux-2",
# "debian-13",
# "fedora-40",
# "photon-4",
# "ubuntu-2004",
Expand All @@ -41,14 +42,14 @@
"amazonlinux-2023",
"debian-11",
"debian-12",
"debian-13",
"photon-5",
"rockylinux-8",
"rockylinux-9",
"ubuntu-2204",
]

# "amazonlinux-2",
# "debian-13",
# "fedora-40",
# "photon-4",
# "ubuntu-2004",
Expand All @@ -57,7 +58,6 @@
"amazonlinux-2023",
"debian-11",
"debian-12",
"debian-13",
"photon-5",
"rockylinux-8",
"rockylinux-9",
Expand Down Expand Up @@ -94,6 +94,7 @@
"amazonlinux-2023",
"debian-11",
"debian-12",
"debian-13",
"fedora-40",
"photon-4",
"photon-5",
Expand Down
49 changes: 2 additions & 47 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ jobs:
Test:
name: ${{ matrix.instance }}
runs-on: ubuntu-latest
## DGM container:
## DGM image: ghcr.io/saltstack/salt-ci-containers/testing:${{ inputs.container-slug }}
## DGM options: --privileged

timeout-minutes: ${{ inputs.timeout }}
strategy:
max-parallel: 2
Expand All @@ -46,37 +42,6 @@ jobs:
steps:
- uses: actions/checkout@v4

## DGM - name: Install Python Dependencies with pip breakage
## DGM if: ${{ ( inputs.distro-slug == 'debian-11' ) || ( inputs.distro-slug == 'debian-12' ) || ( inputs.distro-slug == 'debian-13' ) || ( inputs.distro-slug == 'ubuntu-2404' ) }}
## DGM run: |
## DGM python3 -m pip install --break-system-packages -r tests/requirements.txt

## DGM - name: Install Python Dependencies without pip breakage
## DGM if: ${{ ( inputs.distro-slug != 'debian-11' ) && ( inputs.distro-slug != 'debian-12' ) && ( inputs.distro-slug != 'debian-13' ) && ( inputs.distro-slug != 'ubuntu-2404' ) }}
## DGM run: |
## DGM python3 -m pip install -r tests/requirements.txt

## DGM - name: Get Version
## DGM run: |
## DGM # We need to get the version here and make it an environment variable
## DGM # It is used to install via bootstrap and in the test
## DGM # The version is in the instance name
## DGM # sed 1st - becomes space, 2nd - becomes dot
## DGM vt_parm_ver=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./' | awk -F ' ' '{print $2}')
## DGM echo "SaltVersion=$vt_parm_ver" >> $GITHUB_ENV

## DGM - name: Bootstrap Salt
## DGM run: |
## DGM # sed 1st - becomes space, 2nd - becomes dot
## DGM bt_arg1=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./' | awk -F ' ' '{print $1}')
## DGM bt_arg2=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./' | awk -F ' ' '{print $2}')
## DGM echo "bt parms ,$bt_parms, bt_arg1 ,$bt_arg1, bt_arg2 ,$bt_arg2,"
## DGM sh -x ./bootstrap-salt.sh "$bt_arg1" "$bt_arg2"

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

- name: Get Version
run: |
# We need to get the version here and make it an environment variable
Expand All @@ -98,23 +63,13 @@ jobs:
run: |
/usr/bin/docker start ${{ github.run_id }}_salt-test
- name: Current Directory
run: |
pwd
ls -alh
## DGM - name: Download requirements file tests/requirements.txt
## DGM uses: actions/download-artifact@v4
## DGM with:
## DGM - name: requirements.txt

- name: "Install Python Dependencies with pip breakage in container ${{ inputs.container-slug }}"
if: ${{ ( inputs.distro-slug == 'debian-11' ) || ( inputs.distro-slug == 'debian-12' ) || ( inputs.distro-slug == 'debian-13' ) || ( inputs.distro-slug == 'ubuntu-2404' ) }}
if: ${{ ( inputs.distro-slug == 'debian-12' ) || ( inputs.distro-slug == 'debian-13' ) || ( inputs.distro-slug == 'ubuntu-2404' ) }}
run: |
docker exec ${{ github.run_id}}_salt-test python3 -m pip install --break-system-packages -r /_w/btstrap/tests/requirements.txt
- name: "Install Python Dependencies without pip breakage in container ${{ inputs.container-slug }}"
if: ${{ ( inputs.distro-slug != 'debian-11' ) && ( inputs.distro-slug != 'debian-12' ) && ( inputs.distro-slug != 'debian-13' ) && ( inputs.distro-slug != 'ubuntu-2404' ) }}
if: ${{ ( inputs.distro-slug != 'debian-12' ) && ( inputs.distro-slug != 'debian-13' ) && ( inputs.distro-slug != 'ubuntu-2404' ) }}
run: |
docker exec ${{ github.run_id}}_salt-test python3 -m pip install -r /_w/btstrap/tests/requirements.txt
Expand Down
5 changes: 0 additions & 5 deletions tests/integration/test_installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def run_salt_call(cmd):
log.error(f"failed to produce output result, '{result}'")

else:
print(f"DGM run_salt_call platform.system '{platform.system()}'", flush=True)
if platform.system() == "Darwin":
cmdl = ["sudo"]
else:
Expand All @@ -51,7 +50,6 @@ def run_salt_call(cmd):
stderr=subprocess.PIPE,
universal_newlines=True,
)
print(f"DGM run_salt_call result '{result}'", flush=True)
if 0 == result.returncode:
json_data = json.loads(result.stdout)
else:
Expand All @@ -63,15 +61,13 @@ def run_salt_call(cmd):
def test_ping(path):
cmd = ["salt-call", "--local", "test.ping"]
result = run_salt_call(cmd)
print(f"DGM test_ping result '{result}'", flush=True)
assert result == True


def test_target_python_version(path, target_python_version):
cmd = ["salt-call", "--local", "grains.item", "pythonversion", "--timeout=120"]
result = run_salt_call(cmd)
# Returns: {'pythonversion': [3, 10, 11, 'final', 0]}
print(f"DGM test_target_python_version result '{result}'", flush=True)
py_maj_ver = result["pythonversion"][0]
assert py_maj_ver == target_python_version

Expand All @@ -82,6 +78,5 @@ def test_target_salt_version(path, target_salt_version):
cmd = ["salt-call", "--local", "grains.item", "saltversion", "--timeout=120"]
result = run_salt_call(cmd)
# Returns: {'saltversion': '3006.9+217.g53cfa53040'}
print(f"DGM test_target_salt_version result '{result}'", flush=True)
adj_saltversion = result["saltversion"].split("+")[0]
assert adj_saltversion == target_salt_version

0 comments on commit 73475d2

Please sign in to comment.