Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gjs for openSUSE:Factory checked in 
at 2026-12-01 16:58:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gjs (Old)
 and      /work/SRC/openSUSE:Factory/.gjs.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gjs"

Tue Dec  1 16:58:30 2026 rev:128 rq:1401572 version:1.90.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/gjs/gjs.changes  2026-10-30 18:07:00.103957118 
+0100
+++ /work/SRC/openSUSE:Factory/.gjs.new.1340718/gjs.changes     2026-12-01 
16:59:36.615712747 +0100
@@ -1,0 +2,11 @@
+Fri Nov 27 07:10:21 UTC 2026 - Bjørn Lie <[email protected]>
+
+- Update to version 1.90.2:
+  * Second bugfix release for GNOME 51. This release contains several bug fixes
+    for code coverage
+  * Closed bugs and merge request:
+    + Coverage: Allow output from parallel tests to the same directory
+    + Fix recursive_delete_dir cleanup failure
+    + Coverage: Don't overwrite files with the same content
+
+-------------------------------------------------------------------

Old:
----
  gjs-1.90.1.tar.xz

New:
----
  gjs-1.90.2.tar.xz

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

Other differences:
------------------
++++++ gjs.spec ++++++
--- /var/tmp/diff_new_pack.5WxuLr/_old  2026-12-01 16:59:37.820763196 +0100
+++ /var/tmp/diff_new_pack.5WxuLr/_new  2026-12-01 16:59:37.821763238 +0100
@@ -20,7 +20,7 @@
 %global __requires_exclude 
typelib\\(GioWin32|GIMarshallingTests!|GIMarshallingTests)|Gio!|Gio)|Regress!|Regress)|WarnLib!|WarnLib)\\)
 
 Name:           gjs
-Version:        1.90.1
+Version:        1.90.2
 Release:        0
 Summary:        JavaScript bindings based on gobject-introspection and Mozilla
 License:        LGPL-2.0-or-later AND MIT

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.5WxuLr/_old  2026-12-01 16:59:37.855764661 +0100
+++ /var/tmp/diff_new_pack.5WxuLr/_new  2026-12-01 16:59:37.857764745 +0100
@@ -1,7 +1,7 @@
-mtime: 1791785607
-commit: aaa3849c932cb238c1d19a935c14c9a5aef080aff33b68f4eab1cd1420c7b7ec
+mtime: 1795763571
+commit: e526c480c6559b3396d2e3fa49c731e639a6cf32d6d459d4ef367ebd5dab3652
 url: https://src.opensuse.org/GNOME/gjs
-revision: aaa3849c932cb238c1d19a935c14c9a5aef080aff33b68f4eab1cd1420c7b7ec
+revision: e526c480c6559b3396d2e3fa49c731e639a6cf32d6d459d4ef367ebd5dab3652
 trackingbranch: factory
 projectscmsync: https://src.opensuse.org/GNOME/_ObsPrj
 

++++++ _service ++++++
--- /var/tmp/diff_new_pack.5WxuLr/_old  2026-12-01 16:59:37.878765624 +0100
+++ /var/tmp/diff_new_pack.5WxuLr/_new  2026-12-01 16:59:37.881765750 +0100
@@ -3,7 +3,7 @@
   <service name="obs_scm" mode="manual">
     <param name="scm">git</param>
     <param name="url">https://gitlab.gnome.org/GNOME/gjs.git</param>
-    <param name="revision">1.90.1</param>
+    <param name="revision">1.90.2</param>
     <!-- Using +TAG_OFFSET breaks the test suite - 
https://gitlab.gnome.org/GNOME/gjs/-/issues/646 -->
     <param name="versionformat">@[email protected]@TAG_OFFSET@</param>
     <param name="versionrewrite-pattern">(.*).g0</param>

++++++ build.specials.obscpio ++++++

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-11-27 08:12:51.000000000 +0100
@@ -0,0 +1,5 @@
+*.obscpio
+*.osc
+_build.*
+.pbuild
+osc-collab.*

++++++ gjs-1.90.1.tar.xz -> gjs-1.90.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gjs-1.90.1/NEWS new/gjs-1.90.2/NEWS
--- old/gjs-1.90.1/NEWS 2026-10-12 02:01:17.000000000 +0200
+++ new/gjs-1.90.2/NEWS 2026-11-27 05:21:15.000000000 +0100
@@ -1,3 +1,16 @@
+Version 1.90.2
+--------------
+
+- Second bugfix release for GNOME 51. This release contains several bug fixes
+  for code coverage.
+
+- Closed bugs and merge request:
+  * coverage: Allow output from parallel tests to the same directory [!1130,
+    Aleksandr Mezin]
+  * fix recursive_delete_dir cleanup failure [!1131, Jakub Kulík]
+  * coverage: Don't overwrite files with the same content [!1135, Aleksandr
+    Mezin]
+
 Version 1.90.1
 --------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gjs-1.90.1/gjs/coverage.cpp 
