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

[INFRA-1363][WIP] Rpm repository can generate metadata from staging and production packages directory #190

Closed
wants to merge 6 commits into from

Conversation

olblak
Copy link
Member

@olblak olblak commented Jul 15, 2020

This pull request is an attempt to build rpm package website from both production and staging repositories in order to have stage website that we could promote later one.

Package promotion is done from this PR

In order to test this PR, you can use the docker-compose environment

For some reason that I still ignore, when the same package is located in the two directories (staging and production), the same package appears multiple times in the repository as displayed in the following snippet.

**root@067f9791f451:/tmp# gunzip  -c /tmp/test_rpm/repodata/af5f1114bd67785bd39b03edea0461423c022ac42aaa8367d1ec2ff70082f8ae-filelists.xml.gz
<?xml version="1.0" encoding="UTF-8"?>
<filelists xmlns="http://linux.duke.edu/metadata/filelists" packages="3">
<package pkgid="7c3e35d1e33ebaeb27039352d1052ad5422840b608ee81572ee800a27fbf1e71" name="jenkinstest" arch="noarch">
    <version epoch="0" ver="2.199" rel="1.1"/>

    <file>/etc/init.d/jenkinstest</file>
    <file>/etc/logrotate.d/jenkinstest</file>
    <file>/etc/sysconfig/jenkinstest</file>
    <file>/usr/lib/jenkinstest/jenkinstest.war</file>
    <file>/usr/sbin/rcjenkinstest</file>
    <file type="dir">/usr/lib/jenkinstest</file>
    <file type="dir">/var/cache/jenkinstest</file>
    <file type="dir">/var/lib/jenkinstest</file>
    <file type="dir">/var/log/jenkinstest</file>
</package>

<package pkgid="e48981c5575f8aa4f44fc8d8aa02e8abba62ab43082de235a28b588b0479f244" name="hudson" arch="noarch">
    <version epoch="0" ver="1.331" rel="1.1"/>

    <file>/etc/init.d/hudson</file>
    <file>/etc/logrotate.d/hudson</file>
    <file>/etc/sysconfig/hudson</file>
    <file>/usr/lib/hudson/hudson.war</file>
    <file>/usr/sbin/rchudson</file>
    <file type="dir">/usr/lib/hudson</file>
    <file type="dir">/var/lib/hudson</file>
    <file type="dir">/var/log/hudson</file>
</package>

<package pkgid="7c3e35d1e33ebaeb27039352d1052ad5422840b608ee81572ee800a27fbf1e71" name="jenkinstest" arch="noarch">
    <version epoch="0" ver="2.199" rel="1.1"/>

    <file>/etc/init.d/jenkinstest</file>
    <file>/etc/logrotate.d/jenkinstest</file>
    <file>/etc/sysconfig/jenkinstest</file>
    <file>/usr/lib/jenkinstest/jenkinstest.war</file>
    <file>/usr/sbin/rcjenkinstest</file>
    <file type="dir">/usr/lib/jenkinstest</file>
    <file type="dir">/var/cache/jenkinstest</file>
    <file type="dir">/var/lib/jenkinstest</file>
    <file type="dir">/var/log/jenkinstest</file>
</package>
**

@olblak
Copy link
Member Author

olblak commented Jul 16, 2020

It doesn't seem to be possible to cleanup duplicate package entry other than being sure that no packages could be present in both directories at the same time

@oleg-nenashev oleg-nenashev self-requested a review July 16, 2020 14:09
@timja timja changed the base branch from INFRA-910-core-release-automation to master November 17, 2020 10:17
@MarkEWaite MarkEWaite marked this pull request as draft April 5, 2023 19:35
@MarkEWaite
Copy link
Contributor

Closing pull request due to inactivity and other tasks being higher priority.

@MarkEWaite MarkEWaite closed this Apr 5, 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