Your message dated Thu, 22 Feb 2024 09:24:00 +0000
with message-id <e1rd5ja-009qoz...@fasolo.debian.org>
and subject line Bug#1056532: fixed in sqlfluff 2.3.5-1
has caused the Debian Bug report #1056532,
regarding sqlfluff's autopkg tests fail with Python 3.12
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1056532: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056532
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:sqlfluff
Version: 1.4.5-2
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

sqlfluff's autopkg tests fail with Python 3.12:

[...]
1626s =================================== FAILURES =================================== 1626s ___________ test__templater_full[jinja_j_libraries/jinja-True-False] ___________
1626s
1626s subpath = 'jinja_j_libraries/jinja', code_only = True, include_meta = False
1626s yaml_loader = <function load_yaml at 0x7fe412ec6980>
1626s caplog = <_pytest.logging.LogCaptureFixture object at 0x7fe412a1e4e0>
1626s
1626s     @pytest.mark.parametrize(
1626s         "subpath,code_only,include_meta",
1626s         [
1626s             # Config Scalar
1626s             ("jinja_a/jinja", True, False),
1626s             # Macros
1626s             ("jinja_b/jinja", False, False),
1626s             # dbt builtins
1626s             ("jinja_c_dbt/dbt_builtins_config", True, False),
1626s             ("jinja_c_dbt/dbt_builtins_is_incremental", True, False),
1626s             ("jinja_c_dbt/dbt_builtins_ref", True, False),
1626s             ("jinja_c_dbt/dbt_builtins_source", True, False),
1626s             ("jinja_c_dbt/dbt_builtins_this", True, False),
1626s             ("jinja_c_dbt/dbt_builtins_var_default", True, False),
1626s             # do directive
1626s             ("jinja_e/jinja", True, False),
1626s             # case sensitivity and python literals
1626s             ("jinja_f/jinja", True, False),
1626s             # Macro loading from a folder
1626s             ("jinja_g_macros/jinja", True, False),
1626s             # jinja raw tag
1626s             ("jinja_h_macros/jinja", True, False),
1626s             ("jinja_i_raw/raw_tag", True, False),
1626s             ("jinja_i_raw/raw_tag_2", True, False),
1626s             # Library Loading from a folder
1626s             ("jinja_j_libraries/jinja", True, False),
1626s             # Priority of macros
1626s ("jinja_k_config_override_path_macros/jinja", True, False),
1626s             # Placeholders and metas
1626s             ("jinja_l_metas/001", False, True),
1626s             ("jinja_l_metas/002", False, True),
1626s             ("jinja_l_metas/003", False, True),
1626s             ("jinja_l_metas/004", False, True),
1626s             ("jinja_l_metas/005", False, True),
1626s             ("jinja_l_metas/006", False, True),
1626s             # Library Loading from a folder when library is module
1626s             ("jinja_m_libraries_module/jinja", True, False),
1626s             ("jinja_n_nested_macros/jinja", True, False),
1626s             # Test more dbt configurations
1626s ("jinja_o_config_override_dbt_builtins/override_dbt_builtins", True, False), 1626s ("jinja_p_disable_dbt_builtins/disable_dbt_builtins", True, False),
1626s             # Load all the macros
1626s             ("jinja_q_multiple_path_macros/jinja", True, False),
1626s         ],
1626s     )
1626s def test__templater_full(subpath, code_only, include_meta, yaml_loader, caplog): 1626s """Check structure can be parsed from jinja templated files."""
1626s         # Log the templater and lexer throughout this test
1626s         caplog.set_level(logging.DEBUG, logger="sqlfluff.templater")
1626s         caplog.set_level(logging.DEBUG, logger="sqlfluff.lexer")
1626s
1626s >       assert_structure(
1626s             yaml_loader,
1626s             "test/fixtures/templater/" + subpath,
1626s             code_only=code_only,
1626s             include_meta=include_meta,
1626s         )
1626s
1626s test/core/templaters/jinja_test.py:619:
1626s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1626s test/core/templaters/jinja_test.py:553: in assert_structure
1626s     p = list(lntr.parse_path(path + ".sql"))
1626s /usr/lib/python3/dist-packages/sqlfluff/core/linter/linter.py:1204: in parse_path
1626s     yield self.parse_string(
1626s /usr/lib/python3/dist-packages/sqlfluff/core/linter/linter.py:867: in parse_string
1626s     rendered = self.render_string(in_str, fname, config, encoding)
1626s /usr/lib/python3/dist-packages/sqlfluff/core/linter/linter.py:816: in render_string
1626s     templated_file, templater_violations = self.templater.process(
1626s /usr/lib/python3/dist-packages/sqlfluff/core/templaters/base.py:53: in _wrapped 1626s return func(self, in_str=in_str, fname=fname, config=config, **kwargs) 1626s /usr/lib/python3/dist-packages/sqlfluff/core/templaters/jinja.py:376: in process
1626s     env, live_context, make_template = self.template_builder(
1626s /usr/lib/python3/dist-packages/sqlfluff/core/templaters/jinja.py:331: in template_builder 1626s live_context = self.get_context(fname=fname, config=config, env=env) 1626s /usr/lib/python3/dist-packages/sqlfluff/core/templaters/jinja.py:291: in get_context 1626s live_context.update(self._extract_libraries_from_config(config=config)) 1626s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1626s
1626s self = <sqlfluff.core.templaters.jinja.JinjaTemplater object at 0x7fe4128d08c0>
1626s config = <sqlfluff.core.config.FluffConfig object at 0x7fe411019ac0>
1626s
1626s     def _extract_libraries_from_config(self, config):
1626s         library_path = config.get_section(
1626s             (self.templater_selector, self.name, "library_path")
1626s         )
1626s         if not library_path:
1626s             return {}
1626s
1626s         libraries = JinjaTemplater.Libraries()
1626s
1626s # If library_path has __init__.py we parse it as one module, else we parse it
1626s         # a set of modules
1626s is_library_module = os.path.exists(os.path.join(library_path, "__init__.py"))
1626s         library_module_name = os.path.basename(library_path)
1626s
1626s         # Need to go one level up to parse as a module correctly
1626s         walk_path = (
1626s os.path.join(library_path, "..") if is_library_module else library_path
1626s         )
1626s
1626s for loader, module_name, is_pkg in pkgutil.walk_packages([walk_path]):
1626s             # skip other modules that can be near module_dir
1626s if is_library_module and not module_name.startswith(library_module_name):
1626s                 continue
1626s
1626s > module = loader.find_module(module_name).load_module(module_name) 1626s E AttributeError: 'FileFinder' object has no attribute 'find_module'
1626s
1626s /usr/lib/python3/dist-packages/sqlfluff/core/templaters/jinja.py:154: AttributeError 1626s _______ test__templater_full[jinja_m_libraries_module/jinja-True-False] ________
1626s
1626s subpath = 'jinja_m_libraries_module/jinja', code_only = True
1626s include_meta = False, yaml_loader = <function load_yaml at 0x7fe412ec6980>
1626s caplog = <_pytest.logging.LogCaptureFixture object at 0x7fe411019e20>
1626s
1626s     @pytest.mark.parametrize(
1626s         "subpath,code_only,include_meta",
1626s         [
1626s             # Config Scalar
1626s             ("jinja_a/jinja", True, False),
1626s             # Macros
1626s             ("jinja_b/jinja", False, False),
1626s             # dbt builtins
1626s             ("jinja_c_dbt/dbt_builtins_config", True, False),
1626s             ("jinja_c_dbt/dbt_builtins_is_incremental", True, False),
1626s             ("jinja_c_dbt/dbt_builtins_ref", True, False),
1626s             ("jinja_c_dbt/dbt_builtins_source", True, False),
1626s             ("jinja_c_dbt/dbt_builtins_this", True, False),
1626s             ("jinja_c_dbt/dbt_builtins_var_default", True, False),
1626s             # do directive
1626s             ("jinja_e/jinja", True, False),
1626s             # case sensitivity and python literals
1626s             ("jinja_f/jinja", True, False),
1626s             # Macro loading from a folder
1626s             ("jinja_g_macros/jinja", True, False),
1626s             # jinja raw tag
1626s             ("jinja_h_macros/jinja", True, False),
1626s             ("jinja_i_raw/raw_tag", True, False),
1626s             ("jinja_i_raw/raw_tag_2", True, False),
1626s             # Library Loading from a folder
1626s             ("jinja_j_libraries/jinja", True, False),
1626s             # Priority of macros
1626s ("jinja_k_config_override_path_macros/jinja", True, False),
1626s             # Placeholders and metas
1626s             ("jinja_l_metas/001", False, True),
1626s             ("jinja_l_metas/002", False, True),
1626s             ("jinja_l_metas/003", False, True),
1626s             ("jinja_l_metas/004", False, True),
1626s             ("jinja_l_metas/005", False, True),
1626s             ("jinja_l_metas/006", False, True),
1626s             # Library Loading from a folder when library is module
1626s             ("jinja_m_libraries_module/jinja", True, False),
1626s             ("jinja_n_nested_macros/jinja", True, False),
1626s             # Test more dbt configurations
1626s ("jinja_o_config_override_dbt_builtins/override_dbt_builtins", True, False), 1626s ("jinja_p_disable_dbt_builtins/disable_dbt_builtins", True, False),
1626s             # Load all the macros
1626s             ("jinja_q_multiple_path_macros/jinja", True, False),
1626s         ],
1626s     )
1626s def test__templater_full(subpath, code_only, include_meta, yaml_loader, caplog): 1626s """Check structure can be parsed from jinja templated files."""
1626s         # Log the templater and lexer throughout this test
1626s         caplog.set_level(logging.DEBUG, logger="sqlfluff.templater")
1626s         caplog.set_level(logging.DEBUG, logger="sqlfluff.lexer")
1626s
1626s >       assert_structure(
1626s             yaml_loader,
1626s             "test/fixtures/templater/" + subpath,
1626s             code_only=code_only,
1626s             include_meta=include_meta,
1626s         )
1626s
1626s test/core/templaters/jinja_test.py:619:
1626s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1626s test/core/templaters/jinja_test.py:553: in assert_structure
1626s     p = list(lntr.parse_path(path + ".sql"))
1626s /usr/lib/python3/dist-packages/sqlfluff/core/linter/linter.py:1204: in parse_path
1626s     yield self.parse_string(
1626s /usr/lib/python3/dist-packages/sqlfluff/core/linter/linter.py:867: in parse_string
1626s     rendered = self.render_string(in_str, fname, config, encoding)
1626s /usr/lib/python3/dist-packages/sqlfluff/core/linter/linter.py:816: in render_string
1626s     templated_file, templater_violations = self.templater.process(
1626s /usr/lib/python3/dist-packages/sqlfluff/core/templaters/base.py:53: in _wrapped 1626s return func(self, in_str=in_str, fname=fname, config=config, **kwargs) 1626s /usr/lib/python3/dist-packages/sqlfluff/core/templaters/jinja.py:376: in process
1626s     env, live_context, make_template = self.template_builder(
1626s /usr/lib/python3/dist-packages/sqlfluff/core/templaters/jinja.py:331: in template_builder 1626s live_context = self.get_context(fname=fname, config=config, env=env) 1626s /usr/lib/python3/dist-packages/sqlfluff/core/templaters/jinja.py:291: in get_context 1626s live_context.update(self._extract_libraries_from_config(config=config)) 1626s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1626s
1626s self = <sqlfluff.core.templaters.jinja.JinjaTemplater object at 0x7fe40bc6f8c0>
1626s config = <sqlfluff.core.config.FluffConfig object at 0x7fe41101bf20>
1626s
1626s     def _extract_libraries_from_config(self, config):
1626s         library_path = config.get_section(
1626s             (self.templater_selector, self.name, "library_path")
1626s         )
1626s         if not library_path:
1626s             return {}
1626s
1626s         libraries = JinjaTemplater.Libraries()
1626s
1626s # If library_path has __init__.py we parse it as one module, else we parse it
1626s         # a set of modules
1626s is_library_module = os.path.exists(os.path.join(library_path, "__init__.py"))
1626s         library_module_name = os.path.basename(library_path)
1626s
1626s         # Need to go one level up to parse as a module correctly
1626s         walk_path = (
1626s os.path.join(library_path, "..") if is_library_module else library_path
1626s         )
1626s
1626s for loader, module_name, is_pkg in pkgutil.walk_packages([walk_path]):
1626s             # skip other modules that can be near module_dir
1626s if is_library_module and not module_name.startswith(library_module_name):
1626s                 continue
1626s
1626s > module = loader.find_module(module_name).load_module(module_name) 1626s E AttributeError: 'FileFinder' object has no attribute 'find_module'
1626s
1626s /usr/lib/python3/dist-packages/sqlfluff/core/templaters/jinja.py:154: AttributeError 1626s =============================== warnings summary ===============================
1626s test/cli/commands_test.py: 718 warnings
1626s /usr/lib/python3/dist-packages/tqdm/std.py:468: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
1626s     if rate and total else datetime.utcfromtimestamp(0))
1626s
1626s test/core/linter_test.py::test__linter__linting_result_get_violations[2] 1626s test/core/linter_test.py::test__linter__linting_result_get_violations[2] 1626s /usr/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=1484) is multi-threaded, use of fork() may lead to deadlocks in the child.
1626s     self.pid = os.fork()
1626s
1626s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1626s =========================== short test summary info ============================ 1626s FAILED test/core/templaters/jinja_test.py::test__templater_full[jinja_j_libraries/jinja-True-False] 1626s FAILED test/core/templaters/jinja_test.py::test__templater_full[jinja_m_libraries_module/jinja-True-False] 1626s ========== 2 failed, 5635 passed, 720 warnings in 1440.02s (0:24:00) ===========
--- End Message ---
--- Begin Message ---
Source: sqlfluff
Source-Version: 2.3.5-1
Done: Andreas Tille <ti...@debian.org>

We believe that the bug you reported is fixed in the latest version of
sqlfluff, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1056...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <ti...@debian.org> (supplier of updated sqlfluff package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 22 Feb 2024 08:28:45 +0100
Source: sqlfluff
Architecture: source
Version: 2.3.5-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Andreas Tille <ti...@debian.org>
Closes: 1041428 1056532
Changes:
 sqlfluff (2.3.5-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream version
     Closes: #1041428 (CVE-2023-36830)
     Closes: #1056532
   * Add upstream metadata
Checksums-Sha1:
 f41caef5560b3100a744298ea0be010269ed2aed 3617 sqlfluff_2.3.5-1.dsc
 40304c3f5e92b321398c9f44bb73148329031dfe 2039182 sqlfluff_2.3.5.orig.tar.gz
 2a06d8e708d30eb21455b0957334b4d1020fb172 8660 sqlfluff_2.3.5-1.debian.tar.xz
 e8df917036864391947f7c11a7003639a09f35f2 8559 sqlfluff_2.3.5-1_amd64.buildinfo
Checksums-Sha256:
 c4fea16961f9dfb3fc58c915dc6e53bfd49e810d1b8bcb6f4ac292d8241ac5b4 3617 
sqlfluff_2.3.5-1.dsc
 85d7cb5cbe0e2fb0745593a0543f35315389bce004481efde7e6d3ae7338f12f 2039182 
sqlfluff_2.3.5.orig.tar.gz
 e219b625ae7e5bcb5f1bd3981e453936969bfa66bcb246275e236a58e851ec73 8660 
sqlfluff_2.3.5-1.debian.tar.xz
 4e8e54ff29df6a54c8132420ebe222e19debd39c6d18d0877cfb9e54986afb36 8559 
sqlfluff_2.3.5-1_amd64.buildinfo
Files:
 3b1ce342c004d4e2582f4e9c97932677 3617 python optional sqlfluff_2.3.5-1.dsc
 a4f03900bb5c42bae2f9c600092c0af4 2039182 python optional 
sqlfluff_2.3.5.orig.tar.gz
 27a0c9fe431f16b94c74c80141c027f0 8660 python optional 
sqlfluff_2.3.5-1.debian.tar.xz
 5d0839703f84a50761682a714ea8a25b 8559 python optional 
sqlfluff_2.3.5-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmXW/jQRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtEYcQ/9HhEDZm4MRvScqf8sqiP136slhpg84I3u
SCPvR+1i/hTisu8xdpNLT4PYHNrIXRCtJoGRzZQUGg8vyM3aQDisB3GgTOT841bH
mqrrt0tArTZeZAYzUiNJHsEXaBHqwF8aNPSqnGdgVW1e0hdeVOQJJzvHC1yaWVyl
pv/K0UeT1ZbVHnXSGM0Npq2pQcivJr1z2q2Aox3GAfTtTkTfJwLN5j6e7gp/es0r
J57LhIINPlzIX8D6v17uRBkCVVtuRYar6ZzRkujm39AQGhD1V05kXOZ26+vq+wmH
YxEUWUozyzMryM1qaLUDpQu/SQgzsVAeX9n0k+L6OtyniwgLkVygM2otxyejDZTs
PgIGRDaeWcPwzX+vv40yC9dspEngcXEsVyjj7ZcPfc3tmzZdcEtVMBcZ2eLJrSEC
IpbYAp1oMoRG6rQGGfuF762oEQfkMpVugmhqU/G9s3UjCOeX77OzYSrjkclRy/ZS
HGOJ3a7wTIf3pU++34ITpTCosS5sXNuvFNbfXVbGKBYcmk7OdICzqpU3rA8tkgS6
MsblERKKQVwRRs1TAufSwfXXPXGtlTdP/mrJVYJZoj/sMOvp4D77Qu15ETUQ1fPt
eW0E8vy4evZoigLjwlPUrU5wQh6h5L5FR82sz8zaAVNXxzAZckxMD+EVWCl1Bg4o
6mlqerLwiaA=
=DKzi
-----END PGP SIGNATURE-----

Attachment: pgpo8JMEGJpMb.pgp
Description: PGP signature


--- End Message ---

Reply via email to