Project

Profile

Help

Story #1724

closed

Publish should be a no-op if no units and no settings have changed since the last successful publish

Added by bmbouter over 8 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
2.9.0
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Sprint 2
Quarter:

Description

User case: a user has a script to publish 10 repositories and 1 of them fails. They re-run the script and it doesn't know/track which one failed so it publishes all 10 again. For the original 9 that succeeded Pulp should no-op since no settings and units have been modified since the last successful publish. Even though publishes with no changed data are quick, subsequent publishes will cause files in the repodata to be rewritten and they will change in small ways. Due to checksums used in those filenames the second publish will have a completely different filename. This is undesirable to some users.

Publish should be a no-op if all of the following are true:

  • no units have been added since the last successful publish.
  • no units have been removed since the last successful publish.
  • no distributor has been modified since the last successful publish.

Here is a pulp-smash issue which corresponds with this: https://github.com/PulpQE/pulp-smash/issues/127


Related issues

Blocked by RPM Support - Story #1158: As a user, I can force full/fresh publish of rpms and not do an incremental publishCLOSED - CURRENTRELEASEttereshc

Actions

Also available in: Atom PDF