Vridlo/types/Exercise: Difference between revisions

From ALT Linux Wiki
No edit summary
No edit summary
 
Line 22: Line 22:
  Name of the source build or resource for the task. If '''kind''' is ''copy'', '''resource''' is the source for copying the package, and must be in format of ''<repo_name>:<package_name>'', for example ''sisyphus:GeoIP-ASNum''. If '''kind''' is ''repo'', the '''resourse''' is external git repo URI, which must match one of the values of [[Vridlo/types/Vcs|repo's]] '''filename''' field. If '''kind''' is ''srpm'',  the '''resourse''' is RPM file name, which must match to one of the presented in the [[Vridlo/types/Rpm|RPM]] field '''filename'''. If '''kind''' is ''delete'', the '''resourse''' must be blank.  
  Name of the source build or resource for the task. If '''kind''' is ''copy'', '''resource''' is the source for copying the package, and must be in format of ''<repo_name>:<package_name>'', for example ''sisyphus:GeoIP-ASNum''. If '''kind''' is ''repo'', the '''resourse''' is external git repo URI, which must match one of the values of [[Vridlo/types/Vcs|repo's]] '''filename''' field. If '''kind''' is ''srpm'',  the '''resourse''' is RPM file name, which must match to one of the presented in the [[Vridlo/types/Rpm|RPM]] field '''filename'''. If '''kind''' is ''delete'', the '''resourse''' must be blank.  


* '''sha''' is ''string[56] '''mandatory write-once'''''
* '''sha''' is ''string[56] '''optional write-once'''''
  [https://en.wikipedia.org/wiki/SHA-2 SHA2 224] 40-byted checksum over the [[Vridlo/types/Ref|referenced object]] matching the field '''sha''' in the [[Vridlo/types/Vcs|repo]]. It must be blank unless the '''kind''' is '''repo'''.  
  [https://en.wikipedia.org/wiki/SHA-2 SHA2 224] 40-byted checksum over the [[Vridlo/types/Ref|referenced object]] matching the field '''sha''' in the [[Vridlo/types/Vcs|repo]]. It must be blank unless the '''kind''' is '''repo'''.  


* '''approver_slugs''' is ''string array '''optional'''''
* '''approver_slugs''' is ''string array '''optional'''''
  Array of slugs of the subtask approver people in the context of the current assembler. The slug represents [[Vridlo/types/User|User]] structure, which is defined by a user's [[Vridlo/types/Recital|Recital]] record placed with the kind of ''login''.
  Array of slugs of the subtask approver people in the context of the current assembler. The slug represents [[Vridlo/types/User|User]] structure, which is defined by a user's [[Vridlo/types/Recital|Recital]] record placed with the kind of ''login''.

Latest revision as of 15:22, 24 December 2019

Exercise is a secondary structure that represents Exercise model, which is used for describing a subtask of the Assembler's task. It is described as:

  • no is natural mandatory write-once
Number of subtask in the task. Is unique per task in the context of the current assembler.
  • kind is string mandatory write-once
Kind of the subtask. Is one of repo, srpm, delete, copy.
  • app_slug is string mandatory write-once
Unique name of the application, which the RPM belongs to.
  • committer_slug is string mandatory write-once
The subtask committer slug in the context of the current assembler. The slug represents User structure, which is defined by a user's Recital record placed with the kind of login.
  • task_no is natural mandatory write-once
Task identifier in the context of the current assembler.
  • source_path_slug is string mandatory write-once
Slug of the source path, which the parent task belongs to. 
  • resource is string optional write-once
Name of the source build or resource for the task. If kind is copy, resource is the source for copying the package, and must be in format of <repo_name>:<package_name>, for example sisyphus:GeoIP-ASNum. If kind is repo, the resourse is external git repo URI, which must match one of the values of repo's filename field. If kind is srpm,  the resourse is RPM file name, which must match to one of the presented in the RPM field filename. If kind is delete, the resourse must be blank. 
  • sha is string[56] optional write-once
SHA2 224 40-byted checksum over the referenced object matching the field sha in the repo. It must be blank unless the kind is repo. 
  • approver_slugs is string array optional
Array of slugs of the subtask approver people in the context of the current assembler. The slug represents User structure, which is defined by a user's Recital record placed with the kind of login.