Bug #49210 Enable MTR timeout configuration through environment variables
Submitted: 30 Nov 2009 15:15 Modified: 12 Mar 2010 16:41
Reporter: Daniel Fischer Email Updates:
Status: Closed Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S4 (Feature request)
Version: OS:Any
Assigned to: Bjørn Munch CPU Architecture:Any

[30 Nov 2009 15:15] Daniel Fischer
Description:
It should be possible to configure test case and test suite timeouts with environment variables. This is needed because there is currently no way to increase the timeout for specific test runs in pushbuild, e.g. valgrind runs.

How to repeat:
It's a feature request. Observe that the feature is not present.

Suggested fix:
Introduce MTR_TESTCASE_TIMEOUT and MTR_SUITE_TIMEOUT environment variables that override the default settings for --testcase-timeout and --suite-timeout. 
This is needed in mtrv1 for mysql 5.0 as well.
[4 Dec 2009 12:34] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/92867

2866 Bjorn Munch	2009-12-04
      Bug #49210 Enable MTR timeout configuration through environment variables
      Define env. vars for all the timeout settings
[22 Jan 2010 11:36] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/97853

2841 Bjorn Munch	2010-01-22
      Bug #49210 Enable MTR timeout configuration through environment variables
      Define env. vars for both timeout settings
      This patch is for 5.0 (mtr v1); it does not replace 
         the previous patch which is for 5.1 (mtr v2)
[25 Jan 2010 14:48] Daniel Fischer
Looks like it could work.
[25 Jan 2010 15:25] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/98065

2885 Bjorn Munch	2010-01-25
      Bug #49210 Enable MTR timeout configuration through environment variables
      Define env. vars for both timeout settings
      Also incorporated 5.0 patch into mtr version 1
[27 Jan 2010 14:22] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/98343

2842 Bjorn Munch	2010-01-27
        Bug #49210 Enable MTR timeout configuration through environment variables
        Define env. vars for both timeout settings
        This patch is for 5.0 (mtr v1) and should replaces for 5.1 up
[27 Jan 2010 15:18] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/98356

3338 Bjorn Munch	2010-01-27 [merge]
      Bug #49210 Enable MTR timeout configuration through environment variables
      Define env. vars for both timeout settings
      Also incorporated 5.0 patch into mtr version 1
[27 Jan 2010 15:34] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/98361

3339 Bjorn Munch	2010-01-27 [merge]
      Bug #49210 Enable MTR timeout configuration through environment variables
      Define env. vars for both timeout settings
      Also incorporated 5.0 patch into mtr version 1
[28 Jan 2010 9:59] Bjørn Munch
Pushed to 5.0-bugteam, 5.1-bugteam, mysql-pe
[4 Feb 2010 10:15] Bugs System
Pushed into 5.0.91 (revid:joro@sun.com-20100204101329-4wg1ktw00vk63o8l) (version source revid:bjorn.munch@sun.com-20100127142141-n5j4snngwwmc706e) (merge vers: 5.0.90) (pib:16)
[4 Feb 2010 10:19] Bugs System
Pushed into 5.1.44 (revid:joro@sun.com-20100204101444-2j32mhqroo0iiio6) (version source revid:aelkin@mysql.com-20100128102219-jv0ng84taiexx2xb) (merge vers: 5.1.43) (pib:16)
[5 Feb 2010 11:48] Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100204063540-9czpdmpixi3iw2yb) (version source revid:alik@sun.com-20100130220650-3md8m8w9frcwjj9f) (pib:16)
[5 Feb 2010 11:54] Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100205113942-oqovjy0eoqbarn7i) (version source revid:alik@sun.com-20100204064210-ljwanqvrjs83s1gq) (merge vers: 6.0.14-alpha) (pib:16)
[5 Feb 2010 12:00] Bugs System
Pushed into 5.5.2-m2 (revid:alik@sun.com-20100203172258-1n5dsotny40yufxw) (version source revid:alik@sun.com-20100130191336-i53i9wx67n81ridm) (merge vers: 5.5.2-m2) (pib:16)
[10 Feb 2010 18:58] Paul Dubois
Noted in 5.0.91, 5.1.44, 5.5.2, 6.0.14 changelogs.

mysql-test-run.pl now recognizes the MTR_TESTCASE_TIMEOUT,
MTR_SUITE_TIMEOUT, MTR_SHUTDOWN_TIMEOUT, and MTR_START_TIMEOUT
environment variables. If they are set, their values are used to set
the --testcase-timeout, --suite-timeout, --shutdown-timeout, and
--start-timeout options, respectively. 

Setting report to Need Merge pending push to Celosia.
[12 Mar 2010 14:08] Bugs System
Pushed into 5.1.44-ndb-7.0.14 (revid:jonas@mysql.com-20100312135944-t0z8s1da2orvl66x) (version source revid:jonas@mysql.com-20100312115609-woou0te4a6s4ae9y) (merge vers: 5.1.44-ndb-7.0.14) (pib:16)
[12 Mar 2010 14:23] Bugs System
Pushed into 5.1.44-ndb-6.2.19 (revid:jonas@mysql.com-20100312134846-tuqhd9w3tv4xgl3d) (version source revid:jonas@mysql.com-20100312060623-mx6407w2vx76h3by) (merge vers: 5.1.44-ndb-6.2.19) (pib:16)
[12 Mar 2010 14:37] Bugs System
Pushed into 5.1.44-ndb-6.3.33 (revid:jonas@mysql.com-20100312135724-xcw8vw2lu3mijrhn) (version source revid:jonas@mysql.com-20100312103652-snkltsd197l7q2yg) (merge vers: 5.1.44-ndb-6.3.33) (pib:16)
[12 Mar 2010 16:41] Paul Dubois
Fixed in earlier 5.1.x, 5.5.x.