Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-azure-core for 
openSUSE:Factory checked in at 2026-05-10 16:47:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-azure-core (Old)
 and      /work/SRC/openSUSE:Factory/.python-azure-core.new.1966 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-azure-core"

Sun May 10 16:47:12 2026 rev:66 rq:1352021 version:1.41.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-azure-core/python-azure-core.changes      
2026-05-05 15:14:26.344871799 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-azure-core.new.1966/python-azure-core.changes
    2026-05-10 16:47:28.046675242 +0200
@@ -1,0 +2,8 @@
+Fri May  8 06:24:45 UTC 2026 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- New upstream release
+  + Version 1.41.0
+  + For detailed information about changes see the
+    CHANGELOG.md file provided with this package
+
+-------------------------------------------------------------------

Old:
----
  azure_core-1.40.0.tar.gz

New:
----
  azure_core-1.41.0.tar.gz

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

Other differences:
------------------
++++++ python-azure-core.spec ++++++
--- /var/tmp/diff_new_pack.I5WdmM/_old  2026-05-10 16:47:28.586697343 +0200
+++ /var/tmp/diff_new_pack.I5WdmM/_new  2026-05-10 16:47:28.590697506 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-azure-core
-Version:        1.40.0
+Version:        1.41.0
 Release:        0
 Summary:        Microsoft Azure Core Library for Python
 License:        MIT

++++++ azure_core-1.40.0.tar.gz -> azure_core-1.41.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.40.0/CHANGELOG.md 
new/azure_core-1.41.0/CHANGELOG.md
--- old/azure_core-1.40.0/CHANGELOG.md  2026-05-01 01:58:21.000000000 +0200
+++ new/azure_core-1.41.0/CHANGELOG.md  2026-05-07 19:06:24.000000000 +0200
@@ -1,5 +1,15 @@
 # Release History
 
+## 1.41.0 (2026-05-07)
+
+### Features Added
+
+- `AZURE_LOG_LEVEL` now accepts `VERBOSE` (case-insensitive) as an alias for 
`DEBUG`. #46668
+
+### Other Changes
+
+- Invalid values for the `AZURE_LOG_LEVEL`, `AZURE_TRACING_ENABLED`, and 
`AZURE_SDK_TRACING_IMPLEMENTATION` environment variables no longer raise 
errors. Instead, a warning is logged and the default value is used (`INFO` for 
`AZURE_LOG_LEVEL`). #46668
+
 ## 1.40.0 (2026-04-30)
 
 ### Features Added
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.40.0/CLIENT_LIBRARY_DEVELOPER.md 
new/azure_core-1.41.0/CLIENT_LIBRARY_DEVELOPER.md
--- old/azure_core-1.40.0/CLIENT_LIBRARY_DEVELOPER.md   2026-05-01 
01:58:21.000000000 +0200
+++ new/azure_core-1.41.0/CLIENT_LIBRARY_DEVELOPER.md   2026-05-07 
19:06:24.000000000 +0200
@@ -759,9 +759,9 @@
 
 | Variable | Description | Accepted Values | Default |
 | --- | --- | --- | --- |
-| `AZURE_LOG_LEVEL` | Logging level for all Azure SDK clients. | `CRITICAL`, 
`ERROR`, `WARNING`, `INFO`, `DEBUG` (case-insensitive) | `INFO` |
-| `AZURE_TRACING_ENABLED` | Enable/disable distributed tracing. | 
`true`/`false`, `yes`/`no`, `1`/`0`, `on`/`off` (case-insensitive) | 
Auto-detected based on `AZURE_SDK_TRACING_IMPLEMENTATION` |
-| `AZURE_SDK_TRACING_IMPLEMENTATION` | Tracing implementation to use. Requires 
the corresponding plugin package (`azure-core-tracing-opentelemetry`). | 
`opentelemetry` | None |
+| `AZURE_LOG_LEVEL` | Logging level for all Azure SDK clients. Invalid values 
fall back to `INFO` with a warning. | `CRITICAL`, `ERROR`, `WARNING`, `INFO`, 
`DEBUG`, `VERBOSE` (case-insensitive; `VERBOSE` treated as `DEBUG`) | `INFO` |
+| `AZURE_TRACING_ENABLED` | Enable/disable distributed tracing. Invalid values 
fall back to the default with a warning. | `true`/`false`, `yes`/`no`, `1`/`0`, 
`on`/`off` (case-insensitive) | Auto-detected based on 
`AZURE_SDK_TRACING_IMPLEMENTATION` |
+| `AZURE_SDK_TRACING_IMPLEMENTATION` | Tracing implementation to use. Requires 
the corresponding plugin package (`azure-core-tracing-opentelemetry`). Invalid 
values fall back to the default with a warning. | `opentelemetry` | None |
 | `AZURE_SDK_CLOUD_CONF` | Azure cloud environment. | `AZURE_PUBLIC_CLOUD`, 
