summaryrefslogtreecommitdiff
path: root/ick2/workapi.py
AgeCommit message (Collapse)AuthorFilesLines
2019-10-18Revert "Change: get and use tokens"Lars Wirzenius1-12/+12
This reverts commit 4dd2e14cd15ad2840cfc3636251802f8eb0bc9ba.
2019-10-18Revert "Add: TokenGetter"Lars Wirzenius1-3/+0
This reverts commit 7a6bc2f7749c10c1d3344ea0196e81ae95b7f0d7.
2019-08-03Add: TokenGetterLars Wirzenius1-0/+3
2019-08-03Change: get and use tokensLars Wirzenius1-12/+12
2018-06-24Refactor: use existing variable instead of .get()ing it againLars Wirzenius1-1/+1
2018-06-23Fix: use consistent tense for build/action start/end messagesLars Wirzenius1-3/+3
2018-06-23Change: clarify message for when action startsLars Wirzenius1-1/+1
2018-06-23Change: when an action starts, give timestampLars Wirzenius1-1/+2
2018-06-23Change: clarify wording for timestamp of build startingLars Wirzenius1-1/+1
2018-06-10Add: notification serviceLars Wirzenius1-1/+2
2018-06-10Add: BuildStateMachine classLars Wirzenius1-65/+98
2018-05-28Add: BuildGraph.has_more_to_do method, refactorLars Wirzenius1-27/+12
2018-05-19Change: use build graphs in build resources, instead of action listLars Wirzenius1-29/+33
2018-05-17Change: how controller stores persistent dataLars Wirzenius1-150/+104
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-04-25Change: GET /work, POST /worker use access token to identify workerLars Wirzenius1-2/+10
2018-04-23Change: all actions must have a "where"Lars Wirzenius1-0/+1
2018-04-19Change: trigger a project, build all pipelines in the projectLars Wirzenius1-48/+21
2018-04-18Change: add all actions from all pipelines when project build startsLars Wirzenius1-1/+8
2018-04-15Add: build_number to work resourceLars Wirzenius1-2/+4
2018-01-21Add: builds to have a build_number fieldLars Wirzenius1-13/+19
For easy sorting.
2018-01-19Add: log message about build id choosingLars Wirzenius1-0/+3
2018-01-19Change: builds are now numbered foo/123, as are logsLars Wirzenius1-2/+5
2018-01-18Change: rename 'name' field on pipelines to 'pipeline'Lars Wirzenius1-3/+3
For consistency.
2018-01-14Add: prepend a create_workspace action to pipelinesLars Wirzenius1-3/+5
This replaces the old fresh_workspace attribute of work resources. It's better this way, because it moves policy from worker-manager to controller, where it belongs.
2018-01-14Add: 2018 to copyright yearsLars Wirzenius1-1/+1
2018-01-14Add: move actions for a build into build resourceLars Wirzenius1-11/+27
This way the list is known later even if the pipeline spec is changed.
2018-01-14Drop: debug log messageLars Wirzenius1-8/+0
2017-12-27Change: WorkAPI to add parameters in build resourcesLars Wirzenius1-0/+2
This makes yarns pass again.
2017-12-15Fix: unify arg names in subclassesLars Wirzenius1-5/+5
2017-12-15Refactor: use PipelineInstances class in projectapi.pyLars Wirzenius1-18/+12
2017-12-15Refactors: Workers, Project classesLars Wirzenius1-37/+2
These are wrapper classes around ControllerStore, which abstract away the irrelevant details for callers.
2017-11-29Add: set fresh_workspace in work responsesLars Wirzenius1-1/+3
2017-11-26Fix: return the right projectLars Wirzenius1-7/+12
Previously, return the first project that named the wanted pipeline.
2017-11-26Refactor: clear up code to update pipeline stateLars Wirzenius1-2/+1
Also drop unnecessary update of project, since it hasn't changed.
2017-11-26Update: project and work apis to handle named pipelinesLars Wirzenius1-8/+29
2017-11-26Add: unit test check work steps get project paramsLars Wirzenius1-0/+1
2017-11-25Fix: adapt to new keyword argument from apifwLars Wirzenius1-2/+2
Handle any keyword arguments that may happen in the future.
2017-11-19Fix: if PUT a new worker, failLars Wirzenius1-2/+7
Shouldn't update a worker that does not exist
2017-11-18Refactor: move _start_log closer to where it is calledLars Wirzenius1-9/+8
2017-11-18Refactor: simplify how a build is startedLars Wirzenius1-18/+18
2017-11-18Refactor: move get/update projects to it own classLars Wirzenius1-12/+19
2017-11-18Refactor: move worker get/update into their own classLars Wirzenius1-17/+24
2017-11-18Refactor: move WorkAPI into its own moduleLars Wirzenius1-0/+219