https://progress.opensuse.org/https://progress.opensuse.org/themes/openSUSE/favicon/favicon.ico?15829177842020-07-30T12:47:02ZopenSUSE Project Management ToolQA - action #69322: Automatic check for SUSE QA tools WIP-Limit based on ticketshttps://progress.opensuse.org/issues/69322?journal_id=3158592020-07-30T12:47:02Zokurzokurz@suse.com
<ul></ul><p>We can query all issues that "SUSE QA tools" team members are working on:</p>
<pre><code>curl -s -H "X-Redmine-API-Key: $redmine_api_key" "https://progress.opensuse.org/issues.json?query_id=400&project_id=18&limit=200" | jq
</code></pre>
<p>with <code>$redmine_api_key</code> being my personal redmine API key that can be created in each person's profile, <code>query_id=400</code> is the id for the query "tools team - what members of the team are working on" and <code>project_id=18</code> is for "openQA". I added <code>limit=200</code> as otherwise some tickets were not shown and we will filter down later anyway. It should be possible to include a "status" filter in the query directly but did not manage to do that, e.g. with <code>status_id=2</code> to only return "In Progress" according to <a href="https://www.redmine.org/projects/redmine/wiki/Rest_Issues" class="external">https://www.redmine.org/projects/redmine/wiki/Rest_Issues</a> , maybe not for json api, only xml.</p>
<p>So with saving the query result for reuse:</p>
<pre><code>curl -s -H "X-Redmine-API-Key: $redmine_api_key" "https://progress.opensuse.org/issues.json?query_id=400&project_id=18&limit=200" > working_on.json
cat working_on.json | jq -r '.issues | .[] | select(.status.name=="In Progress") | .id' | wc -l
</code></pre>
<p>returning correctly 9 tickets as of now.</p>
QA - action #69322: Automatic check for SUSE QA tools WIP-Limit based on ticketshttps://progress.opensuse.org/issues/69322?journal_id=3160662020-07-31T14:25:43Zokurzokurz@suse.com
<ul><li><strong>Status</strong> changed from <i>Workable</i> to <i>In Progress</i></li><li><strong>Assignee</strong> set to <i>okurz</i></li></ul><p>I added the user "openqa_review" to the QA project in <a href="https://progress.opensuse.org/projects/qa/settings/members" class="external">https://progress.opensuse.org/projects/qa/settings/members</a> so that the bot can access the internal ticket query. I added the redmine api key of said user as REDMINE_API_KEY in <a href="https://github.com/os-autoinst/scripts/settings/secrets/new" class="external">https://github.com/os-autoinst/scripts/settings/secrets/new</a></p>
<p>Created <a href="https://github.com/os-autoinst/scripts/pull/31" class="external">https://github.com/os-autoinst/scripts/pull/31</a> with a script and a github actions pipeline.</p>
<p>We have yet to see if the syntax in the workflow file is correct and if it triggers as expected. Another way might be <a href="https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/" class="external">https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/</a> to trigger manually but I guess I can wait for now :)</p>
QA - action #69322: Automatic check for SUSE QA tools WIP-Limit based on ticketshttps://progress.opensuse.org/issues/69322?journal_id=3178962020-08-10T15:00:43Zokurzokurz@suse.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li></ul><p><a href="https://github.com/os-autoinst/scripts/actions?query=workflow%3A%22Check+SUSE+QA+Tools+WIP-Limit%22" class="external">https://github.com/os-autoinst/scripts/actions?query=workflow%3A%22Check+SUSE+QA+Tools+WIP-Limit%22</a> shows the checks working fine. Created <a href="https://github.com/os-autoinst/scripts/pull/33" class="external">https://github.com/os-autoinst/scripts/pull/33</a> to show a bit more output but without functional impact.</p>