Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vtk update missing migrator #2805

Open
jakirkham opened this issue Jun 24, 2024 · 7 comments
Open

vtk update missing migrator #2805

jakirkham opened this issue Jun 24, 2024 · 7 comments

Comments

@jakirkham
Copy link
Contributor

A few weeks back vtk was updated to 9.3.0: conda-forge/vtk-feedstock#328

However the bot did not open a migrator PR

So @minrk needed to open one manually: conda-forge/conda-forge-pinning-feedstock#6046

Do we know why the bot missed adding this migrator for vtk version 9.3.0?

@beckermr
Copy link
Contributor

We lost an opportunity to debug when the pr was opened manually. Maybe I can cook up a test, but it will be a bit.

@jakirkham
Copy link
Contributor Author

Ah ok. Sorry still catching up a bit

Maybe we can keep an eye on this for the next vtk update

@jakirkham
Copy link
Contributor Author

Looks like another debugging window is opening with vtk version 9.3.1

xref: conda-forge/vtk-feedstock#330

@minrk
Copy link
Contributor

minrk commented Jun 29, 2024

I'll make sure to not do the manual migrator this time.

@minrk
Copy link
Contributor

minrk commented Jul 1, 2024

I think the rerender error in the 9.3.1 PR probably points to the culprit, a recursion error in hash_dependencies:

File "/opt/conda/lib/python3.11/site-packages/conda_build/metadata.py", line 1787, in hash_dependencies
    hashing_dependencies = self.get_hash_contents()
                           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/conda_build/metadata.py", line 1734, in get_hash_contents
    dependencies = set(self.get_used_vars())
                       ^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/conda_build/metadata.py", line 2869, in get_used_vars
    script_reqs = self._get_used_vars_output_script()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/conda_build/metadata.py", line 2988, in _get_used_vars_output_script
    self.get_rendered_output(self.name(), permit_undefined_jinja=True) or {}
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/conda_build/metadata.py", line 2821, in get_rendered_output
    for output_ in self.get_rendered_outputs_section(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/conda_build/metadata.py", line 2803, in get_rendered_outputs_section
    self._get_contents(
  File "/opt/conda/lib/python3.11/site-packages/conda_build/metadata.py", line 2054, in _get_contents
    env.globals.update(get_dict(m=self, skip_build_id=skip_build_id))
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/conda_build/environ.py", line 370, in get_dict
    d.update(meta_vars(m, skip_build_id=skip_build_id))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/conda_build/environ.py", line 597, in meta_vars
    d["PKG_HASH"] = meta.hash_dependencies()
                    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/conda_build/metadata.py", line 1787, in hash_dependencies
    hashing_dependencies = self.get_hash_contents()

@jakirkham
Copy link
Contributor Author

Thanks Min! 🙏

Interesting, thought we had fixed a lot of the re-rendering issues recently ( conda-forge/vtk-feedstock#327 ). Though I guess new issues cropped up?

@minrk
Copy link
Contributor

minrk commented Jul 4, 2024

FWIW, I've been testing local builds of conda-smithy and conda-build for conda-forge/conda-smithy#1968, and the recursion error does not happen with latest conda-smithy (conda-forge/conda-smithy@dd6091b), but it does with 3.36.2. I don't really understand which change would cause that, but pushing a conda-smithy release ought to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants