Ticket #362: fileIsImportant-docs.patch
| File fileIsImportant-docs.patch, 2.0 kB (added by clepple, 3 months ago) |
|---|
-
buildbot.texinfo
old new 1522 1522 1523 1523 It also has a list of @code{files}, which are just the tree-relative 1524 1524 filenames of any files that were added, deleted, or modified for this 1525 Change. These filenames are used by the @code{ isFileImportant}1525 Change. These filenames are used by the @code{fileIsImportant} 1526 1526 function (in the Scheduler) to decide whether it is worth triggering a 1527 new build or not, e.g. the function could use 1528 @code{filename.endswith(".c")} to only run a build if a C file were 1529 checked in. Certain BuildSteps can also use the list of changed files 1527 new build or not, e.g. the function could use the following function 1528 to only run a build if a C file were checked in: 1529 1530 @example 1531 def has_C_files(change): 1532 for name in change.files: 1533 if name.endswith(".c"): 1534 return True 1535 return False 1536 @end example 1537 1538 Certain BuildSteps can also use the list of changed files 1530 1539 to run a more targeted series of tests, e.g. the 1531 1540 @code{python_twisted.Trial} step can run just the unit tests that 1532 1541 provide coverage for the modified .py files instead of running the … … 1551 1560 @item CVS 1552 1561 @code{revision} is an int, seconds since the epoch 1553 1562 @item SVN 1554 @code{revision} is an int, a transationnumber (r%d)1563 @code{revision} is an int, the changeset number (r%d) 1555 1564 @item Darcs 1556 1565 @code{revision} is a large string, the output of @code{darcs changes --context} 1557 1566 @item Mercurial … … 1632 1641 feed multiple Builders (with a @code{mode=} of @code{'copy'}, 1633 1642 @code{'clobber'}, or @code{'export'}). 1634 1643 1635 The @code{tree-stable-timer} and @code{ isFileImportant} decisions are1644 The @code{tree-stable-timer} and @code{fileIsImportant} decisions are 1636 1645 made by the Scheduler. Dependencies are also implemented here. 1637 1646 Periodic builds (those which are run every N seconds rather than after 1638 1647 new Changes arrive) are triggered by a special @code{Periodic}
![[Buildbot Logo]](/trac/chrome/site/header-text-transparent.png)