Comments (5)
Thanks a lot for your interest, @filmaj
I'm in the process of integrating this project in the set of tests that build_grimoirelab can run automatically, when building packages. Recently, chaoss/grimoirelab#124 was merged, which provides the basis for this testing. I already integrated sortinghat tests (see chaoss/grimoirelab-sortinghat#154), and the next one is sirmorded. So, we're almost there ;-)
Meanwhile, maybe you can have a look at the travis config file, which is what Travis uses to run the tests. In it, you can see how you need Elasticsearch running for some tests, and also some packages in specific versions. Copying from that file:
- pip install pandas==0.18.1
- pip install httpretty==0.8.6
- pip install -r "requirements.txt"
- pip install flake8
- pip install coveralls
So, not all dependencies are in requirements.txt
...
Could you try starting from here?
from grimoirelab-sirmordred.
I would love to contribute to this project but without being able to run the tests I do not have confidence in sending pull requests
from grimoirelab-sirmordred.
@jgbarah if you could help me work through this issue, I will involve myself in this project more and file more pull requests and try to help out with issues filed.
from grimoirelab-sirmordred.
That's great! I got pretty far to running the tests, but it looks like a dependency on sortinghat deep down the chain is still causing an error, 7 failures that all are the same issue:
======================================================================
ERROR: test_task_projects (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_task_projects
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/maj/src/grimoirelab-sirmordred/tests/test_task_projects.py", line 35, in <module>
from mordred.config import Config
File "../mordred/config.py", line 29, in <module>
from grimoire_elk.utils import get_connectors
File "/Users/maj/.virtualenvs/grimoirelab/lib/python3.6/site-packages/grimoire_elk/utils.py", line 77, in <module>
from .enriched.git import GitEnrich
File "/Users/maj/.virtualenvs/grimoirelab/lib/python3.6/site-packages/grimoire_elk/enriched/git.py", line 37, in <module>
from .study_ceres_aoc import areas_of_code, ESPandasConnector
File "/Users/maj/.virtualenvs/grimoirelab/lib/python3.6/site-packages/grimoire_elk/enriched/study_ceres_aoc.py", line 28, in <module>
from cereslib.events.events import Git, Events
File "/Users/maj/.virtualenvs/grimoirelab/lib/python3.6/site-packages/cereslib/events/events.py", line 27, in <module>
from grimoire_elk.enriched.sortinghat_gelk import SortingHat
File "/Users/maj/.virtualenvs/grimoirelab/lib/python3.6/site-packages/grimoire_elk/enriched/sortinghat_gelk.py", line 32, in <module>
from sortinghat.exceptions import AlreadyExistsError, WrappedValueError
ImportError: cannot import name 'WrappedValueError'
I took a look at the sortinghat code and it looks like that exception class was recently removed. So, no wonder InvalidValueError
. The offender seems to be grimoirelab-elk, which is still using the old name for the exception. I'll send a PR there. When I fixed that in my local virtualenv, the tests ran! Yay!
I'll send a PR here for updated README instructions.
from grimoirelab-sirmordred.
The PR at chaoss/grimoirelab-elk#382 that is currently open will fix the above test failures in Mordred, FYI.
from grimoirelab-sirmordred.
Related Issues (20)
- [Anonymize Question] Is there a way to anonymize url in Traceback? HOT 1
- Github Issue and Pull requests data not bieng populated HOT 4
- importing/indexing to .kibana/doc/metadashboard gives 400 response HOT 2
- Connections to the Sorting Hat database are not closed HOT 1
- Cannot index gitlab issues from gitlab-com project HOT 5
- Getting all projects from enterprise Gitlab HOT 5
- Vulnerability CVE-2021-45960 - CVE-2019-19814 HOT 1
- [utils] Can't find `menu.yaml` and `aliases.json` in `/sirmordred` HOT 2
- [doc] Error feeding raw from cocom while running `micro.py` HOT 6
- custom port mariadb for grimorelabs HOT 1
- Only run one data source when the database is not created by Mordred HOT 7
- [requirements.txt] No matching distribution found for grimoireelk HOT 2
- [utils] Turn on the help arg option in `micro.py` HOT 3
- SirMordred did not install with Python 3.9 (but did with Python 3.8) HOT 5
- sirmordred/micro.py execution halts with connection issue HOT 5
- Is it possible to add more than a label to the repositories HOT 1
- How to skip lfs object when clonging project HOT 5
- Add prefix to aliases entries
- Jira integration appears to be non-functional HOT 2
- "Limit of total fields [1000] in index [github2-pull_raw] has been exceeded" error for "github2:pull"
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 grimoirelab-sirmordred.