Skip to content

Commit

Permalink
phase1: AnyBranchScheduler: make treeStableTimer configurable
Browse files Browse the repository at this point in the history
The AnyBranchScheduler will currently wait for 15 minutes before
starting a build.  If new changes are made on the same branch during
this interval, the timer will be restarted.

For staging repository we want faster feedback loop, so we're going to
use much lower value, thus lets make this configurable and handled via
Ansible.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
  • Loading branch information
ynezz authored and aparcar committed Aug 7, 2024
1 parent d7c977e commit f558acb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions phase1/config.ini.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ password = example

[repo]
url = https://git.openwrt.org/openwrt/openwrt.git
tree_stable_timer = 900

# branches should be listed by decreasing build priority order, typically oldest branch first (less build intensive)
# branch section name should match branch "name" option until signall.sh is reworked
Expand Down
3 changes: 2 additions & 1 deletion phase1/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ work_dir = os.path.abspath(ini["general"].get("workdir", "."))
scripts_dir = os.path.abspath("../scripts")

repo_url = ini["repo"].get("url")
tree_stable_timer = ini["repo"].getint("tree_stable_timer", 15 * 60)

rsync_defopts = ["-v", "--timeout=120"]

Expand Down Expand Up @@ -509,7 +510,7 @@ c["schedulers"].append(
AnyBranchScheduler(
name="all",
change_filter=util.ChangeFilter(branch=branchNames),
treeStableTimer=15 * 60,
treeStableTimer=tree_stable_timer,
builderNames=builderNames,
)
)
Expand Down

0 comments on commit f558acb

Please sign in to comment.