summaryrefslogtreecommitdiff
path: root/yarns/lib.py
AgeCommit message (Collapse)AuthorFilesLines
2019-07-05Change: make yarns run against a remote Ick instance, not localLars Wirzenius1-115/+99
2019-04-06Refactor: move tricky Python code into lib.pyLars Wirzenius1-0/+84
2019-04-06Refactor: use name V instead of vars in yarn implementsLars Wirzenius1-7/+7
vars is a Python builtin, and as such it's not a great name.
2018-05-17Change: how controller stores persistent dataLars Wirzenius1-1/+2
Replace old State class with new FilePersistentState and TransactionalState classes. Use new Resource class instead of raw dicts. Use context managers for creating, updating resources, to avoid mistakes from accidentally not saving changes. Overall persistence should now be rather simpler. This should open up a possibility for changing the controller to insert more actions into the build graph, to trigger notifcations via the workers.
2018-03-24Fix: lib.py wait_for_port to actually workLars Wirzenius1-0/+2
Previously, if the timing was just right, the function would try to connect to the port before gunicorn had opened it, and handled the resulting excption badly. Should now handle it correctly.
2018-01-19Change: builds are now numbered foo/123, as are logsLars Wirzenius1-0/+6
2018-01-14Add: 2018 to copyright yearsLars Wirzenius1-1/+1
2018-01-14Add: show dict diffs in a way that's easier to understandLars Wirzenius1-0/+65
2017-12-15Refactor: rename body_text to body throughoutLars Wirzenius1-4/+4
2017-12-15Refactor: add function http, for easier requestsLars Wirzenius1-0/+8
2017-12-03Add: blob serviceLars Wirzenius1-0/+8
2017-12-03Add: scenario for testing blob serviceLars Wirzenius1-0/+9
2017-11-06Add: unescape functionLars Wirzenius1-0/+11
This will allow us to use \n in (selected) scenario step strings.
2017-11-05ADd: return headers from HTTP responsesLars Wirzenius1-3/+3
2017-11-05Add: add helpers for storing, retrieving tokens for usersLars Wirzenius1-1/+11
2017-10-14Add: run yarns against locallly started instance, or remoteLars Wirzenius1-4/+4
2017-09-24Add: copyright license declaration to all filesLars Wirzenius1-0/+13
Also, ./check verifies it's in all files.
2017-09-24Add: copyright statements, check they existLars Wirzenius1-0/+2
2017-08-06Add: ControllerAPI, ControllerStateLars Wirzenius1-0/+94
2017-08-06Start rewrite using Python 3, apifw, slogLars Wirzenius1-111/+0
apifw and slog are two libraries I've written for work. They make writing RESTful HTTP JSON APIs easier.
2017-07-29Add: scenario for concurrent building of projectsLars Wirzenius1-1/+22
2017-07-01Add: controller build scenarioLars Wirzenius1-1/+62
This scenario test the ick2 MVP controller API. See http://ick-devel.liw.fi/f6166c07380e4cc78b5619d8c1322736.html for more detailed information.
2017-04-01Add skeleton for a smoke test yarnLars Wirzenius1-0/+29