Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Remove hardcoded permits (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegreyd committed Nov 14, 2022
1 parent 1821850 commit 727a3fa
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions doozerlib/assembly.py
Expand Up @@ -285,28 +285,12 @@ def assembly_permits(releases_config: Model, assembly: typing.Optional[str]) ->
"""
:param releases_config: The content of releases.yml in Model form.
:param assembly: The name of the assembly to assess
Returns the a computed permits config model for a given assembly. If no
Returns computed permits config model for a given assembly. If no
permits are defined ListModel([]) is returned.
"""

defined_permits = _assembly_config_struct(releases_config, assembly, 'permits', [])

if not defined_permits and (assembly == 'stream' or not assembly): # If assembly is None, this a group without assemblies enabled
# TODO: Address this formally with https://issues.redhat.com/browse/ART-3162 .
# In the short term, we need to allow certain inconsistencies for stream.
# We don't want common pre-GA issues to stop all nightlies.
default_stream_permits = [
{
'code': 'OUTDATED_RPMS_IN_STREAM_BUILD',
'component': '*'
},
{
'code': 'CONFLICTING_GROUP_RPM_INSTALLED',
'component': 'rhcos'
}
]
return ListModel(list_to_model=default_stream_permits)

# Do some basic validation here to fail fast
if assembly_type(releases_config, assembly) == AssemblyTypes.STANDARD:
if defined_permits:
Expand Down

0 comments on commit 727a3fa

Please sign in to comment.