Backport: Allow skipping the redundant Pulp CLI publish after RPM uploads
What does this MR do and why?
Backport of !9951 (merged) and !9972 (merged) to 18-11-stable:
- 55760b4a: add
--no-publishto the RPM upload command whenPULP_CLI_PUBLISHisfalse. The Pulp RPM repositories haveautopublishenabled, so Pulp already publishes the repository inside the upload task. The second publish from thepulpCLI was redundant, and it caused most of the repository lock contention that made the staging upload jobs time out. - 95996dd4: run the RPM upload with
pulp --format none, so the job log does not get the package JSON and stays below the 4 MB limit.
PULP_CLI_PUBLISH=false is set on dev.gitlab.org, so the release pipelines of this stable branch use --no-publish after this backport. The builder image of this branch has pulp-cli 0.35.1, the same version as 19-3-stable, which already has both changes.
The cherry-pick of !9951 (merged) had a conflict in doc/development/ci-variables.md, because this branch still has the PACKAGECLOUD_ENABLED row. The 9 PULP_* rows are the same as on master. The code and the specs are identical to master.
Related to gitlab-com/gl-infra/delivery#22495 (closed)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
- This MR is backporting a bug fix, documentation update, or spec fix, previously merged in the default branch.
- The original MR has been deployed to GitLab.com (not applicable for documentation or spec changes).
- This MR has a severity label assigned (if applicable).
Note to the merge request author and maintainer
If you have questions about the patch release process, please:
- Refer to the patch release runbook for engineers and maintainers for guidance.
- Ask questions on the
#releasesSlack channel (internal only).