conda-forge / gz-sim-feedstock

A conda-smithy repository for gz-sim.
BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

Automatic update is broken #65

Open traversaro opened 2 weeks ago

traversaro commented 2 weeks ago

Solution to issue cannot be found in the documentation.

Issue

No idea why.

Installed packages

.

Environment info

.
traversaro commented 2 weeks ago

Triggering an update with https://github.com/conda-forge/gz-sensors-feedstock/issues/37 in gave us an error in https://github.com/conda-forge/gz-sensors-feedstock/actions/runs/10538400204/job/29200871549 :

2024-08-24 12:17:28,030 INFO     webservices_dispatch_action.version_updater || getting latest version
2024-08-24 12:17:41,638 INFO     webservices_dispatch_action.version_updater || curr version|latest version: 8.1.0|8.2.0
2024-08-24 12:17:41,658 INFO     conda_forge_tick.update_recipe.version || selector: None
2024-08-24 12:17:41,663 INFO     conda_forge_tick.update_recipe.version || jinja2 context: {'component_name': 'sensors', 'version': '8.2.0'}
2024-08-24 12:17:41,663 INFO     conda_forge_tick.update_recipe.version || evaluated jinja2 vars: {'repo_name': 'gz-sensors', 'major_version': '8.2.0', 'version_package': '', 'name': 'gz-sensors8.2.0', 'component_version': 'sensors8.2.0', 'cxx_name': 'libgz-sensors8.2.0'}
2024-08-24 12:17:41,663 INFO     conda_forge_tick.update_recipe.version || updated jinja2 context: {'component_name': 'sensors',
 'component_version': 'sensors8.2.0',
 'cxx_name': 'libgz-sensors8.2.0',
 'major_version': '8.2.0',
 'name': 'gz-sensors8.2.0',
 'repo_name': 'gz-sensors',
 'version': '8.2.0',
 'version_package': ''}
2024-08-24 12:17:41,663 INFO     conda_forge_tick.update_recipe.version || url key: url
2024-08-24 12:17:41,663 INFO     conda_forge_tick.update_recipe.version || hash key: sha256
2024-08-24 12:17:41,663 INFO     conda_forge_tick.update_recipe.version || hashing URL template: [https://github.com/gazebosim/{{](https://github.com/gazebosim/%7B%7B) repo_name }}/archive/{{ repo_name }}{{ version }}.tar.gz
2024-08-24 12:17:41,664 INFO     conda_forge_tick.update_recipe.version || rendered URL: https://github.com/gazebosim/gz-sensors/archive/gz-sensors8.2.0.tar.gz
2024-08-24 12:17:43,910 INFO     conda_forge_tick.update_recipe.version || new URL hash: None
2024-08-24 12:17:43,911 INFO     conda_forge_tick.update_recipe.version || updated|errors: False|{"could not hash URL template '[https://github.com/gazebosim/{{](https://github.com/gazebosim/%7B%7B) repo_name }}/archive/{{ repo_name }}{{ version }}.tar.gz'"}
2024-08-24 12:17:43,911 CRITICAL conda_forge_tick.update_recipe.version || {"could not hash URL template '[https://github.com/gazebosim/{{](https://github.com/gazebosim/%7B%7B) repo_name }}/archive/{{ repo_name }}{{ version }}.tar.gz'"}
2024-08-24 12:17:43,912 CRITICAL conda_forge_tick.update_recipe.version || Recipe did not change in version migration!
2024-08-24 12:17:43,912 CRITICAL webservices_dispatch_action.version_updater || errors when updating the recipe: {"could not hash URL template '[https://github.com/gazebosim/{{](https://github.com/gazebosim/%7B%7B) repo_name }}/archive/{{ repo_name }}{{ version }}.tar.gz'"}
2024-08-24 12:17:43,912 ERROR    webservices_dispatch_action.version_updater || error while updating the recipe!
Traceback (most recent call last):
  File "/webservices_dispatch_action/webservices_dispatch_action/version_updater.py", line 97, in update_version
    raise RuntimeError("Error updating the recipe!")
RuntimeError: Error updating the recipe!
INFO:webservices_dispatch_action.utils:token can change workflows: False
INFO:webservices_dispatch_action.utils:pushing and commenting: branch|owner|repo = conda_forge_admin_37|conda-forge-admin|gz-sensors-feedstock
Traceback (most recent call last):
  File "/opt/conda/bin/run-webservices-dispatch-action", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/webservices_dispatch_action/webservices_dispatch_action/__main__.py", line 175, in main
    raise RuntimeError(
RuntimeError: Updating version failed! error in push|version update: False|True
traversaro commented 2 weeks ago

No idea why, but apparently to fix this we need to align the recipe style with gz-math: https://github.com/conda-forge/gz-sensors-feedstock/commit/5bbc306bf23c84d65cd1e81d3a930614081e2990 .

traversaro commented 2 weeks ago

We need to review and align all repos in https://github.com/orgs/conda-forge/repositories?q=gz- .