new/gjs-1.90.2/gjs/coverage.cpp
--- old/gjs-1.90.1/gjs/coverage.cpp     2026-10-12 02:01:17.000000000 +0200
+++ new/gjs-1.90.2/gjs/coverage.cpp     2026-11-27 05:21:15.000000000 +0100
@@ -76,33 +76,57 @@
     return path;
 }
 
-[[nodiscard]]
-static GErrorResult<> write_source_file_header(GOutputStream* stream,
-                                               GFile* source_file) {
-    Gjs::AutoChar path{get_file_identifier(source_file)};
-    Gjs::AutoError error;
-    if (!g_output_stream_printf(stream, nullptr, nullptr, error.out(),
-                                "SF:%s\n", path.get()))
-        return Err(error.release());
-    return Ok{};
-}
-
+// Load the whole file into memory and write it atomically using
+// g_file_set_contents_full(). There is no GFile-based API that could do this,
+// at least without extra steps. Loading the entire file is fine, because
+// all files processed by this function are JS modules - they were previously
+// loaded into memory already.
 [[nodiscard]]
 static GErrorResult<> copy_source_file_to_coverage_output(
     GFile* source_file, GFile* destination_file) {
-    /* We need to recursively make the directory we want to copy to, as
-     * g_file_copy doesn't do that */
     Gjs::AutoError error;
-    Gjs::AutoUnref<GFile> destination_dir{g_file_get_parent(destination_file)};
-    if (!g_file_make_directory_with_parents(destination_dir, nullptr,
-                                            error.out())) {
-        if (!g_error_matches(error, G_IO_ERROR, G_IO_ERROR_EXISTS))
-            return Err(error.release());
-        error.reset();
+    Gjs::AutoChar destination_path{g_file_get_path(destination_file)};
+    if (!destination_path) {
+        Gjs::AutoChar uri{g_file_get_uri(destination_file)};
+        g_set_error(error.out(), G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
+                    "Destination must be a local path (got %s)", uri.get());
+        return Err(error.release());
+    }
+
+    Gjs::AutoChar contents;
+    // Do not use size_t, may be different width
+    gsize length;
+    if (!g_file_load_contents(source_file, /*cancellable=*/nullptr,
+                              contents.out(), &length,
+                              /*etag_out=*/nullptr, error.out()))
+        return Err(error.release());
+
+    Gjs::AutoChar destination_contents;
+    // Do not use size_t, may be different width
+    gsize destination_length;
+    if (g_file_load_contents(destination_file, /*cancellable=*/nullptr,
+                             destination_contents.out(), &destination_length,
+                             /*etag_out=*/nullptr, /*error=*/nullptr)) {
+        if (length == destination_length &&
+            memcmp(contents, destination_contents, length) == 0)
+            return Ok{};
+        // If the destination file exists, its parent directory exists too.
+    } else {
+        Gjs::AutoUnref<GFile> destination_dir{
+            g_file_get_parent(destination_file)};
+        if (!g_file_make_directory_with_parents(destination_dir, nullptr,
+                                                error.out())) {
+            if (!g_error_matches(error, G_IO_ERROR, G_IO_ERROR_EXISTS))
+                return Err(error.release());
+            error.reset();
+        }
     }
 
-    if (!g_file_copy(source_file, destination_file, G_FILE_COPY_OVERWRITE,
-                     nullptr, nullptr, nullptr, error.out()))
+    auto flags = GFileSetContentsFlags(G_FILE_SET_CONTENTS_CONSISTENT |
+                                       // Skip fsync() for new files
+                                       G_FILE_SET_CONTENTS_ONLY_EXISTING);
+    if (!g_file_set_contents_full(destination_path, contents, length, flags,
+                                  0666, error.out()))
         return Err(error.release());
     return Ok{};
 }
@@ -163,10 +187,12 @@
 }
 
 [[nodiscard]]
