empserver/tests/smoke
Markus Armbruster 6fcbc16adf update: Limit avail roll over to about half the update's work
Traditionally, unused unused available work is discarded at the
update.  Since commit d7a054c (v4.2.13), deities can configure (some)
unused work to "roll over", i.e. available work = some unused work +
this update's work.

Not discarding unused work reduces micromanagement incentives.
However, it also leads to unobvious behavior.

For instance, here's the obvious way to build a radar station: move in
enough people to make 200 work.  Half of it is available for sector
building, and increases efficiency to 100%.  Here's a not-so-obvious
way: move in enough people to make 134 work.  67 will be used to
increase efficiency to 67%.  Now move your workers elsewhere.  The
unused available work is enough to finish the job at the next update.

Similarly, neighbors could be surprised by sectors building bridges
despite having no visible workers.

Commit 7f4e59f (v4.2.15) let deities limit the amount rolled over:
unused work above rollover_avail_max is discarded.  This became the
default with a value of 50 in commit 81a3e4c4, v4.3.31.

Limit it further so that "roll over" can increase the update's work by
no more than half, plus one.  The extra point is there so that even a
tiny work force has a chance to eventually eke out the second point of
work needed to increase efficiency.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-06 19:59:59 +02:00
..
00 tests/version: New; exercises config introspection commands 2017-08-06 14:03:55 +02:00
01 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
02 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
03 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
04 update: Round the people's work randomly rather than down 2017-08-06 19:59:59 +02:00
05 update: Round the people's work randomly rather than down 2017-08-06 19:59:59 +02:00
06 update: Round the people's work randomly rather than down 2017-08-06 19:59:59 +02:00
07 update: Round the people's work randomly rather than down 2017-08-06 19:59:59 +02:00
08 update: Round the people's work randomly rather than down 2017-08-06 19:59:59 +02:00
09 update: Round the people's work randomly rather than down 2017-08-06 19:59:59 +02:00
10 update: Round the people's work randomly rather than down 2017-08-06 19:59:59 +02:00
11 update: Round the people's work randomly rather than down 2017-08-06 19:59:59 +02:00
12 update: Round the people's work randomly rather than down 2017-08-06 19:59:59 +02:00
13 update: Round the people's work randomly rather than down 2017-08-06 19:59:59 +02:00
14 update: Round the people's work randomly rather than down 2017-08-06 19:59:59 +02:00
15 update: Round the people's work randomly rather than down 2017-08-06 19:59:59 +02:00
16 autonav: Remove the feature 2015-02-28 16:10:22 +01:00
99 tests/version: New; exercises config introspection commands 2017-08-06 14:03:55 +02:00
fairland.xdump sect: Keep work percentage without civilians at 100% 2017-08-06 19:59:57 +02:00
final.xdump update: Limit avail roll over to about half the update's work 2017-08-06 19:59:59 +02:00
journal.log update: Limit avail roll over to about half the update's work 2017-08-06 19:59:59 +02:00
newcap_script Remove fairland from smoke test 2013-05-08 06:55:19 +02:00
server.log tests: Enable running_test_suite by default 2014-01-19 10:09:17 +01:00