`AZURE_CHINA_CLOUD`, `AZURE_US_GOVERNMENT` | `AZURE_PUBLIC_CLOUD` |
 
 These settings can also be read or set programmatically:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.40.0/ENVIRONMENT_VARIABLES.md 
new/azure_core-1.41.0/ENVIRONMENT_VARIABLES.md
--- old/azure_core-1.40.0/ENVIRONMENT_VARIABLES.md      2026-05-01 
01:58:21.000000000 +0200
+++ new/azure_core-1.41.0/ENVIRONMENT_VARIABLES.md      2026-05-07 
19:06:24.000000000 +0200
@@ -12,7 +12,9 @@
 |---|---|
 | **Used by** | `azure.core.settings.Settings.log_level` |
 | **Default** | `INFO` |
-| **Accepted values** | `CRITICAL`, `ERROR`, `WARNING`, `INFO`, `DEBUG` 
(case-insensitive) |
+| **Accepted values** | `CRITICAL`, `ERROR`, `WARNING`, `INFO`, `DEBUG`, 
`VERBOSE` (case-insensitive). `VERBOSE` is treated as `DEBUG`. |
+
+If the value is not one of the accepted values, a warning is logged and `INFO` 
is used.
 
 **Example:**
 
@@ -36,6 +38,8 @@
 
 If not set, tracing is automatically enabled if a tracing implementation is 
configured (via `AZURE_SDK_TRACING_IMPLEMENTATION`), and disabled otherwise.
 
+If the value is not one of the accepted values, a warning is logged and the 
default behavior is used.
+
 **Example:**
 
 ```bash
@@ -56,6 +60,8 @@
 
 - `opentelemetry` — requires `azure-core-tracing-opentelemetry`
 
+If the value is not one of the accepted values, a warning is logged and the 
default (None) is used.
+
 **Example:**
 
 ```bash
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.40.0/PKG-INFO 
new/azure_core-1.41.0/PKG-INFO
--- old/azure_core-1.40.0/PKG-INFO      2026-05-01 01:59:09.152074300 +0200
+++ new/azure_core-1.41.0/PKG-INFO      2026-05-07 19:07:18.185393600 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: azure-core
-Version: 1.40.0
+Version: 1.41.0
 Summary: Microsoft Azure Core Library for Python
 Author-email: Microsoft Corporation <[email protected]>
 License-Expression: MIT
@@ -308,6 +308,16 @@
 
 # Release History
 
+## 1.41.0 (2026-05-07)
+
+### Features Added
+
+- `AZURE_LOG_LEVEL` now accepts `VERBOSE` (case-insensitive) as an alias for 
`DEBUG`. #46668
+
+### Other Changes
+
+- Invalid values for the `AZURE_LOG_LEVEL`, `AZURE_TRACING_ENABLED`, and 
`AZURE_SDK_TRACING_IMPLEMENTATION` environment variables no longer raise 
errors. Instead, a warning is logged and the default value is used (`INFO` for 
`AZURE_LOG_LEVEL`). #46668
+
 ## 1.40.0 (2026-04-30)
 
 ### Features Added
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.40.0/azure/core/_version.py 
new/azure_core-1.41.0/azure/core/_version.py
--- old/azure_core-1.40.0/azure/core/_version.py        2026-05-01 
01:58:21.000000000 +0200
+++ new/azure_core-1.41.0/azure/core/_version.py        2026-05-07 
19:06:24.000000000 +0200
@@ -9,4 +9,4 @@
 # regenerated.
 # --------------------------------------------------------------------------
 