-static inline GErrorResult<> write_line(GOutputStream* out, const char* line) {
+static inline GErrorResult<> write_string(GOutputStream* out,
+                                          std::string_view str) {
     Gjs::AutoError error;
-    if (!g_output_stream_printf(out, nullptr, nullptr, error.out(), "%s\n",
-                                line))
+    if (!g_output_stream_write_all(out, str.data(), str.size(),
+                                   /*bytes_written=*/nullptr,
+                                   /*cancellable=*/nullptr, error.out()))
         return Err(error.release());
     return Ok{};
 }
@@ -214,18 +240,26 @@
 
     Gjs::AutoStrv lcov_lines{g_strsplit(lcov.get(), "\n", -1)};
     const char* test_name = nullptr;
+    std::string record;
     bool ignoring_file = false;
 
     for (const char* const* iter = lcov_lines.get(); *iter; iter++) {
-        if (ignoring_file) {
-            if (strcmp(*iter, "end_of_record") == 0)
+        if (strcmp(*iter, "end_of_record") == 0) {
+            if (ignoring_file) {
                 ignoring_file = false;
+            } else {
+                record.append(*iter);
+                record.push_back('\n');
+                MOZ_TRY(write_string(ostream, record));
+            }
+
+            record.clear();
             continue;
         }
 
         if (g_str_has_prefix(*iter, "TN:")) {
-            /* Don't write the test name if the next line shows we are ignoring
-             * the source file */
+            /* Test name may appear before an ignored file record,
+             * don't lose it */
             test_name = *iter;
             continue;
         }
@@ -250,7 +284,8 @@
                 continue;
 
             // Now we can write the test name before writing the source file
-            MOZ_TRY(write_line(ostream, test_name));
+            record.append(test_name);
+            record.push_back('\n');
 
             Gjs::AutoChar diverged_paths{
                 find_diverging_child_components(source_file, 
priv->output_dir)};
@@ -259,13 +294,15 @@
             MOZ_TRY(copy_source_file_to_coverage_output(source_file,
                                                         destination_file));
 
-            /* Rewrite the source file path to be relative to the output dir so
-             * that genhtml will find it */
-            MOZ_TRY(write_source_file_header(ostream, destination_file));
+            Gjs::AutoChar path{get_file_identifier(destination_file)};
+            record.append("SF:");
+            record.append(path.get());
+            record.push_back('\n');
             continue;
         }
 
-        MOZ_TRY(write_line(ostream, *iter));
+        record.append(*iter);
+        record.push_back('\n');
     }
 
     return output_file;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gjs-1.90.1/meson.build new/gjs-1.90.2/meson.build
--- old/gjs-1.90.1/meson.build  2026-10-12 02:01:17.000000000 +0200
+++ new/gjs-1.90.2/meson.build  2026-11-27 05:21:15.000000000 +0100
@@ -2,7 +2,7 @@
 # SPDX-FileCopyrightText: 2019 Philip Chimento <[email protected]>
 # SPDX-FileCopyrightText: 2019 Chun-wei Fan <[email protected]>
 
-project('gjs', 'cpp', 'c', version: '1.90.1', license: ['MIT', 'LGPL2+'],
+project('gjs', 'cpp', 'c', version: '1.90.2', license: ['MIT', 'LGPL2+'],
     meson_version: '>= 1.4',
     default_options: ['cpp_std=c++17', 'cpp_rtti=false', 'cpp_eh=none',
         'c_std=c99', 'warning_level=2', 'b_pch=true' ])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gjs-1.90.1/test/gjs-test-coverage.cpp 
new/gjs-1.90.2/test/gjs-test-coverage.cpp
--- old/gjs-1.90.1/test/gjs-test-coverage.cpp   2026-10-12 02:01:17.000000000 
+0200
+++ new/gjs-1.90.2/test/gjs-test-coverage.cpp   2026-11-27 05:21:15.000000000 
+0100
@@ -47,9 +47,9 @@
 }
 
 static void recursive_delete_dir(GFile* dir) {
-    GFileEnumerator* files =
-        g_file_enumerate_children(dir, G_FILE_ATTRIBUTE_STANDARD_TYPE,
-                                  G_FILE_QUERY_INFO_NONE, nullptr, nullptr);
+    GFileEnumerator* files = g_file_enumerate_children(
+        dir, G_FILE_ATTRIBUTE_STANDARD_TYPE "," G_FILE_ATTRIBUTE_STANDARD_NAME,
+        G_FILE_QUERY_INFO_NONE, nullptr, nullptr);
     while (true) {
         GFile* file;
         GFileInfo* info;
@@ -914,7 +914,7 @@
                                                fixture->lcov_output);
 
     // No files were executed, so the coverage data is empty.
-    g_assert_cmpstr(coverage_data_contents, ==, "\n");
+    g_assert_cmpstr(coverage_data_contents, ==, "");
 }
 
 static void test_end_of_record_section_written_to_coverage_data(

++++++ gjs.obsinfo ++++++
--- /var/tmp/diff_new_pack.5WxuLr/_old  2026-12-01 16:59:38.254781366 +0100
+++ /var/tmp/diff_new_pack.5WxuLr/_new  2026-12-01 16:59:38.258781533 +0100
@@ -1,5 +1,5 @@
 name: gjs
-version: 1.90.1
-mtime: 1791763277
-commit: b755c24b9b0580623d4ed82013dbbfcb0ae37499
+version: 1.90.2
+mtime: 1795753275
+commit: 4a9ae2216ee378a8b92d6395d5670689c2e1b90d
 

Reply via email to