[Numpy-discussion] Automatic issue triage.

Pauli Virtanen pav at iki.fi
Fri Feb 21 05:07:34 EST 2014

Charles R Harris <charlesr.harris <at> gmail.com> writes:
> After 6 days of trudging through the numpy issues and
> finally passing the half way point, I'm wondering if we
> can set up so that new defects get a small test that can
> be parsed out and run periodically to mark issues that might
> be fixed. I expect it can be done, but might be more trouble
> than it is worth to keep working.

Github has an API for accessing issue contents.

curl -i "https://api.github.com/repos/numpy/numpy/issues?state=open"

If some markup for test cases is devised, a tool can be written
that detects them.

Alternatively, one could just add a separate git repository 
numpy/bugs.git for bug test cases, containing e.g. files
`gh-1234.py`. Such scripts need to be written anyway at some
point (or copypasted to Python shell). It would also be better
from security POV to use a separate repo for bug test cases.

This would also solve the issue of how to add attachments
to bug reports in one way.

Pauli Virtanen

More information about the NumPy-Discussion mailing list