Giter VIP home page Giter VIP logo

Comments (21)

danigm avatar danigm commented on June 30, 2024 1

@RedSunOverParadise there are some comments in this issue with first steps you can follow, for example:

#189 (comment)

from mentoring.

danigm avatar danigm commented on June 30, 2024 1

Let's close this issue. We've merged now some improvements to the testing framework done during this year summer of code, thanks to @afrid18. I'll create following issues to improve what we've right now, because there's still room for improvement.

from mentoring.

DiviyamPathak avatar DiviyamPathak commented on June 30, 2024

if this #129 is closed then why this with different mentor

from mentoring.

danigm avatar danigm commented on June 30, 2024

if this #129 is closed then why this with different mentor

There are still a lot of tests using binary packages in rpmlint, the idea is to extend the testing framework to remove the need of binaries for tests, just the machinery to mock those binary packages.

from mentoring.

ggold7046 avatar ggold7046 commented on June 30, 2024

Hello, I have basic knowledge of python, git and linux. Is it possible for me to get involved in this project ?

from mentoring.

danigm avatar danigm commented on June 30, 2024

Hello, I have basic knowledge of python, git and linux. Is it possible for me to get involved in this project ?

I can guide and teach the basic about testing, the current test framework and how to improve, so I think that a basic knowledge of python is good enough if you are ready to learn during the first weeks.

from mentoring.

ggold7046 avatar ggold7046 commented on June 30, 2024

hi @danigm , I'm definitely ready to learn for this project . So, how do I start ?

from mentoring.

danigm avatar danigm commented on June 30, 2024

hi @danigm , I'm definitely ready to learn for this project . So, how do I start ?

The first steps could be to get the rpmlint repo, install the required python modules, using your base system or a virtualenv and run the tests with pytest.

You'll need to have rpm installed, so it'll be easier if you have openSUSE Tumbleweed to work on this. It could work installed in your hardware, as a virtual machine or as a docker container.

Once all of that is done, and you're able to run the tests with the latest code from github, we can start to look for a simple issue to solve, to get familiar with the project code.

from mentoring.

ggold7046 avatar ggold7046 commented on June 30, 2024

The first steps could be to get the rpmlint repo, install the required python modules, using your base system or a virtualenv and run the tests with pytest.

Hi @danigm, do I need to clone the repo in my local machine or fork the repo ?

You'll need to have rpm installed, so it'll be easier if you have openSUSE Tumbleweed to work on this. It could work installed in your hardware, as a virtual machine or as a docker container.

I have installed docker and the docker image of tubleweed. I have install all the required python modules too. How my docker image will interact with pytest ? Do I need to install all the requirements inside the docker image and create a container or the pytest will automatically pic all the necessary things ?

from mentoring.

Mr-Sunglasses avatar Mr-Sunglasses commented on June 30, 2024

Hey @danigm , I would love to work on this issue, is there any way I can connect with you regarding this issue.

from mentoring.

AaronTong912 avatar AaronTong912 commented on June 30, 2024

Hello @danigm, I'm interested with this project. How to get contact with you? (Email? GitHub?)

from mentoring.

danigm avatar danigm commented on June 30, 2024

Email is an option, but for a more direct communication we can use https://matrix.to/#/#space:opensuse.org, ping me in the openSUSE Chat channel (@danigm) or send me a direct message to @danigm:gnome.org

Be patient and wait one or two days before reping, I'll try to answer as soon as possible, but it's not always possible answer in the same day.

from mentoring.

danigm avatar danigm commented on June 30, 2024

The first steps could be to get the rpmlint repo, install the required python modules, using your base system or a virtualenv and run the tests with pytest.

Hi @danigm, do I need to clone the repo in my local machine or fork the repo ?

You'll need to have rpm installed, so it'll be easier if you have openSUSE Tumbleweed to work on this. It could work installed in your hardware, as a virtual machine or as a docker container.

I have installed docker and the docker image of tubleweed. I have install all the required python modules too. How my docker image will interact with pytest ? Do I need to install all the requirements inside the docker image and create a container or the pytest will automatically pic all the necessary things ?

You'll need to install all the python requirements, that can be done in the container directly, installing the python310-MODULE, or with a virtualenv.

Once everything is installed you can try to run the tests with:

python3 -m pytest

from mentoring.

gunjitmittal avatar gunjitmittal commented on June 30, 2024

Hi, @danigm I am interested in this idea and would like to work on it. As of now, I have created a dock container, installed rpm and got python3 -m pytest working. I am new to tests but am curious to learn. Could you point me to some learning resources.

from mentoring.

danigm avatar danigm commented on June 30, 2024

Hi, @danigm I am interested in this idea and would like to work on it. As of now, I have created a dock container, installed rpm and got python3 -m pytest working. I am new to tests but am curious to learn. Could you point me to some learning resources.

On the python side, you can start to look at the pytest framework, because the project consists in improving the tests for rpmlint mocking the .rpm files.

Take a look to the current rpmlint project tests, there's a lot of tests that uses binary .rpm files for testing and we want to provide a way to be able to create tests similar to that but without the need of a real binary file, using a fixture or a mock that emulates the behavior.

from mentoring.

fabiobarkoski avatar fabiobarkoski commented on June 30, 2024

Hi @danigm, can I contact you to contribute too?

from mentoring.

danigm avatar danigm commented on June 30, 2024

Hi @danigm, can I contact you to contribute too?

Yes, sure, the communication channels information is there, so feel free to ask me anything if you need help

from mentoring.

afrid18 avatar afrid18 commented on June 30, 2024

Hi @danigm, I was trying to install rpm-python binding, but I couldn't. From official docs of rpm, however the python binding of RPM is unavailable.
http://www.ukuug.org/events/linux2004/programme/paper-PNasrat-1/rpm-python-slides/frames.html.

I am using MacOS (ventura 13.2) with Apple Silicon (M1). And was able to install all the remaining dependencies, libraries and packages including rpm expect for rpm-python binding.

Screenshot 2023-03-05 at 11 03 04 PM

Screenshot 2023-03-05 at 11 02 45 PM

It says that I don't have module 'rpm'. Could you please help me with this. Thanks.

from mentoring.

danigm avatar danigm commented on June 30, 2024

I am using MacOS (ventura 13.2) with Apple Silicon (M1). And was able to install all the remaining dependencies, libraries and packages including rpm expect for rpm-python binding.

I don't think that this could work on MacOS, my recomendation is to use a virtual machine or a docker container with openSUSE Tumbleweed or another rpm based distribution, and it will be easier. The rpm module can be installed using virtualenv but the bindings are not there, from the pypi module doc:

RPM Python bindings are tied to system RPM installation and are not available as a Python package (on PyPI or elsewhere). This shim module makes it possible to import and use the bindings in a virtualenv.

from mentoring.

NeerajGartia21 avatar NeerajGartia21 commented on June 30, 2024

Hello @danigm .
I want to work on this issue.
I have prior experience in testing in python(using pytest).
Can you please guide me for the same?

from mentoring.

RedSunOverParadise avatar RedSunOverParadise commented on June 30, 2024

Hi @danigm.
I've come here from the google summer of code,
and I'm very interested in contributing to this project as a student!
I have prior experience with python as a student in computer science, but nothing beyond assigned work.
I've got a few years of linux experience under my belt and wanted to try my hand at contributing 😄
Any guidance would be appreciated, if I'm not too late to the party 😅
Kind regards.

from mentoring.

Related Issues (20)

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.