Ignored users for reviews

Automated test environments may inadvertently participate in code reviews if they copy user-generated change descriptions. For example, if an automated system copied a change description containing #review and subsequently shelved or committed files, a new review would be started. Similarly copying a description with #review-123 could inadvertently update an existing review. As test environments may involve thousands or millions of tests, such interactions can potentially generate far too many P4 Code Review notifications.

To mitigate this problem, P4 Code Review can be configured to ignore specified users for the purposes of starting or updating a review. Edit the SWARM_ROOT/data/config.php file, and provide the list of users to ignore in the ignored_users item in the reviews configuration block.

A configuration change only takes effect when the configuration cache has been reloaded. You must be an admin or super user to reload the P4 Code Review config cache. Navigate to the User id dropdown menu, select System Information, click the Cache Info tab, and click the System Information.

If changes to the config.php file might have caused the P4 Code Review web interface to become unresponsive, remove the problematic changes from the config.php file, then clear the configuration cache by running this command:
rm -f /opt/perforce/swarm/data/cache/module-config-cache.php

Edit the SWARM_ROOT/data/config.php file, and provide the list of users to ignore in the ignored_users item in the reviews configuration block. For example:

<?php
// this block should be a peer of 'p4' 'reviews' => array(
'ignored_users' => array('build_user1', 'build_user2'),
),