Skip to content

[3.18] Metadata stability tests for modulemd metadata#3006

Merged
dralley merged 2 commits intopulp:3.18from
dralley:3.18
Mar 15, 2023
Merged

[3.18] Metadata stability tests for modulemd metadata#3006
dralley merged 2 commits intopulp:3.18from
dralley:3.18

Conversation

@dralley
Copy link
Contributor

@dralley dralley commented Mar 13, 2023

closes #2242
#2242

(cherry picked from commit e9ddb74)

@dralley
Copy link
Contributor Author

dralley commented Mar 14, 2023

@ianballou @ggainey And now the API differences between 3.18 and 3.19 are apparent

TL;DR

  • where libmodulemd defaulted to False for "static_context" when it's not present, we now currently store None
  • indeed there was definitely an (unintentional) change where we now return rpms: [ ...list... ] for "artifacts" instead of just returning the list
  • profiles and description fields were added, but we knew that already, that's intentional
  • "dependencies" changed in a similar way to "artifacts", now it includes an outer level "requires" and "buildrequires" tag

@ianballou Just to confirm, you would like the behavior in bullet point 2 to remain the same as it is now in 3.19, even though it got changed unintentionally? How about 4, does that impact you at all?

@dralley
Copy link
Contributor Author

dralley commented Mar 14, 2023

E           AssertionError: []                                                   
E           assert [('change', 'static_context', (False, None)), ('change', 'artifacts', (['dwm-0:6.0-1.module_1997+c375c79c.src', 'dwm-0:6.0-1.module_1997+c375c7
9c.x86_64'], {'rpms': ['dwm-0:6.0-1.module_1997+c375c79c.x86_64', 'dwm-0:6.0-1.module_1997+c375c79c.src']})), ('add', ['dependencies', 0], [('requires', {'platfor
m': ['f29']}), ('buildrequires', {'platform': ['f29']})]), ('remove', ['dependencies', 0], [('platform', ['f29'])])] == []                                        E             Left contains 4 more items, first extra item: ('change', 'static_context', (False, None))
E             Full diff:                                                         
E               [
E             -  ,                                                               
E             +  ('change',                                                                                                                                       E             +   'static_context',                                              
E             +   (False,                                                        
E             +    None)),
E             +  ('change',                                                      
E             +   'artifacts',                                                   
E             +   (['dwm-0:6.0-1.module_1997+c375c79c.src',               
E             +     'dwm-0:6.0-1.module_1997+c375c79c.x86_64'],           
E             +    {'rpms': ['dwm-0:6.0-1.module_1997+c375c79c.x86_64',   
E             +              'dwm-0:6.0-1.module_1997+c375c79c.src']})),  
E             +  ('add',                                                         
E             +   ['dependencies',                                               
E             +    0],                                                           
E             +   [('requires',                                                                                                                                   E             +     {'platform': ['f29']}),                                   
E             +    ('buildrequires',                                             
E             +     {'platform': ['f29']})]),
E             +  ('remove',                                                      
E             +   ['dependencies',                                                                                                                                
E             +    0],                                                                                                                                            
E             +   [('platform',                                                                                                                                   
E             +     ['f29'])]),                                                  
E               ]

@ianballou
Copy link
Contributor

@ianballou Just to confirm, you would like the behavior in bullet point 2 to remain the same as it is now in 3.19, even though it got changed unintentionally? How about 4, does that impact you at all?

@dralley yeah now that Katello has the fix let's keep things as-is. I don't remember fixing the dependencies part, but our dependencies don't appear to be broken for packages, so we should be all set.

@dralley
Copy link
Contributor Author

dralley commented Mar 14, 2023

Ok. It definitely shouldn't affect the metadata at all, just if you have any ui elements that query that data from the API

@dralley dralley merged commit 90d6222 into pulp:3.18 Mar 15, 2023
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

Successfully merging this pull request may close these issues.

2 participants