Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…sirmordred'

Merges #531
Closes #531
  • Loading branch information
zhquan committed Mar 15, 2022
2 parents 1a78bce + f0b5b0b commit 5e2dbd8
Show file tree
Hide file tree
Showing 18 changed files with 1,738 additions and 68 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Python ${{ matrix.python-version }} for ES ${{ matrix.elasticsearch-version }}
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.7, 3.8]
elasticsearch-version: [6.8.6]

steps:
Expand All @@ -44,9 +44,10 @@ jobs:

- name: Install dependencies
run: |
pip install --upgrade pip==18.1
pip install --upgrade setuptools==49.6.0
pip install --upgrade pip
pip install --upgrade setuptools
pip install --upgrade wheel
pip install "numpy<=1.18.3"
pip install -r "requirements.txt"
pip install -r "requirements_tests.txt"
pip install flake8 coveralls
Expand Down
6 changes: 3 additions & 3 deletions Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ The final results should be something similar to the image below.

Now that you have the ElasticSearch, Kibiter and MariaDB running on your system and the project configured in the PyCharm, we can execute micro-mordred/sirmordred.

To execute micro-mordred, define a [setup.cfg](https://github.com/chaoss/grimoirelab-sirmordred/blob/master/utils/setup.cfg) and [projects.json](https://github.com/chaoss/grimoirelab-sirmordred/blob/master/utils/projects.json), and
To execute micro-mordred, define a [setup.cfg](https://github.com/chaoss/grimoirelab-sirmordred/blob/master/sirmordred/utils/setup.cfg) and [projects.json](https://github.com/chaoss/grimoirelab-sirmordred/blob/master/sirmordred/utils/projects.json), and
run the following commands, which will collect and enrich the data coming from the git sections and upload the corresponding panels to Kibiter:
```
micro.py --raw --enrich --cfg ./setup.cfg --backends git cocom
Expand Down Expand Up @@ -286,7 +286,7 @@ Following is a list of common problems encountered while setting up GrimoireLab
#### Empty Index [&uarr;](#troubleshooting-)

* Indications and Diagnosis:
Check for the following error after executing [Micro Mordred](https://github.com/chaoss/grimoirelab-sirmordred/tree/master/utils/micro.py)
Check for the following error after executing [Micro Mordred](https://github.com/chaoss/grimoirelab-sirmordred/tree/master/sirmordred/utils/micro.py)
using ```micro.py --raw --enrich --panels --cfg ./setup.cfg --backends git```(Here, using git as backend)
```
[git] Problem executing study enrich_areas_of_code:git, RequestError(400, 'search_phase_execution_exception', 'No mapping
Expand All @@ -299,7 +299,7 @@ Following is a list of common problems encountered while setting up GrimoireLab

There are 2 methods to solve this problem:

Method 1: Disable the param [latest-items](https://github.com/chaoss/grimoirelab-sirmordred/blob/master/utils/setup.cfg#L78) by setting it to false.
Method 1: Disable the param [latest-items](https://github.com/chaoss/grimoirelab-sirmordred/blob/master/sirmordred/utils/setup.cfg#L78) by setting it to false.

Method 2: Delete the local clone of the repo (which is stored in ```~/.perceval/repositories```).

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ studies = [enrich_demography:weblate] (optional)

Micro Mordred is a simplified version of Mordred which omits the use of its scheduler. Thus, Micro Mordred allows running single Mordred tasks (e.g., raw collection, enrichment) per execution.

Micro Mordred is located in the [/utils](https://github.com/chaoss/grimoirelab-sirmordred/tree/master/utils/micro.py) folder of this same repository. It can be executed via command line, its parameters are summarized below:
Micro Mordred is located in the [sirmordred/utils](https://github.com/chaoss/grimoirelab-sirmordred/tree/master/sirmordred/utils/micro.py) folder of this same repository. It can be executed via command line, its parameters are summarized below:
```
--debug: execute Micro Mordred in debug mode
Expand All @@ -1455,7 +1455,7 @@ Micro Mordred is located in the [/utils](https://github.com/chaoss/grimoirelab-s

Examples of possible executions are shown below:
```
cd .../grimoirelab-sirmordred/utils/
cd .../grimoirelab-sirmordred/sirmordred/utils/
micro.py --raw --enrich --cfg ./setup.cfg --backends git # execute the Raw and Enrich tasks for the Git cfg section
micro.py --panels # execute the Panels task to load the Sigils panels to Kibiter
micro.py --raw --enrich --debug --cfg ./setup.cfg --backends groupsio --logs-dir logs # execute the raw and enriched tasks for the groupsio cfg section with debug mode on and logs being saved in the folder logs in the same directory as micro.py
Expand Down
Loading

0 comments on commit 5e2dbd8

Please sign in to comment.