Comments (21)
@RedSunOverParadise there are some comments in this issue with first steps you can follow, for example:
from mentoring.
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.
if this #129 is closed then why this with different mentor
from mentoring.
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.
Hello, I have basic knowledge of python, git and linux. Is it possible for me to get involved in this project ?
from mentoring.
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.
hi @danigm , I'm definitely ready to learn for this project . So, how do I start ?
from mentoring.
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.
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 openSUSETumbleweed
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.
Hey @danigm , I would love to work on this issue, is there any way I can connect with you regarding this issue.
from mentoring.
Hello @danigm, I'm interested with this project. How to get contact with you? (Email? GitHub?)
from mentoring.
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.
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 openSUSETumbleweed
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.
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.
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.
Hi @danigm, can I contact you to contribute too?
from mentoring.
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.
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.
It says that I don't have module 'rpm'. Could you please help me with this. Thanks.
from mentoring.
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.
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.
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)
- The Dyad Proposal HOT 2
- Home page - refactor accordion to bootstrap specification HOT 1
- Accordion header '+' image missing alt attribute HOT 3
- Update year in footer HOT 1
- HTML language attribute HOT 1
- Stable Version page - Broken same-page link HOT 1
- Contact page - 36 low contrast warnings HOT 1
- Contact page - Skipped heading levels HOT 1
- FAQ - remove unordered list items (styles) HOT 1
- Contact page - Broken same-page link HOT 1
- News page - Contrast errors HOT 1
- Stable version page - code tag contrast error HOT 1
- Stable version page - Link to PDF document HOT 1
- Stable version page - skipped level headings HOT 1
- Development version page - 7 redundant links HOT 1
- Stable version page - 7 redundant links HOT 1
- Patches page - 27 low contrast error warning HOT 1
- Patches page - Skipped heading levels HOT 1
- Patches page - Possible list HOT 1
- Analytics Edge Ecosystem Workloads: A Framework for Using AI and ML in the Finance Vertical HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mentoring.