From e0c48baaa21fd5ee011bfdad2866136c50864803 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 5 Jul 2022 15:51:40 -0500 Subject: [PATCH] Remove non-functional cache for build dependencies The cache for build dependencies in the CI was originally added in 66a6e594ae0e89e0d0411f78d2ac7c716f7cc9e7 to reduce build time but it never worked properly so it has been removed. --- .github/workflows/acme-tests.yml | 10 ---------- .github/workflows/build.yml | 10 ---------- .github/workflows/ca-tests.yml | 10 ---------- .github/workflows/ca-tests2.yml | 10 ---------- .github/workflows/ipa-tests.yml | 10 ---------- .github/workflows/kra-tests.yml | 10 ---------- .github/workflows/ocsp-tests.yml | 10 ---------- .github/workflows/python-tests.yml | 10 ---------- .github/workflows/qe-tests.yml | 10 ---------- .github/workflows/server-tests.yml | 10 ---------- .github/workflows/sonarcloud-pull.yml | 10 ---------- .github/workflows/tks-tests.yml | 10 ---------- .github/workflows/tools-tests.yml | 10 ---------- .github/workflows/tps-tests.yml | 10 ---------- 14 files changed, 140 deletions(-) diff --git a/.github/workflows/acme-tests.yml b/.github/workflows/acme-tests.yml index ad830262b42..b4d77b46791 100644 --- a/.github/workflows/acme-tests.yml +++ b/.github/workflows/acme-tests.yml @@ -35,21 +35,11 @@ jobs: - name: Clone repository uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-acme-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-pkgs=base,server,ca,acme --with-timestamp --work-dir=build rpm diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 185f7ed1bcf..18315ea1d2e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,21 +53,11 @@ jobs: - name: Clone repository uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-ca-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-timestamp --work-dir=build rpm diff --git a/.github/workflows/ca-tests.yml b/.github/workflows/ca-tests.yml index 273ad66229b..eea3be3316e 100644 --- a/.github/workflows/ca-tests.yml +++ b/.github/workflows/ca-tests.yml @@ -35,21 +35,11 @@ jobs: - name: Clone repository uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-ca-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-pkgs=base,server,ca,tests --with-timestamp --work-dir=build rpm diff --git a/.github/workflows/ca-tests2.yml b/.github/workflows/ca-tests2.yml index 1525cd8a87b..767cba21118 100644 --- a/.github/workflows/ca-tests2.yml +++ b/.github/workflows/ca-tests2.yml @@ -35,21 +35,11 @@ jobs: - name: Clone repository uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-ca-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-pkgs=base,server,ca,tests --with-timestamp --work-dir=build rpm diff --git a/.github/workflows/ipa-tests.yml b/.github/workflows/ipa-tests.yml index 7a3adb09017..e012d06fc0a 100644 --- a/.github/workflows/ipa-tests.yml +++ b/.github/workflows/ipa-tests.yml @@ -35,21 +35,11 @@ jobs: - name: Clone the repository uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-ipa-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-pkgs=base,server,ca,kra,acme --with-timestamp --work-dir=build rpm diff --git a/.github/workflows/kra-tests.yml b/.github/workflows/kra-tests.yml index 31275450843..fc28f79149f 100644 --- a/.github/workflows/kra-tests.yml +++ b/.github/workflows/kra-tests.yml @@ -35,21 +35,11 @@ jobs: - name: Clone repository uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-kra-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-pkgs=base,server,ca,kra,tests --with-timestamp --work-dir=build rpm diff --git a/.github/workflows/ocsp-tests.yml b/.github/workflows/ocsp-tests.yml index e8b30076347..4456d0572dd 100644 --- a/.github/workflows/ocsp-tests.yml +++ b/.github/workflows/ocsp-tests.yml @@ -35,21 +35,11 @@ jobs: - name: Clone repository uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-ocsp-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-pkgs=base,server,ca,ocsp,tests --with-timestamp --work-dir=build rpm diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index ba8d3d73d6c..0636bd21275 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -35,21 +35,11 @@ jobs: - name: Clone repository uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-python-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-pkgs=base,server,tests --with-timestamp --work-dir=build rpm diff --git a/.github/workflows/qe-tests.yml b/.github/workflows/qe-tests.yml index 212918b9749..1ad801b09e8 100644 --- a/.github/workflows/qe-tests.yml +++ b/.github/workflows/qe-tests.yml @@ -35,21 +35,11 @@ jobs: - name: Clone repository uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-qe-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-timestamp --work-dir=build rpm diff --git a/.github/workflows/server-tests.yml b/.github/workflows/server-tests.yml index 9ee7eac27dc..66398b52762 100644 --- a/.github/workflows/server-tests.yml +++ b/.github/workflows/server-tests.yml @@ -35,21 +35,11 @@ jobs: - name: Clone repository uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-server-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-pkgs=base,server --with-timestamp --work-dir=build rpm diff --git a/.github/workflows/sonarcloud-pull.yml b/.github/workflows/sonarcloud-pull.yml index 1fe7d536879..75a2c64aa9a 100644 --- a/.github/workflows/sonarcloud-pull.yml +++ b/.github/workflows/sonarcloud-pull.yml @@ -90,21 +90,11 @@ jobs: ref: ${{ github.event.workflow_run.head_branch }} fetch-depth: 0 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-sonar-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-timestamp --work-dir=build rpm diff --git a/.github/workflows/tks-tests.yml b/.github/workflows/tks-tests.yml index 572e49bef3f..b2513e7c2f0 100644 --- a/.github/workflows/tks-tests.yml +++ b/.github/workflows/tks-tests.yml @@ -35,21 +35,11 @@ jobs: - name: Clone repository uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-tks-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-pkgs=base,server,ca,tks --with-timestamp --work-dir=build rpm diff --git a/.github/workflows/tools-tests.yml b/.github/workflows/tools-tests.yml index 0d6c2b19a80..8552575b2d3 100644 --- a/.github/workflows/tools-tests.yml +++ b/.github/workflows/tools-tests.yml @@ -35,21 +35,11 @@ jobs: - name: Clone repository uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-tools-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-pkgs=base,server,tests --with-timestamp --work-dir=build rpm diff --git a/.github/workflows/tps-tests.yml b/.github/workflows/tps-tests.yml index 462af3ab3eb..226f051ee9d 100644 --- a/.github/workflows/tps-tests.yml +++ b/.github/workflows/tps-tests.yml @@ -35,21 +35,11 @@ jobs: - name: Clone repository uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: /var/cache/dnf - key: fedora:${{ matrix.os }}-tps-${{ hashFiles('pki.spec') }} - - name: Install dependencies run: | - # keep packages after installation - echo "keepcache=True" >> /etc/dnf/dnf.conf dnf install -y dnf-plugins-core rpm-build moby-engine dnf copr enable -y ${{ needs.init.outputs.repo }} dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck - # don't cache COPR packages - rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'` - name: Build PKI packages run: ./build.sh --with-pkgs=base,server,ca,kra,tks,tps --with-timestamp --work-dir=build rpm