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

net-misc/openssh fails the tree regeneration with "Invalid version: '9.8_p1'" #214

Closed
org-tekeli-borisp opened this issue Nov 17, 2024 · 15 comments
Labels

Comments

@org-tekeli-borisp
Copy link

INFO     Created: app-emulation/docker-cli/docker-cli-24.0.6.ebuild             
INFO     Created: app-emulation/docker-buildx/docker-buildx-0.11.2.ebuild       
INFO     Created: app-emulation/docker-compose/docker-compose-2.21.0.ebuild     
ERROR    Autogen failed (count: 1). [<Task finished name='Task-294'             
         coro=<execute_generator.<locals>.generator_thread_task.<locals>.gen_wra
         pper() done, defined at                                                
         /usr/lib/python3.9/subpop/org.funtoo.metatools/pkgtools/autogen.py:371>
         exception=InvalidVersion("Invalid version: '9.8_p1'")>]                
ERROR    Errors were encountered when processing the following autogens:        
ERROR     *                                                                     
         /home/tree/mark-testing/repo_tmp/source-trees/kit-fixups/generators/git
         hub-1.py (net-misc/openssh)                                            
ERROR    End of report.                                                         
�[?25h
ERROR    Command failure from merge-kits: cd                                    
         /home/tree/mark-testing/repo_tmp/source-trees/kit-fixups/core-kit/curat
         ed && doit --fast --release mark --fastpull_scope=local --moonbeam     
         --prod                                                                 
CRITICAL Step Autogen failed with Exception: failed autogen in                  
         /home/tree/mark-testing/repo_tmp/source-trees/kit-fixups -- offset     
         core-kit/curated.                                                      
ERROR    Kit job failure:                                                       
         Traceback (most recent call last):                                     
           File "/usr/lib/python3.9/site-packages/metatools/kit.py", line 680,  
     ```
@org-tekeli-borisp
Copy link
Author

Strange my own tree doesn't have the problem an is on 9.9_p1 already
image

@org-tekeli-borisp
Copy link
Author

Oh, why we had pinned to 9,8_p1 in the MARK?
image

@org-tekeli-borisp
Copy link
Author

Ok found why #36 (comment)
Going to remove the pin

@org-tekeli-borisp
Copy link
Author

Strange local doit fails too after removing of the version pinning

 ╰ $ doit
INFO     Autogen: net-misc/openssh (latest)                                                                                                                                                                                                                                                                         
ERROR    Invalid version: '9.9_p1'                                                                                                                                                                                                                                                                                  
         Traceback (most recent call last):                                                                                                                                                                                                                                                                         
           File "/usr/lib/python3.9/subpop/org.funtoo.metatools/pkgtools/autogen.py", line 436, in gen_wrapper                                                                                                                                                                                                      
             await generate(AutoHub(autogen_id, pkgtools), **pkginfo)                                                                                                                                                                                                                                               
           File "/home/borisp/Development/src/funtoo-infra-core/kit-fixups/generators/github-1.py", line 114, in generate                                                                                                                                                                                           
             github_result = await hub.pkgtools.github.tag_gen(hub, github_user, github_repo, **extra_args)                                                                                                                                                                                                         
           File "/usr/lib/python3.9/subpop/org.funtoo.metatools/pkgtools/github.py", line 304, in tag_gen                                                                                                                                                                                                           
             result = await latest_tag_version(hub, github_user, github_repo, tag_data=tag_data, transform=transform,                                                                                                                                                                                               
           File "/usr/lib/python3.9/subpop/org.funtoo.metatools/pkgtools/github.py", line 291, in latest_tag_version                                                                                                                                                                                                
             return max(versions_and_tag_elements, key=lambda v: matcher.sortable(v[0]))                                                                                                                                                                                                                            
           File "/usr/lib/python3.9/subpop/org.funtoo.metatools/pkgtools/github.py", line 291, in <lambda>                                                                                                                                                                                                          
             return max(versions_and_tag_elements, key=lambda v: matcher.sortable(v[0]))                                                                                                                                                                                                                            
           File "/usr/lib/python3.9/site-packages/metatools/generator/transform.py", line 135, in sortable                                                                                                                                                                                                          
             return packaging.version.parse(version)                                                                                                                                                                                                                                                                
           File "/usr/lib/python3.9/site-packages/packaging/version.py", line 56, in parse                                                                                                                                                                                                                          
             return Version(version)                                                                                                                                                                                                                                                                                
           File "/usr/lib/python3.9/site-packages/packaging/version.py", line 202, in __init__                                                                                                                                                                                                                      
             raise InvalidVersion(f"Invalid version: {version!r}")                                                                                                                                                                                                                                                  
         packaging.version.InvalidVersion: Invalid version: '9.9_p1'                                                                                                                                                                                                                                                
ERROR    Autogen failed (count: 1). [<Task finished name='Task-3' coro=<execute_generator.<locals>.generator_thread_task.<locals>.gen_wrapper() done, defined at /usr/lib/python3.9/subpop/org.funtoo.metatools/pkgtools/autogen.py:367> exception=InvalidVersion("Invalid version: '9.9_p1'")>]                    
ERROR    Errors were encountered when processing the following autogens:                                                                                                                                                                                                                                            
ERROR     * ~/kit-fixups/generators/github-1.py (net-misc/openssh)                                                                                                                                                                                                     
ERROR    End of report.                                                                        ``` 

@org-tekeli-borisp
Copy link
Author

@geaaru
Hmm, could it be related to packaging update from
#201
macaroni-os/kit-fixups#195 ?

@org-tekeli-borisp
Copy link
Author

org-tekeli-borisp commented Nov 17, 2024

My private tree regenerator is on the dev-python/packaging-21.3 and it regens the openssh without a problem
Our public tree regenerator and my local dev machine are already on dev-python/packaging-24.2 and they complain about a invalid version

Private tree regenerator

regen ~ # emerge -pv dev-python/packaging

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-python/packaging-21.3::python-modules-kit  PYTHON_TARGETS="python3_9 -python2_7 -python3_10 -python3_7 -python3_8" 83 KiB

Total: 1 package (1 reinstall), Size of downloads: 83 KiB

Dev machine


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-python/packaging-24.2::python-modules-kit  PYTHON_TARGETS="python3_9 -python2_7 -python3_10 -python3_7 -python3_8" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] ```

@org-tekeli-borisp
Copy link
Author

:raises InvalidVersion:
            If the ``version`` does not conform to PEP 440 in any way then this

image

@org-tekeli-borisp
Copy link
Author

@org-tekeli-borisp
Copy link
Author

org-tekeli-borisp commented Nov 17, 2024

Is patch level _p1 not conform to PEP 440? Seems like it is

@geaaru
Copy link
Contributor

geaaru commented Nov 17, 2024

@org-tekeli-borisp yeah, the openssh versioning is not compliant with Gentoo versioning. This the reason why we have a lot of rules on transform section of the autogen. It's weird that the pinned version doesn't work anymore. Before upgrade it it's better to investigate why doesn't work anymore.
This is a critical package, it's been pinned because must be tested before the upgrade.
In addition, I think that could be using the dirlisting-1 generator too instead of Github optionally.

@org-tekeli-borisp
Copy link
Author

@geaaru I did an update on regen instance yesterday. So the dev-python/packaging-24.2 was installed on it. After that the problem has appeared.

@org-tekeli-borisp
Copy link
Author

Ok, we are switching to static ebuild for net-misc/openssh temporally. In the mean time we will try to find a solution for version schema incompatibility due to =dev-python/packaging-24.2 PEP 440

@org-tekeli-borisp
Copy link
Author

Plan change!
@geaaru did a pacth for metatools! ;)
macaroni-os/funtoo-metatools@73e1e79

@geaaru
Copy link
Contributor

geaaru commented Nov 17, 2024

Closing because fixed with #217

@geaaru geaaru closed this as completed Nov 17, 2024
org-tekeli-borisp pushed a commit to funtoo-src/funtoo-metatools that referenced this issue Nov 19, 2024
Bugs: macaroni-os/mark-issues#214
(cherry picked from commit 73e1e797428266fd22b82370bacff799112f2fa3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants