GithubHelp home page GithubHelp logo

epel's Introduction

BeakerLib is a shell-level integration testing library, providing convenience functions which simplify writing, running and analysis of integration and blackbox tests.

Installation

To install the library to the root directory, use:

$ make
$ make install

If you need to install to a different directory, use

$ make
$ make DD=/path/to/directory install

Running against non-installed tree (except for the in-tree testsuite) is not supported.

Links

Docs: https://beakerlib.readthedocs.io

epel's People

Watchers

 avatar  avatar  avatar  avatar  avatar

epel's Issues

epelEnableMainRepo still does not work

on RHEL9:

:: [ 07:39:50 ] :: [  BEGIN   ] :: Running 'epelEnableMainRepo'
:: [ 07:39:50 ] :: [   LOG    ] :: enabling epel repo
:: [ 07:39:50 ] :: [   LOG    ] :: enabling epel repos
Error: No matching repo to modify: epel.
:: [ 07:39:50 ] :: [   FAIL   ] :: Command 'epelEnableMainRepo' (Expected 0, got 1)

on RHEL8 and everywhere else I am getting the following failure without much explanation

:: [ 07:39:41 ] :: [   PASS   ] :: Command 'rm -f "/tmp/epel_release_dePx6dHS.rpm"' (Expected 0, got 0)
:: [ 07:39:41 ] :: [  ERROR   ] :: could not resolve yum repo variables
:: [ 07:39:41 ] :: [   LOG    ] :: disabling epel repos
:: [ 07:39:41 ] :: [   LOG    ] :: setting skip if unavailable
:: [ 07:39:41 ] :: [   FAIL   ] :: Command 'rlImport --all' (Expected 0, got 1)

epel's runtest.sh segfaults

I'm reproducing it on RHEL 8 and 7.
Packages:

  • distribution-distribution-Library-epel-1.0-68.noarch
  • distribution-distribution-Library-epel-internal-1.0-2.noarch
  • distribution-distribution-Library-LibrariesWrapper-1.0-4.noarch
  • beakerlib-1.25-1.el8bkr.noarch or beakerlib-1.20-1.el7bkr.noarch

How to reproduce:

  1. Have a machine with beakerlib present (and without epel-release.rpm)
  2. Install the RPM of distribution-distribution-Library-epel and its dependencies
  3. cd /mnt/tests/distribution/Library/epel && ./runtest.sh

This is what I get on RHEL8:

[root@kvm-01-guest18 epel]# ./runtest.sh 

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Setup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 14:29:41 ] :: [  BEGIN   ] :: Running 'rlImport 'distribution/epel''
:: [ 14:29:41 ] :: [   INFO   ] :: rlImport: Found 'distribution/epel', version '2, 1.0-68' in /mnt/tests
:: [ 14:29:41 ] :: [   INFO   ] :: rlImport: Will try to import distribution/epel from /mnt/tests/distribution/Library/epel/lib.sh
:: [ 14:29:41 ] :: [   INFO   ] :: found dependencies: 'distribution/LibrariesWrapper distribution/epel-internal '
:: [ 14:29:41 ] :: [   INFO   ] :: rlImport: Found 'distribution/LibrariesWrapper', version '5, 1.0-4' in /mnt/tests
:: [ 14:29:41 ] :: [   INFO   ] :: rlImport: Will try to import distribution/LibrariesWrapper from /mnt/tests/distribution/Library/LibrariesWrapper/lib.sh
:: [ 14:29:41 ] :: [   INFO   ] :: found dependencies: ''
:: [ 14:29:41 ] :: [   INFO   ] :: rlImport: Found 'distribution/epel-internal', version '1, 1.0-2' in /mnt/tests
:: [ 14:29:41 ] :: [   INFO   ] :: rlImport: Will try to import distribution/epel-internal from /mnt/tests/distribution/Library/epel-internal/lib.sh
:: [ 14:29:41 ] :: [   INFO   ] :: found dependencies: ''
done.
done.
:: [ 14:29:41 ] :: [  BEGIN   ] :: Running 'rlImport distribution/LibrariesWrapper'
:: [ 14:29:41 ] :: [   PASS   ] :: Command 'rlImport distribution/LibrariesWrapper' (Expected 0, got 0)
:: [ 14:29:41 ] :: [   INFO   ] :: LibrariesWrapperImport(): library not fetched yet
:: [ 14:29:41 ] :: [  BEGIN   ] :: Running 'git init'
Initialized empty Git repository in /mnt/tests/distribution/Library/epel/.git/
:: [ 14:29:41 ] :: [   PASS   ] :: Command 'git init' (Expected 0, got 0)
:: [ 14:29:41 ] :: [  BEGIN   ] :: Running 'git remote add origin "https://github.com/beakerlib/epel.git"'
:: [ 14:29:41 ] :: [   PASS   ] :: Command 'git remote add origin "https://github.com/beakerlib/epel.git"' (Expected 0, got 0)
:: [ 14:29:41 ] :: [  BEGIN   ] :: Running 'git fetch'
remote: Enumerating objects: 38, done.
remote: Counting objects: 100% (38/38), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 38 (delta 14), reused 28 (delta 9), pack-reused 0
Unpacking objects: 100% (38/38), 9.09 KiB | 664.00 KiB/s, done.
From https://github.com/beakerlib/epel
 * [new branch]      master     -> origin/master
