Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S slapos.core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slapos.core
  • Merge requests
  • !38

Merged
Created Feb 27, 2018 by Rafael Monnerat@rafael👻Owner

new promises format with promise launcher to run python promises

  • Overview 12
  • Commits 3
  • 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
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: alain
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7