Mark issues as CNW when most recent patch has failed testing

boombatower - October 24, 2008 - 05:52
Project:Project issue file testing
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

After results come back if it meets conditions then mark issue as CNW.

I came up with the following comments when I wrote my code:

<?php
          $self
= parse_url(url('', NULL, NULL, TRUE));
         
$result = url(variable_get('pifr_test_master_url', '') . 'pifr/file/' . $self['host'] . '/' . $file['filename']);

         
$changes = array();
         
$changes['nid'] = $file['nid'];
         
$changes['sid'] = variable_get('pifr_report_fail_status', '');
          if (
$file['cid']) {
           
$comment = url('node/' . $file['nid'], NULL, 'comment-' . $file['cid']);
           
$changes['comment'] = t('The file <a href="@comment">@name</a> failed testing.' .
                                   
' For more information please see the <a href="@results">detailed results</a>.',
                                    array(
'@name' => $file['filename'], '@comment' => $comment, '@results' => $result));
          }
          else {
           
$changes['comment'] = t('The file @name in the original post failed testing.' .
                                   
' For more information please see the <a href="@results">detailed results</a>.',
                                    array(
'@name' => $file['filename'], '!post' => $post, '@results' => $result));
          }
         
project_issue_add_followup($changes);
?>

#1

boombatower - October 24, 2008 - 05:52

Related interface.

AttachmentSize
result_reporting.png 9.78 KB

#2

hunmonk - October 24, 2008 - 14:29
Status:active» postponed (maintainer needs more info)

i don't think your .png file is the result reporting picture ;)

#3

boombatower - October 25, 2008 - 00:22
Status:postponed (maintainer needs more info)» active

That is just what I had for selected what status to set the issue to on a fail. The comments are in the code.

#4

hunmonk - October 25, 2008 - 15:06
Status:active» postponed

i'm postponing this for now. the auto status changing based on patch testing results has been a big headache every time we've tried it. i want to see the testing framework running smoothly for awhile before i install this feature in pift.

#5

hunmonk - October 26, 2008 - 01:49

this is now officially waiting on #326184: review test results for accuracy

#6

hunmonk - October 28, 2008 - 02:05

#7

hunmonk - October 28, 2008 - 15:48

discussing this feature a bit more w/ chx, we agreed that the most straightforward approach for the content of the comment would be something like:

The most recent patch failed testing.

'failed testing' would be an internal page link to the test result display table for the patch.

#8

hunmonk - October 28, 2008 - 17:54
Status:active» postponed

this is now held up by http://drupal.org/node/327238

the reason is simple: without realtime knowledge of what files PIFT is sending for testing, it becomes much more difficult and messy to clearly determine the 'last' testable file posted to the issue.

#9

catch - November 1, 2008 - 11:58

It's rare that I *subscribe* to issues, but this is one.

#10

hunmonk - November 3, 2008 - 03:57

#11

boombatower - November 3, 2008 - 16:24

The messages above should provide a good starting point, or just use em.

#12

hunmonk - November 3, 2008 - 18:32

http://drupal.org/node/326425 really needs to be finalized before we deploy anything in this patch on drupal.org, so if anybody can help there, i'd appreciate it.

#13

hunmonk - November 4, 2008 - 04:58
Status:active» fixed

attached patch has been committed to 5.x and HEAD, and pretty heavily tested on a local install.

AttachmentSize
pift_auto_followup.patch 12.09 KB

#14

System Message - November 18, 2008 - 05:01
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.