From cc6c410272a6fb1b687684c78dd32b3217debb76 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Dec 2025 07:09:52 +0000 Subject: [PATCH 1/4] Initial plan From ffcf769943c811c245834354f0cdd356d944fc19 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Dec 2025 07:14:11 +0000 Subject: [PATCH 2/4] Fix CI/CD workflow to properly detect LICENSE and Poetry builds Co-authored-by: hyp3ri0n-ng <3106718+hyp3ri0n-ng@users.noreply.github.com> --- .../workflows/auto-complete-cicd-review.yml | 38 +++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-complete-cicd-review.yml b/.github/workflows/auto-complete-cicd-review.yml index 81f948c..efe63f4 100644 --- a/.github/workflows/auto-complete-cicd-review.yml +++ b/.github/workflows/auto-complete-cicd-review.yml @@ -328,7 +328,25 @@ uto-amazonq-review.properties.json uto-amazonq-review.properties.json for doc in README.md CONTRIBUTING.md LICENSE.md CHANGELOG.md CODE_OF_CONDUCT.md SECURITY.md; do uto-amazonq-review.properties.json - if [ -f "$doc" ]; then + # Check for both LICENSE and LICENSE.md +uto-amazonq-review.properties.json + if [ "$doc" = "LICENSE.md" ]; then +uto-amazonq-review.properties.json + if [ -f "LICENSE.md" ] || [ -f "LICENSE" ]; then +uto-amazonq-review.properties.json + license_file=$([ -f "LICENSE.md" ] && echo "LICENSE.md" || echo "LICENSE") +uto-amazonq-review.properties.json + word_count=$(wc -w < "$license_file" 2>/dev/null || echo 0) +uto-amazonq-review.properties.json + echo "✅ LICENSE ($word_count words)" >> /tmp/review-results/documentation.md +uto-amazonq-review.properties.json + else +uto-amazonq-review.properties.json + echo "❌ LICENSE (missing)" >> /tmp/review-results/documentation.md +uto-amazonq-review.properties.json + fi +uto-amazonq-review.properties.json + elif [ -f "$doc" ]; then uto-amazonq-review.properties.json word_count=$(wc -w < "$doc" 2>/dev/null || echo 0) uto-amazonq-review.properties.json @@ -476,11 +494,25 @@ uto-amazonq-review.properties.json uto-amazonq-review.properties.json uto-amazonq-review.properties.json - # Python + # Python - Poetry +uto-amazonq-review.properties.json + if [ -f "pyproject.toml" ] && grep -q 'tool.poetry' pyproject.toml; then +uto-amazonq-review.properties.json + pip install poetry || true +uto-amazonq-review.properties.json + poetry install && echo "BUILD_SUCCESS=true" >> $GITHUB_OUTPUT uto-amazonq-review.properties.json - if [ -f "requirements.txt" ]; then + # Python - requirements.txt +uto-amazonq-review.properties.json + elif [ -f "requirements.txt" ]; then uto-amazonq-review.properties.json pip install -r requirements.txt && echo "BUILD_SUCCESS=true" >> $GITHUB_OUTPUT +uto-amazonq-review.properties.json + # Python - setup.py +uto-amazonq-review.properties.json + elif [ -f "setup.py" ]; then +uto-amazonq-review.properties.json + pip install -e . && echo "BUILD_SUCCESS=true" >> $GITHUB_OUTPUT uto-amazonq-review.properties.json fi uto-amazonq-review.properties.json From 9011d702ff728682238ef77cef6315ca6e016976 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Dec 2025 07:15:23 +0000 Subject: [PATCH 3/4] Improve Poetry installation error handling in workflow Co-authored-by: hyp3ri0n-ng <3106718+hyp3ri0n-ng@users.noreply.github.com> --- .github/workflows/auto-complete-cicd-review.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-complete-cicd-review.yml b/.github/workflows/auto-complete-cicd-review.yml index efe63f4..62d9aa6 100644 --- a/.github/workflows/auto-complete-cicd-review.yml +++ b/.github/workflows/auto-complete-cicd-review.yml @@ -498,9 +498,15 @@ uto-amazonq-review.properties.json uto-amazonq-review.properties.json if [ -f "pyproject.toml" ] && grep -q 'tool.poetry' pyproject.toml; then uto-amazonq-review.properties.json - pip install poetry || true + if pip install poetry; then uto-amazonq-review.properties.json - poetry install && echo "BUILD_SUCCESS=true" >> $GITHUB_OUTPUT + poetry install && echo "BUILD_SUCCESS=true" >> $GITHUB_OUTPUT +uto-amazonq-review.properties.json + else +uto-amazonq-review.properties.json + echo "⚠️ Poetry installation failed, skipping Poetry build" +uto-amazonq-review.properties.json + fi uto-amazonq-review.properties.json # Python - requirements.txt uto-amazonq-review.properties.json From 2d6a23e07e206b73b52a0cbdb42e15ee98af54fe Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Dec 2025 07:16:25 +0000 Subject: [PATCH 4/4] Add documentation for Python build precedence order Co-authored-by: hyp3ri0n-ng <3106718+hyp3ri0n-ng@users.noreply.github.com> --- .github/workflows/auto-complete-cicd-review.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/auto-complete-cicd-review.yml b/.github/workflows/auto-complete-cicd-review.yml index 62d9aa6..0be9f3f 100644 --- a/.github/workflows/auto-complete-cicd-review.yml +++ b/.github/workflows/auto-complete-cicd-review.yml @@ -493,6 +493,10 @@ uto-amazonq-review.properties.json fi uto-amazonq-review.properties.json +uto-amazonq-review.properties.json + # Python - Try in order of precedence: Poetry > requirements.txt > setup.py +uto-amazonq-review.properties.json + # This ensures modern Python projects using Poetry are built correctly uto-amazonq-review.properties.json # Python - Poetry uto-amazonq-review.properties.json