Skip to content

Conversation

@clebergnu
Copy link
Contributor

@clebergnu clebergnu commented Nov 7, 2025

This was suggested in a Fedora package interaction.

Reference: https://spdx.org/licenses/

Summary by CodeRabbit

  • Chores
    • Bumped package release, standardized license declarations to SPDX-compatible expressions across multiple subpackages, and unified release vs snapshot source handling and other release metadata.
  • Documentation
    • Added changelog entry documenting the SPDX license format update for this release.

✏️ Tip: You can customize this high-level summary in your review settings.

@clebergnu clebergnu added this to the 113 - Codename TBD milestone Nov 7, 2025
@clebergnu clebergnu self-assigned this Nov 7, 2025
@coderabbitai
Copy link

coderabbitai bot commented Nov 7, 2025

Walkthrough

Spec file updates for python-avocado: Release bumped from 1%{?gitrel}%{?dist} to 2%{?gitrel}%{?dist}; top-level and subspec license fields normalized to SPDX expressions (e.g., GPLv2+GPL-2.0-or-later, GPLv2GPL-2.0-only, MIT preserved); Source0 handling adjusted under a %if 0%{?rel_build} conditional to differentiate release vs snapshot/commit-tarball builds; multiple subspec %license and %files entries updated to include SPDX-aligned license strings; changelog extended with an entry describing the SPDX license format update for 112.0-2.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

  • Verify each SPDX expression matches the original intent (e.g., GPLv2+GPL-2.0-or-later, GPLv2GPL-2.0-only).
  • Check the %if 0%{?rel_build} conditional and Source0 path/format for release vs snapshot correctness.
  • Confirm changelog entry format and placement follow project conventions.
  • Spot-check a representative subspec (e.g., python3-avocado-common, python3-avocado-plugins-*) to ensure consistent %license/%files updates.

Pre-merge checks

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: updating the license format in python-avocado.spec to SPDX standard, which matches the primary objective of the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 80a644a and bad0301.

