From 0069ba269b3592414b3e5c170c070507d48dad7b Mon Sep 17 00:00:00 2001 From: Arthit Suriyawongkul Date: Thu, 23 Jan 2025 10:43:02 +0000 Subject: [PATCH 1/2] Print debug information during validation Add --debug to spec-parser options (--debug is supposed to be more verbose than --verbose) Signed-off-by: Arthit Suriyawongkul --- .github/workflows/validate-pr.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml index 957129037..d8263eb8c 100644 --- a/.github/workflows/validate-pr.yml +++ b/.github/workflows/validate-pr.yml @@ -1,4 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 +# SPDX-FileType: SOURCE # SPDX-FileCopyrightText: Copyright 2024 The SPDX Contributors name: validate PR @@ -15,10 +16,10 @@ jobs: - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 with: python-version: "3.12" - - name: get spec-parser + - name: Get spec-parser and show version run: | git clone --depth=1 --single-branch --branch=main https://github.com/spdx/spec-parser/ ${{ runner.temp }}/spec-parser - python ${{ runner.temp }}/spec-parser/main.py -h - - name: run spec-parser to validate + python ${{ runner.temp }}/spec-parser/main.py --version + - name: Run spec-parser to validate run: | - python ${{ runner.temp }}/spec-parser/main.py -n model + python ${{ runner.temp }}/spec-parser/main.py --debug --no-output model From 0c23343d46bcaba9aba698919ce1ff74099f2205 Mon Sep 17 00:00:00 2001 From: Arthit Suriyawongkul Date: Thu, 23 Jan 2025 13:28:45 +0000 Subject: [PATCH 2/2] --debug -> --verbose Signed-off-by: Arthit Suriyawongkul Signed-off-by: Arthit Suriyawongkul --- .github/workflows/validate-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml index d8263eb8c..2caaf1370 100644 --- a/.github/workflows/validate-pr.yml +++ b/.github/workflows/validate-pr.yml @@ -22,4 +22,4 @@ jobs: python ${{ runner.temp }}/spec-parser/main.py --version - name: Run spec-parser to validate run: | - python ${{ runner.temp }}/spec-parser/main.py --debug --no-output model + python ${{ runner.temp }}/spec-parser/main.py --verbose --no-output model