Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • S slapos.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 38
    • Merge requests 38
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • slapos.core
  • Merge requests
  • !38

new promises format with promise launcher to run python promises

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Rafael Monnerat requested to merge alain into master Feb 27, 2018
  • Overview 12
  • Commits 3
  • Pipelines 0
  • Changes 11

Implement new design for python promises. python promises can define sense, test and anomaly method. test method will be called by slapgrid or when no bang is needed for the promise anomaly method is called when a promise failure required to bang the master, anomaly method can be optional but it's not the case for test method. sense method is always called to run promises sensor. the result is always saved to log. test and anomaly method check logs result to say if the promise works or not

GenericPromise implements base features of promises, _test() and _anomaly() methods are helpers used to test promise result from latest execution logs.

Promise launcher run all promise (of selected ones) one by one and, for each promise, will save the result in json format and raise at the end if at least one promise failed.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: alain
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7