https://progress.opensuse.org/https://progress.opensuse.org/themes/openSUSE/favicon/favicon.ico?15829177842020-10-26T08:10:11ZopenSUSE Project Management ToolQA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3428082020-10-26T08:10:11Zokurzokurz@suse.com
<ul><li><strong>Tracker</strong> changed from <i>coordination</i> to <i>action</i></li></ul> QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3447762020-10-29T15:17:50Zokurzokurz@suse.com
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li></ul> QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3518572020-11-18T11:21:19Zlivdywanliv.dywan@suse.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/351857/diff?detail_id=349433">diff</a>)</li></ul> QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3518612020-11-18T11:29:51Zlivdywanliv.dywan@suse.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/351861/diff?detail_id=349435">diff</a>)</li><li><strong>Difficulty</strong> set to <i>easy</i></li></ul> QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3518632020-11-18T11:34:26Zilausuchilausuch@suse.com
<ul><li><strong>Assignee</strong> set to <i>ilausuch</i></li></ul> QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3520802020-11-19T09:54:47Zlivdywanliv.dywan@suse.com
<ul><li><strong>Status</strong> changed from <i>Workable</i> to <i>In Progress</i></li></ul> QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3530102020-11-20T13:52:57Zilausuchilausuch@suse.com
<ul></ul><p>I started an draft PR <a href="https://github.com/os-autoinst/scripts/pull/44" class="external">https://github.com/os-autoinst/scripts/pull/44</a></p>
QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3541222020-11-25T15:57:22Zilausuchilausuch@suse.com
<ul></ul><p>According to the comment <a href="https://github.com/os-autoinst/scripts/pull/44#issuecomment-732184256" class="external">https://github.com/os-autoinst/scripts/pull/44#issuecomment-732184256</a> and after several reviews the code updates the due date under these conditions:</p>
<ul>
<li>The priority is not Low</li>
<li>No previous due date set</li>
<li>Not assigned to anyone</li>
<li>Not blocked or resolved</li>
</ul>
<p>Additionally there are a dry run mode</p>
<ol>
<li><p>Runs the script without updating the tickets<br>
<code>dry_run=1 ./backlog-set-due-date</code></p></li>
<li><p>Equal than 1 but also extract the tickets from a file instead of a file<br>
<code>dry_run=1 ./backlog-set-due-date <issues-json-file></code></p></li>
</ol>
QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3553962020-11-28T20:46:46Zokurzokurz@suse.com
<ul><li><strong>Due date</strong> set to <i>2020-12-12</i></li></ul><p>Setting due date based on mean cycle time of SUSE QE Tools</p>
QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3558342020-12-01T16:22:17Zlivdywanliv.dywan@suse.com
<ul></ul><p>Also <a href="https://github.com/os-autoinst/scripts/pull/51" class="external">https://github.com/os-autoinst/scripts/pull/51</a> for the CI enablement</p>
QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3558362020-12-01T16:23:25Zlivdywanliv.dywan@suse.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Feedback</i></li></ul><p>And it should probably be <em>Feedback</em> as we have the pieces, and now we can see if it works as well as we hope when normally scheduled.</p>
QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3559842020-12-02T10:03:22Zilausuchilausuch@suse.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>It seem it works automatically<br>
See the last example <a href="https://github.com/os-autoinst/scripts/runs/1484188834?check_suite_focus=true" class="external">https://github.com/os-autoinst/scripts/runs/1484188834?check_suite_focus=true</a></p>
<pre><code>Updating ticket 80576, new due date setup to 2020-12-16
curl -v -H X-Redmine-API-Key: *** -H Content-Type: application/json -X PUT -d {"issue": {"due_date": "2020-12-16", "notes": "Setting due date based on mean cycle time of SUSE QE Tools"}} progress.opensuse.org/issues/80576.json
</code></pre>
<p>I put that as resolved</p>
QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3570622020-12-09T07:00:51Zokurzokurz@suse.com
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Feedback</i></li></ul><p>seems to not work in all the cases, e.g. could you please check why the script does not set a due date on <a class="issue tracker-6 status-3 priority-4 priority-default closed child parent" title="coordination: [epic] Remote openQA worker fails to run tests from openqa-clone-custom-git-refspec (Resolved)" href="https://progress.opensuse.org/issues/67723">#67723</a>?</p>
QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3574882020-12-10T09:05:21Zilausuchilausuch@suse.com
<ul></ul><p>For some reason if I execute a query to extract this issue from the list of this project is not returned, and the problem is not the limit</p>
<pre><code>curl "https://progress.opensuse.org/issues.json?project_id=18&limit=100000" |jq '.issues | .[] | select(.id==67723)'
</code></pre>
<p>NOTE: I tried to use a grep directly over the result of the query with the same results</p>
<p>But if I ask directly for this issue this is on this project, so I don't see a reason to not be showed</p>
<pre><code>curl https://progress.opensuse.org/issues.json?issue_id=67723 | jq
</code></pre><pre><code>{
"issues": [
{
"id": 67723,
"project": {
"id": 18,
"name": "openQA Project"
},
"tracker": {
"id": 4,
"name": "action"
},
"status": {
"id": 2,
"name": "In Progress"
},
</code></pre>
<p>Maybe a bug on the <a href="https://progress.opensuse.org/issues.json" class="external">https://progress.opensuse.org/issues.json</a> query?</p>
QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3574902020-12-10T09:08:45Zilausuchilausuch@suse.com
<ul></ul><p>Update,<br>
This is the complete result of this issue. Notice that has a close_on Date, maybe this is the reason because doesn't appears on the list</p>
<pre><code>{
"issues": [
{
"id": 67723,
"project": {
"id": 18,
"name": "openQA Project"
},
"tracker": {
"id": 4,
"name": "action"
},
"status": {
"id": 2,
"name": "In Progress"
},
"priority": {
"id": 4,
"name": "Normal"
},
"author": {
"id": 29593,
"name": "ggardet_arm"
},
"assigned_to": {
"id": 32669,
"name": "Xiaojing_liu"
},
"category": {
"id": 142,
"name": "Feature requests"
},
"fixed_version": {
"id": 418,
"name": "Ready"
},
"parent": {
"id": 80372
},
"subject": "Remote openQA worker fails to run tests from openqa-clone-custom-git-refspec",
"description": "## Observation\r\n\r\nRemote openQA worker fails to run tests from `openqa-clone-custom-git-refspec`, see: https://openqa.opensuse.org/tests/1287895\r\n\r\n~~~\r\n\u001b[0mneedles_dir not found: /var/lib/openqa/pool/2/os-autoinst-distri-opensuse/var/lib/openqa/cache/openqa1-opensuse/tests/opensuse/products/opensuse/needles (check vars.json?) at /usr/lib/os-autoinst/needle.pm line 330, <$fh> line 20.\r\n\u001b[37m[2020-06-04T09:10:50.934 UTC] [debug] terminating command server 19004 because test execution ended through exception\r\n\u001b[0m\u001b[37m[2020-06-04T09:10:51.935 UTC] [debug] done with command server\r\n\u001b[0m18926: EXIT 1\r\n~~~\r\n\r\nIs there anything to setup?\r\n\r\n## Motivation\r\nAs a user of remote openQA worker instances I want to be able to use openqa-clone-custom-git-refspec as well\r\n\r\n\r\n## Acceptance criteria\r\n* **AC1:** openqa-clone-custom-git-refspec creates jobs with valid CASEDIR and valid NEEDLES_DIR if source job is a \"remote worker\"\r\n* **AC2:** openqa-clone-custom-git-refspec still creates jobs that find tests from specified git hash and needles for other workers\r\n\r\n\r\n## Suggestions\r\n* Croscheck the command line with which openqa-clone-job would be or is called within `openqa-clone-custom-git-refspec` in case of normal workers or the affected machines\r\n* As it seems that the paths given to openqa-clone-job seem valid also check how openQA internally handles paths to generate the obviously wrong path like \"/var/lib/openqa/pool/2/os-autoinst-distri-opensuse/var/lib/openqa/cache/openqa1-opensuse/tests/opensuse/products/opensuse/needles\"\r\n* Either apply fix in openQA side or openqa-clone-custom-git-refspec",
"start_date": "2020-06-04",
"due_date": null,
"done_ratio": 0,
"is_private": false,
"estimated_hours": null,
"custom_fields": [
{
"id": 16,
"name": "Difficulty",
"value": "easy"
}
],
"created_on": "2020-06-04T09:18:43Z",
"updated_on": "2020-12-03T09:47:51Z",
"closed_on": "2020-07-07T13:31:04Z"
}
],
"total_count": 1,
"offset": 0,
"limit": 25
}
</code></pre> QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3585222020-12-16T10:25:52Zokurzokurz@suse.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>Thanks for crosschecking. So yes, I agree that <a class="issue tracker-6 status-3 priority-4 priority-default closed child parent" title="coordination: [epic] Remote openQA worker fails to run tests from openqa-clone-custom-git-refspec (Resolved)" href="https://progress.opensuse.org/issues/67723">#67723</a> has a bit of a messy history :D So we should keep in mind that our helper scripts leave tickets alone when they are not that "clean" anymore :) I agree that the main use case is covered and we can close this ticket as resolved.</p>
QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3585422020-12-16T10:48:16Zokurzokurz@suse.com
<ul><li><strong>Due date</strong> deleted (<del><i>2020-12-12</i></del>)</li></ul> QA - action #73468: SUSE QA tools team ticket process helpers: Set due date on tickets in redmine based on SLOshttps://progress.opensuse.org/issues/73468?journal_id=3937052021-03-26T10:55:31Zlivdywanliv.dywan@suse.com
<ul><li><strong>Copied to</strong> <i><a class="issue tracker-4 status-3 priority-4 priority-default closed child" href="/issues/90441">action #90441</a>: Only set due date on tickets in progress</i> added</li></ul>