From ee9a3fbdcd14a1ab5a9f52c505716de82cdc2de0 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 6 Aug 2024 09:54:41 +0200 Subject: [PATCH 1/3] Remove macOS with Python 3.8, 3.9 from expected list. --- .github/workflows/_Checking_Parameters.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/_Checking_Parameters.yml b/.github/workflows/_Checking_Parameters.yml index 17c339cb..eeabfc6f 100644 --- a/.github/workflows/_Checking_Parameters.yml +++ b/.github/workflows/_Checking_Parameters.yml @@ -84,6 +84,8 @@ jobs: expectedPythons = ["3.8", "3.9", "3.10", "3.11", "3.12"] expectedSystems = ["ubuntu", "windows", "macos"] expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons] + ["mingw64:3.11", "ucrt64:3.11"] + expectedJobs.remove("macos:3.8") + expectedJobs.remove("macos:3.9") expectedName = "Example" expectedArtifacts = { "unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML", From d58db55086a6ca63f242503b4c306251ab42593a Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 6 Aug 2024 10:01:52 +0200 Subject: [PATCH 2/3] Improved actual vs. expected prints. --- .github/workflows/_Checking_Parameters.yml | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/_Checking_Parameters.yml b/.github/workflows/_Checking_Parameters.yml index eeabfc6f..592bfbd4 100644 --- a/.github/workflows/_Checking_Parameters.yml +++ b/.github/workflows/_Checking_Parameters.yml @@ -114,8 +114,12 @@ jobs: errors += 1 if len(actualPythonJobs) != len(expectedJobs): print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.") + print("Actual jobs:") for job in actualPythonJobs: print(f" {job['system']}:{job['python']}") + print("Expected jobs:") + for job in expectedJobs: + print(f" {job}") errors += 1 if len(actualArtifactNames) != len(expectedArtifacts): print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.") @@ -170,8 +174,12 @@ jobs: errors += 1 if len(actualPythonJobs) != len(expectedJobs): print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.") + print("Actual jobs:") for job in actualPythonJobs: print(f" {job['system']}:{job['python']}") + print("Expected jobs:") + for job in expectedJobs: + print(f" {job}") errors += 1 if len(actualArtifactNames) != len(expectedArtifacts): print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.") @@ -226,8 +234,12 @@ jobs: errors += 1 if len(actualPythonJobs) != len(expectedJobs): print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.") + print("Actual jobs:") for job in actualPythonJobs: print(f" {job['system']}:{job['python']}") + print("Expected jobs:") + for job in expectedJobs: + print(f" {job}") errors += 1 if len(actualArtifactNames) != len(expectedArtifacts): print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.") @@ -282,8 +294,12 @@ jobs: errors += 1 if len(actualPythonJobs) != len(expectedJobs): print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.") + print("Actual jobs:") for job in actualPythonJobs: print(f" {job['system']}:{job['python']}") + print("Expected jobs:") + for job in expectedJobs: + print(f" {job}") errors += 1 if len(actualArtifactNames) != len(expectedArtifacts): print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.") @@ -338,8 +354,12 @@ jobs: errors += 1 if len(actualPythonJobs) != len(expectedJobs): print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.") + print("Actual jobs:") for job in actualPythonJobs: print(f" {job['system']}:{job['python']}") + print("Expected jobs:") + for job in expectedJobs: + print(f" {job}") errors += 1 if len(actualArtifactNames) != len(expectedArtifacts): print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.") @@ -394,8 +414,12 @@ jobs: errors += 1 if len(actualPythonJobs) != len(expectedJobs): print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.") + print("Actual jobs:") for job in actualPythonJobs: print(f" {job['system']}:{job['python']}") + print("Expected jobs:") + for job in expectedJobs: + print(f" {job}") errors += 1 if len(actualArtifactNames) != len(expectedArtifacts): print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.") @@ -450,8 +474,12 @@ jobs: errors += 1 if len(actualPythonJobs) != len(expectedJobs): print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.") + print("Actual jobs:") for job in actualPythonJobs: print(f" {job['system']}:{job['python']}") + print("Expected jobs:") + for job in expectedJobs: + print(f" {job}") errors += 1 if len(actualArtifactNames) != len(expectedArtifacts): print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.") From 188feb556b4a37162a0512a57d821a5a770a08f7 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 6 Aug 2024 10:08:44 +0200 Subject: [PATCH 3/3] Fixed next expected parameter set. --- .github/workflows/_Checking_Parameters.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/_Checking_Parameters.yml b/.github/workflows/_Checking_Parameters.yml index 592bfbd4..652ec26d 100644 --- a/.github/workflows/_Checking_Parameters.yml +++ b/.github/workflows/_Checking_Parameters.yml @@ -146,6 +146,9 @@ jobs: expectedPythons = ["3.9", "3.10", "pypy-3.8", "pypy-3.9"] expectedSystems = ["ubuntu", "windows", "macos"] expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons] + ["mingw64:3.11", "ucrt64:3.11"] + expectedJobs.remove("macos:3.9") + expectedJobs.remove("macos:pypy-3.8") + expectedJobs.remove("macos:pypy-3.9") expectedName = "Example" expectedArtifacts = { "unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML",