Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package obs-service-source_validator for 
openSUSE:Factory checked in at 2026-05-07 15:44:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/obs-service-source_validator (Old)
 and      /work/SRC/openSUSE:Factory/.obs-service-source_validator.new.1966 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "obs-service-source_validator"

Thu May  7 15:44:41 2026 rev:91 rq:1351294 version:0.42+8

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/obs-service-source_validator/obs-service-source_validator.changes
        2026-05-04 17:28:59.173920898 +0200
+++ 
/work/SRC/openSUSE:Factory/.obs-service-source_validator.new.1966/obs-service-source_validator.changes
      2026-05-07 15:46:27.946785982 +0200
@@ -1,0 +2,12 @@
+Tue Apr 28 16:16:25 UTC 2026 - Matej Cepl <[email protected]>
+
+- Add obs-service-source_validator-test-git-init.patch which
+  makes the test suite work even from the tarball.
+
+-------------------------------------------------------------------
+Tue Apr 28 15:41:24 UTC 2026 - Matej Cepl <[email protected]>
+
+- Update to version 0.42+8:
+  * 20-files-present-and-referenced: ignore files matched by .gitignore
+
+-------------------------------------------------------------------

Old:
----
  obs-service-source_validator-0.42+6.tar.xz

New:
----
  obs-service-source_validator-0.42+8.tar.xz
  obs-service-source_validator-test-git-init.patch

----------(New B)----------
  New:
- Add obs-service-source_validator-test-git-init.patch which
  makes the test suite work even from the tarball.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ obs-service-source_validator.spec ++++++
--- /var/tmp/diff_new_pack.AThoel/_old  2026-05-07 15:46:28.778820270 +0200
+++ /var/tmp/diff_new_pack.AThoel/_new  2026-05-07 15:46:28.778820270 +0200
@@ -21,9 +21,8 @@
 %else
 %define build_pkg_name obs-build
 %endif
-
 Name:           obs-service-source_validator
-Version:        0.42+6
+Version:        0.42+8
 Release:        0
 Summary:        An OBS source service: running all the osc source-validator 
checks
 License:        GPL-2.0-or-later
@@ -31,18 +30,22 @@
 URL:            https://github.com/openSUSE/obs-service-source_validator
 # use osc service mr to update
 Source:         %{name}-%{version}.tar.xz
+Patch0:         obs-service-source_validator-test-git-init.patch
 BuildRequires:  %{build_pkg_name}
+BuildRequires:  git
 BuildRequires:  zstd
 Requires:       %{_bindir}/cpio
 Requires:       %{_bindir}/xmllint
 Requires:       %{build_pkg_name}
 Requires:       bzip2
 Requires:       diffutils
+Requires:       git
 Requires:       patch
 Requires:       perl-TimeDate
 Requires:       unzip
 Requires:       xz
 Requires:       zstd
+Recommends:     minisign
 Provides:       osc-source_validator = %{version}
 Obsoletes:      osc-source_validator <= 0.1
 BuildArch:      noarch
@@ -52,7 +55,6 @@
 # Fedora
 Requires:       gnupg2
 %endif
-Recommends:     minisign
 
 %description
 This is a source service for openSUSE Build Service.
@@ -62,7 +64,7 @@
 used via project wide defined services.
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
 :

++++++ PKGBUILD ++++++
--- /var/tmp/diff_new_pack.AThoel/_old  2026-05-07 15:46:28.826822248 +0200
+++ /var/tmp/diff_new_pack.AThoel/_new  2026-05-07 15:46:28.830822413 +0200
@@ -1,5 +1,5 @@
 pkgname=obs-service-source_validator
-pkgver=0.42+6
+pkgver=0.42+8
 pkgrel=0
 pkgdesc='An OBS source service: running all the osc source-validator checks'
 arch=('any')

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.AThoel/_old  2026-05-07 15:46:28.870824061 +0200
+++ /var/tmp/diff_new_pack.AThoel/_new  2026-05-07 15:46:28.874824226 +0200
@@ -3,6 +3,6 @@
             <param 
name="url">git://github.com/openSUSE/obs-service-source_validator.git</param>
           <param 
name="changesrevision">c68d7a28c4ecd88b179359b030098503e75adc0b</param></service><service
 name="tar_scm">
                 <param 
name="url">https://github.com/openSUSE/obs-service-source_validator.git</param>
-              <param 
name="changesrevision">90e729c1f733d8a5dc54965efc806449781582c0</param></service></servicedata>
+              <param 
name="changesrevision">c77663038f27de8f9114248cff9be442719ceffd</param></service></servicedata>
 (No newline at EOF)
 

++++++ debian.dsc ++++++
--- /var/tmp/diff_new_pack.AThoel/_old  2026-05-07 15:46:28.906825545 +0200
+++ /var/tmp/diff_new_pack.AThoel/_new  2026-05-07 15:46:28.926826369 +0200
@@ -1,6 +1,6 @@
 Format: 1.0
 Source: obs-service-source-validator
-Version: 0.42+6-0
+Version: 0.42+8-0
 Binary: obs-service-source-validator
 Maintainer: Hib Eris <[email protected]>
 Architecture: all

