https://github.com/os-autoinst/openqa_review

A review helper script for openQA

https://github.com/os-autoinst/openqa_review

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.3%) to scientific vocabulary

Keywords

hacktoberfest openqa openqa-review python webscraping
Last synced: 6 months ago · JSON representation

Repository

A review helper script for openQA

Basic Info
Statistics
  • Stars: 8
  • Watchers: 10
  • Forks: 29
  • Open Issues: 23
  • Releases: 0
Topics
hacktoberfest openqa openqa-review python webscraping
Created about 10 years ago · Last pushed 8 months ago
Metadata Files
Readme License

README.md

test CII Best Practices

A review helper script for openQA.

For more details read the documentation within openqa_review/openqa_review.py.

Usage

  • Install requirements and package, using an isolated Python environment such as VirtualEnv.

pip3 install -r requirements.txt pip3 install .

To call the script from the git clone, you have to use this form:

python3 -m openqa_review.openqa_review

or if you are using openSUSE distribution, it is recommended to use zypper, e.g.:

zypper in python-openqa_review

  • Call openqa-review from PATH, e.g. with --help

openqa-review --help

If openqa-review has to access non public servers which make use of custom Certificate Authorities (CA's), it can happen that it fails because it can not verify the TLS certificate. By setting the environment variable REQUESTS_CA_BUNDLE, one can supply a custom ca-certificate store to openqa-review e.g.:

REQUESTS_CA_BUNDLE="/my/custom/ca-bundle.pem" openqa-review

If that doesn't work, you can try the following setting: CURL_CA_BUNDLE=""

Communication

If you have questions, visit #opensuse-factory on libera.chat.

Contribute

This project lives in https://github.com/os-autoinst/openqa_review

Feel free to add issues in github or send pull requests.

TODOs and ideas are tracked in the file TODO as well as github issues.

How to run tests

Tests are implemented on top of pytest and tox. Tox can be invoked with no arguments to test all environments:

tox

It is also possible to run only a special environment, e.g. tox -e flake8 for the linter, tox -e py38 for running tests at the specified Python version (the interpreter needs to be installed for this version) or tox -e cov for the coverage report (see details below). These environments are configured in tox.ini.

To ensure files are passing the style check, invoke black . to apply correct formatting.

If you are running into issues installing dependencies (resulting in an error like "Could not build wheels…"), try to remove the temporary .tox directory (or the subfolder for the problematic environment within).

Run tests via pytest

You can also run the tests via pytest with one of the following commands:

``` pytest

or

python3 -m pytest

or, after running tox at least once:

./.tox/cov/bin/py.test ```

To test only certain functions, there are several possibilities: pytest tests/test_openqa_review.py::test_reminder_comments_on_referenced_bugs_are_posted pytest -k test_reminder_comments_on_referenced_bugs_are_posted

Generate coverage report

Run the following commands to generate a coverage report under coverage_html/:

tox -e cov ./.tox/cov/bin/coverage html

Rules for commits

  • Every commit is checked by a GitHub Workflow as soon as you create a pull request but you should run tox locally,

  • Make sure to keep the 100% test coverage, e.g. by adding test reference data for new scenarios. TDD is advised :-)

  • For git commit messages use the rules stated on How to Write a Git Commit Message as a reference

If this is too much hassle for you feel free to provide incomplete pull requests for consideration or create an issue with a code change proposal.

License

This project is licensed under the MIT license, see LICENSE file for details. Exceptions are the files under dashboard_files/ which are GPL-2 licensed coming from https://github.com/os-autoinst/openQA/.

Owner

  • Name: openQA Development
  • Login: os-autoinst
  • Kind: organization

GitHub Events

Total
  • Issue comment event: 3
  • Push event: 1
  • Pull request review event: 4
  • Pull request event: 3
  • Create event: 1
Last Year
  • Issue comment event: 3
  • Push event: 1
  • Pull request review event: 4
  • Pull request event: 3
  • Create event: 1

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 414
  • Total Committers: 19
  • Avg Commits per committer: 21.789
  • Development Distribution Score (DDS): 0.382
Past Year
  • Commits: 8
  • Committers: 3
  • Avg Commits per committer: 2.667
  • Development Distribution Score (DDS): 0.5
Top Committers
Name Email Commits
Oliver Kurz o****z@s****e 256
Dominik Heidler d****k@h****u 38
Marius Kittler m****r@s****e 26
Tina Müller t****r@s****m 22
Jan Baier j****r@s****z 18
Christian Dywan c****n@s****e 15
Oleksandr Orlov o****v@s****e 8
Oleksandr Orlov o****l@l****m 7
Ondřej Súkup o****p@s****m 6
Anton Smorodskyi a****i@s****m 4
Nick Singer n****r@s****e 3
Alexander Graul a****l@s****m 2
kodymo m****k@s****m 2
Panos Georgiadis p****s@s****e 2
Amrysliu x****u@s****m 1
phoenix f****r@s****m 1
soulofdestiny m****r@s****m 1
Rodion Iafarov r****v@s****m 1
ybonatakis y****s@s****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 9
  • Total pull requests: 96
  • Average time to close issues: over 1 year
  • Average time to close pull requests: 12 days
  • Total issue authors: 2
  • Total pull request authors: 11
  • Average comments per issue: 1.11
  • Average comments per pull request: 1.26
  • Merged pull requests: 85
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 5
  • Average time to close issues: N/A
  • Average time to close pull requests: about 4 hours
  • Issue authors: 0
  • Pull request authors: 3
  • Average comments per issue: 0
  • Average comments per pull request: 0.4
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • okurz (8)
  • Werkov (1)
Pull Request Authors
  • perlpunk (24)
  • okurz (23)
  • kalikiana (18)
  • Martchus (16)
  • baierjan (6)
  • asdil12 (6)
  • mimi1vx (2)
  • FruitFly638 (2)
  • b10n1k (1)
  • nicksinger (1)
  • Amrysliu (1)
  • grisu48 (1)
Top Labels
Issue Labels
future (2)
Pull Request Labels

Dependencies

setup.py pypi
  • PyYAML *
  • beautifulsoup4 *
  • certifi *
  • humanfriendly *
  • pika *
  • requests *
  • sortedcontainers *
.github/workflows/python-package.yaml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
  • actions/upload-artifact v2 composite
pyproject.toml pypi
requirements.txt pypi