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

fedora-ostree-pruner: drop hardcoding of test mode; limit to compose repo #163

Merged
merged 2 commits into from
Dec 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 5 additions & 8 deletions fedora-ostree-pruner/fedora-ostree-pruner
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ FEDORA_EOL_LIST = [27, 28, 29, 30, 31, 32, 33, 34]

ATOMIC_HOST_ARCHES = ['x86_64', 'aarch64', 'ppc64le']
SILVERBLUE_ARCHES = ['x86_64', 'aarch64', 'ppc64le'] # Applies to Kinoite
FEDORA_COREOS_ARCHES = ['x86_64', 'aarch64']
FEDORA_COREOS_ARCHES = ['x86_64', 'aarch64', 'ppc64le', 's390x']

# https://github.com/coreos/fedora-coreos-tracker/blob/main/stream-tooling.md#introduction
FEDORA_COREOS_PRODUCTION_STREAMS = ['next', 'testing', 'stable']
Expand Down Expand Up @@ -237,11 +237,6 @@ def main():
help="Loop forever, run once a week.", action='store_true')
args = parser.parse_args()

# set args.test = True for now. Once we have proved
# everything out in prod and the logs look good we'll
# delete this code.
args.test = True

# on startup let's print out the config that was generated
logger.info('The configured policy is: \n%s' %
pprint.pformat(PROD_REF_POLICIES, indent=8))
Expand All @@ -255,7 +250,8 @@ def main():

# Prune the compose and the prod repo based on policy
prune_compose_repo(args.test)
prune_prod_repo(args.test)
# wait to prune the prod repo til after the 2022 holidays
#prune_prod_repo(args.test)
dustymabe marked this conversation as resolved.
Show resolved Hide resolved

# If we were asked to run in a loop, then run once a week on
# Saturday.
Expand All @@ -267,7 +263,8 @@ def main():
day = days[datetime.date.today().weekday()]
if day == 'Saturday':
prune_compose_repo(args.test)
prune_prod_repo(args.test)
# wait to prune the prod repo til after the 2022 holidays
#prune_prod_repo(args.test)
else:
logger.info(f"Today is {day}. Sleeping...")

Expand Down