-VERSION = "1.40.0"
+VERSION = "1.41.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.40.0/azure/core/settings.py 
new/azure_core-1.41.0/azure/core/settings.py
--- old/azure_core-1.40.0/azure/core/settings.py        2026-05-01 
01:58:21.000000000 +0200
+++ new/azure_core-1.41.0/azure/core/settings.py        2026-05-07 
19:06:24.000000000 +0200
@@ -53,6 +53,8 @@
 ValidInputType = TypeVar("ValidInputType")
 ValueType = TypeVar("ValueType")
 
+_LOGGER = logging.getLogger(__name__)
+
 
 __all__ = ("settings", "Settings")
 
@@ -94,11 +96,14 @@
 def convert_tracing_enabled(value: Optional[Union[str, bool]]) -> bool:
     """Convert tracing value to bool with regard to tracing implementation.
 
+    If the value cannot be converted to a bool, a warning is logged and the
+    default behavior is used (auto-detect based on whether a tracing
+    implementation is configured).
+
     :param value: the value to convert
     :type value: str or bool or None
     :returns: A boolean value matching the intent of the input
     :rtype: bool
-    :raises ValueError: If conversion to bool fails
     """
     if value is None:
         # If tracing_enabled was not explicitly set to a boolean, determine 
tracing enablement
@@ -106,7 +111,17 @@
         if settings.tracing_implementation():
             return True
         return False