📒 Files selected for processing (1)
  • python-avocado.spec (15 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (46)
  • GitHub Check: rpm-build:fedora-41-aarch64
  • GitHub Check: rpm-build:epel-9-x86_64
  • GitHub Check: rpm-build:fedora-rawhide-x86_64
  • GitHub Check: rpm-build:fedora-41-ppc64le
  • GitHub Check: rpm-build:fedora-41-x86_64
  • GitHub Check: rpm-build:fedora-43-x86_64
  • GitHub Check: rpm-build:fedora-42-x86_64
  • GitHub Check: rpm-build:centos-stream-9-x86_64
  • GitHub Check: rpm-build:fedora-41-s390x
  • GitHub Check: Linux with Python 3.11
  • GitHub Check: Linux with Python 3.9
  • GitHub Check: Linux with Python 3.10
  • GitHub Check: Linux with Python 3.13
  • GitHub Check: Linux with Python 3.12
  • GitHub Check: rpm-build:fedora-42-x86_64
  • GitHub Check: rpm-build:fedora-41-s390x
  • GitHub Check: rpm-build:epel-9-x86_64
  • GitHub Check: rpm-build:fedora-41-ppc64le
  • GitHub Check: rpm-build:fedora-43-x86_64
  • GitHub Check: rpm-build:fedora-rawhide-x86_64
  • GitHub Check: rpm-build:fedora-41-x86_64
  • GitHub Check: rpm-build:centos-stream-9-x86_64
  • GitHub Check: rpm-build:fedora-41-aarch64
  • GitHub Check: rpm-build:fedora-42-x86_64
  • GitHub Check: rpm-build:fedora-41-aarch64
  • GitHub Check: rpm-build:fedora-43-x86_64
  • GitHub Check: rpm-build:fedora-41-s390x
  • GitHub Check: rpm-build:fedora-41-x86_64
  • GitHub Check: rpm-build:fedora-rawhide-x86_64
  • GitHub Check: rpm-build:centos-stream-9-x86_64
  • GitHub Check: rpm-build:epel-9-x86_64
  • GitHub Check: rpm-build:fedora-41-ppc64le
  • GitHub Check: Build Package (wheel/tarball) for Python 3.9
  • GitHub Check: Windows with Python 3.10
  • GitHub Check: Build Package (wheel/tarball) for Python 3.12
  • GitHub Check: Podman spawner with 3rd party runner plugin
  • GitHub Check: Build Package (wheel/tarball) for Python 3.10
  • GitHub Check: Fedora selftests
  • GitHub Check: Version task ubuntu:22.04
  • GitHub Check: Windows with Python 3.11
  • GitHub Check: Windows with Python 3.12
  • GitHub Check: Version task ubi:8.8
  • GitHub Check: Code Coverage (3.11)
  • GitHub Check: macOS with Python 3.11
  • GitHub Check: Version task debian:12.4
  • GitHub Check: Static checks
🔇 Additional comments (3)
python-avocado.spec (3)

31-32: LGTM! Correct SPDX license conversion.

The release bump and license field conversion to SPDX format are both correct. The SPDX identifiers used (GPL-2.0-or-later, GPL-2.0-only, MIT) are valid, and the AND operator syntax is proper.


273-466: LGTM! Subpackage licenses correctly converted to SPDX format.

All subpackage license fields have been properly converted to SPDX-compliant identifiers. The previous typo issue flagged in the bash subpackage (line 466) has been correctly resolved—it now uses GPL-2.0-only instead of the invalid GPLv-2.0-only.


478-480: LGTM! Changelog entry properly formatted.

The changelog entry correctly documents the SPDX license format update, with proper RPM formatting and version alignment.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mr-avocado mr-avocado bot moved this to Review Requested in Default project Nov 7, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
python-avocado.spec (1)

273-273: Incomplete SPDX license conversion - all subpackages need updating.

The main package License field was updated to SPDX format, but all 13 subpackage License fields remain in the old format. For consistency and to fully comply with SPDX standards, all License fields should be converted.

Required conversions:

  • GPLv2+GPL-2.0-or-later
  • GPLv2GPL-2.0-only
  • andAND

Affected subpackages:

  • Line 273: python3-avocado-common
  • Line 300: python3-avocado-plugins-output-html
  • Line 317: python3-avocado-plugins-resultsdb
  • Line 333: python3-avocado-plugins-varianter-yaml-to-mux
  • Line 347: python3-avocado-plugins-golang
  • Line 363: python3-avocado-plugins-ansible
  • Line 379: python3-avocado-plugins-varianter-pict
  • Line 392: python3-avocado-plugins-varianter-cit
  • Line 406: python3-avocado-plugins-result-upload
  • Line 419: python3-avocado-plugins-result-mail
  • Line 433: python3-avocado-plugins-spawner-remote
  • Line 446: python3-avocado-examples
  • Line 466: python3-avocado-bash

Apply this diff to complete the SPDX conversion:

 %package -n python3-avocado-common
 Summary: Avocado common files
-License: GPLv2+
+License: GPL-2.0-or-later

 %package -n python3-avocado-plugins-output-html
 Summary: Avocado HTML report plugin
-License: GPLv2+ and MIT
+License: GPL-2.0-or-later AND MIT

 %package -n python3-avocado-plugins-resultsdb
 Summary: Avocado plugin to propagate job results to ResultsDB
-License: GPLv2+
+License: GPL-2.0-or-later

 %package -n python3-avocado-plugins-varianter-yaml-to-mux
 Summary: Avocado plugin to generate variants out of yaml files
-License: GPLv2+
+License: GPL-2.0-or-later

 %package -n python3-avocado-plugins-golang
 Summary: Avocado Plugin for Execution of golang tests
-License: GPLv2+
+License: GPL-2.0-or-later

 %package -n python3-avocado-plugins-ansible
 Summary: Avocado Ansible Dependency plugin
-License: GPLv2+
+License: GPL-2.0-or-later

 %package -n python3-avocado-plugins-varianter-pict
 Summary: Varianter with combinatorial capabilities by PICT
-License: GPLv2+
+License: GPL-2.0-or-later

 %package -n python3-avocado-plugins-varianter-cit
 Summary: Varianter with Combinatorial Independent Testing capabilities
-License: GPLv2+
+License: GPL-2.0-or-later

 %package -n python3-avocado-plugins-result-upload
 Summary: Avocado Plugin to propagate Job results to a remote host
-License: GPLv2+
+License: GPL-2.0-or-later

 %package -n python3-avocado-plugins-result-mail
 Summary: Avocado Mail Notification for Jobs
-License: GPLv2+
+License: GPL-2.0-or-later

 %package -n python3-avocado-plugins-spawner-remote
 Summary: Avocado Plugin to spawn tests on a remote host
-License: GPLv2+
+License: GPL-2.0-or-later

 %package -n python3-avocado-examples
 Summary: Avocado Test Framework Example Tests
-License: GPLv2+
+License: GPL-2.0-or-later

 %package -n python3-avocado-bash
 Summary: Avocado Test Framework Bash Utilities
-License: GPLv2+ and GPLv2
+License: GPL-2.0-or-later AND GPL-2.0-only

Also applies to: 300-300, 317-317, 333-333, 347-347, 363-363, 379-379, 392-392, 406-406, 419-419, 433-433, 446-446, 466-466

🧹 Nitpick comments (1)
python-avocado.spec (1)

478-480: Update changelog to reflect all changes.

The changelog entry correctly documents the SPDX license format update, but doesn't mention the Source0 addition on line 37. If that change is intentionally included in this PR, it should be noted in the changelog.

Consider adding to the changelog:

 * Fri Nov 07 2025 Cleber Rosa <[email protected]> - 112.0-2
 - Update format of license to match The System Package Data Exchange (SPDX)
+- Add Source0 for snapshot builds
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 50bcca0 and b5193fd.

📒 Files selected for processing (1)
  • python-avocado.spec (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (21)
  • GitHub Check: rpm-build:fedora-43-x86_64
  • GitHub Check: rpm-build:fedora-41-s390x
  • GitHub Check: rpm-build:centos-stream-9-x86_64
  • GitHub Check: rpm-build:epel-9-x86_64
  • GitHub Check: rpm-build:fedora-41-x86_64
  • GitHub Check: Linux with Python 3.9
  • GitHub Check: Linux with Python 3.10
  • GitHub Check: Linux with Python 3.12
  • GitHub Check: Linux with Python 3.13
  • GitHub Check: Linux with Python 3.11
  • GitHub Check: Fedora selftests
  • GitHub Check: Egg task ubuntu:22.04
  • GitHub Check: Podman spawner with 3rd party runner plugin
  • GitHub Check: Version task debian:12.4
  • GitHub Check: Egg task ubi:8.8
  • GitHub Check: Version task ubi:8.8
  • GitHub Check: Version task ubuntu:22.04
  • GitHub Check: Version task ubuntu:24.04
  • GitHub Check: macOS with Python 3.11
  • GitHub Check: Static checks
  • GitHub Check: Code Coverage (3.11)
🔇 Additional comments (3)
python-avocado.spec (3)

31-31: LGTM!

Correctly incremented the release number for spec file modifications.


32-32: SPDX license conversion is correct.

The main package License field has been properly converted to SPDX format following the standards at https://spdx.org/licenses/.


34-38: Source0 addition is correct but unrelated to license update.

The Source0 line for the snapshot build path (line 37) properly mirrors the release build structure. However, this change appears unrelated to the PR's stated objective of updating the license format to SPDX.

Consider whether this Source0 fix should be in a separate commit or PR for clarity, or ensure it's mentioned in the changelog entry.

@codecov
Copy link

codecov bot commented Nov 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.58%. Comparing base (3534d96) to head (bad0301).
⚠️ Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6232      +/-   ##
==========================================
+ Coverage   73.56%   73.58%   +0.01%     
==========================================
  Files         206      206              
  Lines       22497    22497              
==========================================
+ Hits        16550    16554       +4     
+ Misses       5947     5943       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@clebergnu clebergnu marked this pull request as draft November 7, 2025 21:19
@clebergnu
Copy link
Contributor Author

I'll wait for the review/merge of https://src.fedoraproject.org/rpms/python-avocado/pull-request/51 and then proceed with an upstream version.

@clebergnu clebergnu marked this pull request as ready for review December 4, 2025 13:21
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b5193fd and 80a644a.

📒 Files selected for processing (1)
  • python-avocado.spec (15 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (46)
  • GitHub Check: rpm-build:fedora-41-s390x
  • GitHub Check: rpm-build:fedora-41-ppc64le
  • GitHub Check: rpm-build:fedora-rawhide-x86_64
  • GitHub Check: rpm-build:centos-stream-9-x86_64
  • GitHub Check: rpm-build:fedora-41-aarch64
  • GitHub Check: rpm-build:epel-9-x86_64
  • GitHub Check: rpm-build:fedora-43-x86_64
  • GitHub Check: rpm-build:fedora-42-x86_64
  • GitHub Check: rpm-build:fedora-rawhide-x86_64
  • GitHub Check: rpm-build:fedora-42-x86_64
  • GitHub Check: rpm-build:fedora-41-ppc64le
  • GitHub Check: rpm-build:fedora-41-x86_64
  • GitHub Check: rpm-build:epel-9-x86_64
  • GitHub Check: rpm-build:fedora-41-aarch64
  • GitHub Check: rpm-build:fedora-43-x86_64
  • GitHub Check: rpm-build:centos-stream-9-x86_64
  • GitHub Check: rpm-build:fedora-41-s390x
  • GitHub Check: Linux with Python 3.10
  • GitHub Check: Linux with Python 3.11
  • GitHub Check: Linux with Python 3.13
  • GitHub Check: Linux with Python 3.12
  • GitHub Check: Linux with Python 3.9
  • GitHub Check: rpm-build:fedora-41-aarch64
  • GitHub Check: rpm-build:fedora-42-x86_64
  • GitHub Check: rpm-build:fedora-41-x86_64
  • GitHub Check: rpm-build:fedora-43-x86_64
  • GitHub Check: rpm-build:fedora-rawhide-x86_64
  • GitHub Check: rpm-build:fedora-41-ppc64le
  • GitHub Check: rpm-build:fedora-41-s390x
  • GitHub Check: rpm-build:centos-stream-9-x86_64
  • GitHub Check: rpm-build:epel-9-x86_64
  • GitHub Check: rpm-build:centos-stream-9-x86_64
  • GitHub Check: rpm-build:fedora-41-x86_64
  • GitHub Check: rpm-build:fedora-rawhide-x86_64
  • GitHub Check: rpm-build:fedora-42-x86_64
  • GitHub Check: rpm-build:fedora-43-x86_64
  • GitHub Check: rpm-build:epel-9-x86_64
  • GitHub Check: rpm-build:fedora-41-ppc64le
  • GitHub Check: rpm-build:fedora-41-s390x
  • GitHub Check: rpm-build:fedora-41-aarch64
  • GitHub Check: Fedora selftests
  • GitHub Check: Version task ubuntu:22.04
  • GitHub Check: Version task ubi:8.8
  • GitHub Check: Version task debian:12.4
  • GitHub Check: macOS with Python 3.11
  • GitHub Check: Code Coverage (3.11)
🔇 Additional comments (2)
python-avocado.spec (2)

31-32: SPDX license conversions look consistent across packages (except bash subpkg).

The updated License: tags use valid SPDX IDs (GPL-2.0-or-later, GPL-2.0-only, MIT) and the compound expressions match the previous GPLv2+ / GPLv2 / MIT semantics for the main and plugin packages. No issues spotted here aside from the bash subpackage handled separately below.

Also applies to: 273-273, 300-300, 317-317, 333-333, 347-347, 363-363, 379-379, 392-392, 406-406, 419-419, 433-433, 447-447


31-31: Release bump aligned with changelog entry.

Release: 2%{?gitrel}%{?dist} matches the new changelog entry 112.0-2, with the date and NVR consistent; this looks correct.

Also applies to: 478-480

@clebergnu clebergnu requested a review from richtja December 9, 2025 15:26
This was suggested in a Fedora package interaction.

Reference: https://spdx.org/licenses/
Signed-off-by: Cleber Rosa <[email protected]>
Copy link
Contributor

@richtja richtja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@richtja richtja merged commit 4221794 into avocado-framework:master Dec 16, 2025
63 of 64 checks passed
@github-project-automation github-project-automation bot moved this from Review Requested to Done 113 in Default project Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done 113

Development

Successfully merging this pull request may close these issues.

2 participants