Terms
Report line
The full process for one report, from reading data to pushing it. Each of the five reports is one line, and lines do not share intermediate results.
Allowlist
The list of items to run in this execution. Items outside the list do not run and are marked as skipped in the log.
Upload switch
Controls whether the PDF is sent to the messaging platform. When off, files are produced locally only and no message is sent to the group.
Problem
Before
- Every Monday, staff run the five reports in sequence, convert them to PDF and send them to the group by hand.
- During system tests, all five lines run as one round, which takes over ten minutes. When the upload step fails, the whole round is rerun.
- When only some items run, the summary can still read "all succeeded".
After
- The server scheduler runs automatically on Monday morning, and run logs are kept on the server.
- The config file switches each line on or off, and a command-line argument runs only the specified items. A name not in the list raises an error immediately, and the valid names are listed.
- The summary table lists the items that ran and the items that were skipped. When any item is skipped, the conclusion reads "N items that ran succeeded, M items did not run".
Workflow
Interactive demo: run one schedule round
Config file: report lines
Command-line arguments
Outcome and technology
Test entry point
A command-line argument or the config file specifies the items to run. When the upload step fails, only that item is rerun.
Input validation
An unrecognized item name raises an error immediately and lists the valid names. It is not ignored silently.
Verifiable log
The summary table lists the execution, skip status and duration of each item. When only some items run, the conclusion does not read "all succeeded".