-    return convert_bool(value)
+    try:
+        return convert_bool(value)
+    except ValueError:
+        _LOGGER.warning(
+            "Invalid value %r for AZURE_TRACING_ENABLED; falling back to 
default behavior. "
+            "Valid values are: 'true'/'false', 'yes'/'no', '1'/'0', 'on'/'off' 
(case-insensitive).",
+            value,
+        )
+        if settings.tracing_implementation():
+            return True
+        return False
 
 
 _levels = {
@@ -129,12 +144,15 @@
     * "warning"
     * "info"
     * "debug"
+    * "verbose" (treated as "debug")
+
+    If the value cannot be converted, a warning is logged and ``logging.INFO``
+    is returned.
 
     :param value: the value to convert
     :type value: str or int
     :returns: A log level as an int. See the logging module for details.
     :rtype: int
-    :raises ValueError: If conversion to log level fails
 
     """
     if isinstance(value, int):
@@ -142,9 +160,16 @@
         # https://docs.python.org/3/library/logging.html#levels
         return value
     val = value.upper()
+    if val == "VERBOSE":
+        val = "DEBUG"
     level = _levels.get(val)
-    if not level:
-        raise ValueError("Cannot convert {} to log level, valid values are: 
{}".format(value, ", ".join(_levels)))
+    if level is None:
+        _LOGGER.warning(
+            "Invalid log level %r for AZURE_LOG_LEVEL; falling back to INFO. 
Valid values are: %s.",
+            value,
+            ", ".join(_levels),
+        )
+        return logging.INFO
     return level
 
 
@@ -218,10 +243,11 @@
     * "opencensus"
     * "opentelemetry"
 
+    If the value cannot be converted, a warning is logged and ``None`` is 
returned.
+
     :param value: the value to convert
     :type value: string
     :returns: AbstractSpan
-    :raises ValueError: If conversion to AbstractSpan fails
 
     """
     if value is None:
@@ -234,11 +260,13 @@
     get_wrapper_class = _tracing_implementation_dict.get(value, lambda: _unset)
     wrapper_class: Optional[Union[_Unset, Type[AbstractSpan]]] = 
get_wrapper_class()
     if wrapper_class is _unset:
-        raise ValueError(
-            "Cannot convert {} to AbstractSpan, valid values are: {}".format(
-                value, ", ".join(_tracing_implementation_dict)
-            )
+        _LOGGER.warning(
+            "Invalid tracing implementation %r for 
AZURE_SDK_TRACING_IMPLEMENTATION; falling back to default (None). "
+            "Valid values are: %s.",
+            value,
+            ", ".join(_tracing_implementation_dict),
         )
+        return None
     return wrapper_class
 
 
@@ -433,12 +461,15 @@
     The following environment variables are used by the settings:
 
     * ``AZURE_LOG_LEVEL`` - Logging level. Accepted values: ``CRITICAL``, 
``ERROR``, ``WARNING``,
-      ``INFO``, ``DEBUG`` (case-insensitive). Default: ``INFO``.
+      ``INFO``, ``DEBUG``, ``VERBOSE`` (case-insensitive). ``VERBOSE`` is 
treated as ``DEBUG``.
+      If the value is invalid, a warning is logged and ``INFO`` is used. 
Default: ``INFO``.
     * ``AZURE_TRACING_ENABLED`` - Enable/disable tracing. Accepted values: 
``true``/``false``,
-      ``yes``/``no``, ``1``/``0``, ``on``/``off`` (case-insensitive). Default: 
auto-detected
-      based on whether a tracing implementation is configured.
+      ``yes``/``no``, ``1``/``0``, ``on``/``off`` (case-insensitive). If the 
value is invalid,
+      a warning is logged and the default is used. Default: auto-detected 
based on whether a
+      tracing implementation is configured.
     * ``AZURE_SDK_TRACING_IMPLEMENTATION`` - Tracing implementation. Accepted 
values:
-      ``opentelemetry``. Default: None.
+      ``opentelemetry``. If the value is invalid, a warning is logged and the 
default is used.
+      Default: None.
     * ``AZURE_SDK_CLOUD_CONF`` - Azure cloud environment. Accepted values:
       ``AZURE_PUBLIC_CLOUD``, ``AZURE_CHINA_CLOUD``, ``AZURE_US_GOVERNMENT``.
       Default: ``AZURE_PUBLIC_CLOUD``.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.40.0/azure_core.egg-info/PKG-INFO 
new/azure_core-1.41.0/azure_core.egg-info/PKG-INFO
--- old/azure_core-1.40.0/azure_core.egg-info/PKG-INFO  2026-05-01 
01:59:09.000000000 +0200
+++ new/azure_core-1.41.0/azure_core.egg-info/PKG-INFO  2026-05-07 
19:07:18.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: azure-core
-Version: 1.40.0
+Version: 1.41.0
 Summary: Microsoft Azure Core Library for Python
 Author-email: Microsoft Corporation <[email protected]>
 License-Expression: MIT
@@ -308,6 +308,16 @@
 
 # Release History
 
+## 1.41.0 (2026-05-07)
+
+### Features Added
+
+- `AZURE_LOG_LEVEL` now accepts `VERBOSE` (case-insensitive) as an alias for 
`DEBUG`. #46668
+
+### Other Changes
+
+- Invalid values for the `AZURE_LOG_LEVEL`, `AZURE_TRACING_ENABLED`, and 
`AZURE_SDK_TRACING_IMPLEMENTATION` environment variables no longer raise 
errors. Instead, a warning is logged and the default value is used (`INFO` for 
`AZURE_LOG_LEVEL`). #46668
+
 ## 1.40.0 (2026-04-30)
 
 ### Features Added
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.40.0/tests/test_settings.py 
new/azure_core-1.41.0/tests/test_settings.py
--- old/azure_core-1.40.0/tests/test_settings.py        2026-05-01 
01:58:21.000000000 +0200
+++ new/azure_core-1.41.0/tests/test_settings.py        2026-05-07 
19:06:24.000000000 +0200
@@ -167,16 +167,22 @@
         assert m.convert_logging(level) == level
 
     def test_convert_logging_bad(self):
-        with pytest.raises(ValueError):
-            m.convert_logging("junk")
+        # Invalid values now fall back to INFO with a warning logged.
+        assert m.convert_logging("junk") == logging.INFO
+
+    def test_convert_logging_verbose(self):
+        # "verbose" is accepted as an alias for "debug".
+        assert m.convert_logging("verbose") == logging.DEBUG
+        assert m.convert_logging("VERBOSE") == logging.DEBUG
 
     def test_convert_azure_cloud(self):
         with pytest.raises(ValueError):
             m.convert_azure_cloud(10)
 
     def test_convert_tracing_impl_bad(self):
-        with pytest.raises(ValueError):
-            m.convert_tracing_impl("foo")
+        m.convert_tracing_impl.cache_clear()
+        # Invalid values now fall back to None with a warning logged.
+        assert m.convert_tracing_impl("foo") is None
 
     def test_convert_tracing_impl_caching(self):
         m.convert_tracing_impl.cache_clear()

Reply via email to