:: [ 14:29:41 ] :: [   PASS   ] :: Command 'git fetch' (Expected 0, got 0)
:: [ 14:29:41 ] :: [  BEGIN   ] :: Running 'git remote set-head origin --auto'
origin/HEAD set to master
:: [ 14:29:41 ] :: [   PASS   ] :: Command 'git remote set-head origin --auto' (Expected 0, got 0)
:: [ 14:29:41 ] :: [  BEGIN   ] :: Running 'git checkout "origin/HEAD" -- "epel"'
:: [ 14:29:41 ] :: [   PASS   ] :: Command 'git checkout "origin/HEAD" -- "epel"' (Expected 0-255, got 0)
fatal: ambiguous argument '': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
:: [ 14:29:41 ] :: [   INFO   ] :: found epel v33 from https://github.com/beakerlib/epel.git?#epel in /mnt/tests/distribution/Library/epel/epel
loading library distribution/epel v33... done.
:: [ 14:29:42 ] :: [   LOG    ] :: Determined distro is 'rhel'
:: [ 14:29:42 ] :: [   LOG    ] :: Determined rhel release is '8'
:: [ 14:29:42 ] :: [   LOG    ] :: found candidate source of 'epel-release-latest-8.noarch.rpm', using url https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
:: [ 14:29:42 ] :: [   LOG    ] :: install epel repo
:: [ 14:29:42 ] :: [   LOG    ] :: curl --fail --location --retry-connrefused --retry-delay 3 --retry-max-time 3600 --retry 3 --connect-timeout 20 --max-time 1800 --insecure -o "/tmp/epel_release_bvxy1Qog.rpm" "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22576  100 22576    0     0  83000      0 --:--:-- --:--:-- --:--:-- 83000
:: [ 14:29:42 ] :: [  BEGIN   ] :: Running 'rpm -i "/tmp/epel_release_bvxy1Qog.rpm"'
:: [ 14:29:42 ] :: [   PASS   ] :: Command 'rpm -i "/tmp/epel_release_bvxy1Qog.rpm"' (Expected 0, got 0)
:: [ 14:29:43 ] :: [  BEGIN   ] :: Running 'rm -f "/tmp/epel_release_bvxy1Qog.rpm"'
:: [ 14:29:43 ] :: [   PASS   ] :: Command 'rm -f "/tmp/epel_release_bvxy1Qog.rpm"' (Expected 0, got 0)
:: [ 14:29:43 ] :: [   LOG    ] :: epel repo is accessible
Segmentation fault (core dumped)

If you want to repeat step 3 as if from scratch, do a clean up first:
rpm -e epel-release; rm -rf /etc/yum.repos.d/epel* /mnt/tests/distribution/Library/epel/{.git,epel}

I've investigated the problem a bit I'm lost in all those levels of indirections and now I'm running out of time for today...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.