++++++ obs-service-source_validator-0.42+6.tar.xz -> 
obs-service-source_validator-0.42+8.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/obs-service-source_validator-0.42+6/20-files-present-and-referenced 
new/obs-service-source_validator-0.42+8/20-files-present-and-referenced
--- old/obs-service-source_validator-0.42+6/20-files-present-and-referenced     
2026-01-27 16:19:15.000000000 +0100
+++ new/obs-service-source_validator-0.42+8/20-files-present-and-referenced     
2026-04-24 22:26:56.000000000 +0200
@@ -406,6 +406,13 @@
             # and source services on server side
             [ -d "$DIR_TO_CHECK/$BASE" ] && [ -d "$DIR_TO_CHECK/.old" ] && 
continue
 
+            # ignore files that are ignored by git
+            if test -x "$(type -p git)" && test -f "$DIR_TO_CHECK/.gitignore"; 
then
+                if (cd "$DIR_TO_CHECK" && git check-ignore -q --no-index 
"$BASE"); then
+                    continue
+                fi
+            fi
+
             warn_on_unmentioned_files "$BASE"
 
             if test "$RETURN" != "2" ; then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/obs-service-source_validator-0.42+6/Makefile 
new/obs-service-source_validator-0.42+8/Makefile
--- old/obs-service-source_validator-0.42+6/Makefile    2026-01-27 
16:19:15.000000000 +0100
+++ new/obs-service-source_validator-0.42+8/Makefile    2026-04-24 
22:26:56.000000000 +0200
@@ -37,6 +37,7 @@
        ./helpers/spec_query --no-conditionals --keep-name-conditionals 
--disambiguate-sources --specfile t/data/glibc.spec
        ./helpers/spec_query --no-conditionals --keep-name-conditionals 
--disambiguate-sources --specfile t/data/glibc.spec --buildflavor testsuite
        ./20-files-present-and-referenced t/data/x2d/
+       ./t/test_gitignore.sh
 
 
 .PHONY: all install package test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/obs-service-source_validator-0.42+6/t/test_gitignore.sh 
new/obs-service-source_validator-0.42+8/t/test_gitignore.sh
--- old/obs-service-source_validator-0.42+6/t/test_gitignore.sh 1970-01-01 
01:00:00.000000000 +0100
+++ new/obs-service-source_validator-0.42+8/t/test_gitignore.sh 2026-04-24 
22:26:56.000000000 +0200
@@ -0,0 +1,65 @@
+#!/bin/bash
+# Test for .gitignore integration in 20-files-present-and-referenced
+
+set -e
+
+# Path to the script to test
+VALIDATOR="./20-files-present-and-referenced"
+TEST_DATA_DIR="t/data/gitignore_test"
+
+# Create test data directory if it doesn't exist
+mkdir -p "$TEST_DATA_DIR"
+trap 'rm -rf "$TEST_DATA_DIR"' EXIT
+
+# Create a dummy spec file
+cat > "$TEST_DATA_DIR/test.spec" <<EOF
+Name: test
+Version: 1.0
+Release: 0
+Summary: test
+License: MIT
+Source0: test.tar.gz
+%description
+test
+%prep
+%setup -q
+%build
+%install
+%files
+EOF
+
+touch "$TEST_DATA_DIR/test.tar.gz"
+
+# Create a .gitignore and an ignored file
+echo "ignored.txt" > "$TEST_DATA_DIR/.gitignore"
+touch "$TEST_DATA_DIR/ignored.txt"
+
+# Create an extra file that should NOT be ignored and NOT in spec
+touch "$TEST_DATA_DIR/extra.txt"
+
+echo "Running validator on $TEST_DATA_DIR..."
+OUTPUT=$(./20-files-present-and-referenced --batchmode "$TEST_DATA_DIR" 2>&1)
+
+echo "Output:"
+echo "$OUTPUT"
+
+# Verification
+RET=0
+
+if echo "$OUTPUT" | grep -q "ignored.txt"; then
+    echo "FAIL: ignored.txt should have been ignored but was mentioned in 
output"
+    RET=1
+fi
+
+if ! echo "$OUTPUT" | grep -q "extra.txt"; then
+    echo "FAIL: extra.txt should have been mentioned in output but was not"
+    RET=1
+fi
+
+if [ $RET -eq 0 ]; then
+    echo "SUCCESS: gitignore filtering works correctly"
+else
+    echo "FAILURE: gitignore filtering test failed"
+fi
+
+exit $RET

++++++ obs-service-source_validator-test-git-init.patch ++++++
---
 t/test_gitignore.sh |    1 +
 1 file changed, 1 insertion(+)

Index: obs-service-source_validator-0.42+8/t/test_gitignore.sh
===================================================================
--- obs-service-source_validator-0.42+8.orig/t/test_gitignore.sh        
2026-04-24 22:26:56.000000000 +0200
+++ obs-service-source_validator-0.42+8/t/test_gitignore.sh     2026-04-28 
18:12:14.476575465 +0200
@@ -10,6 +10,7 @@
 # Create test data directory if it doesn't exist
 mkdir -p "$TEST_DATA_DIR"
 trap 'rm -rf "$TEST_DATA_DIR"' EXIT
+git -C "$TEST_DATA_DIR" init -q
 
 # Create a dummy spec file
 cat > "$TEST_DATA_DIR/test.spec" <<EOF

Reply via email to