Bug 42861

Summary: Несоответствие информации о задании girar и git.altlinux.org
Product: Infrastructure Reporter: Sergey Novikov <sotor>
Component: girarAssignee: placeholder <placeholder>
Status: NEW --- QA Contact: Andrey Cherepanov <cas>
Severity: critical    
Priority: P5 CC: glebfm, ldv
Version: unspecified   
Hardware: x86_64   
OS: Linux   

Description Sergey Novikov 2022-05-25 18:37:33 MSK
Информация о дисапрувах для некоторых тасков, запрашиваемая с https://git.altlinux.org/tasks/XXXXXX/info.json, не соответствует реальной информации с получаемой с girar.

Например:
$ curl https://git.altlinux.org/tasks/258650/info.json
{
 "taskid": 258650,
 "shared": false,
 "test_only": false,
 "repo": "p9",
 "state": "EPERM",
 "try": 1,
 "iter": 1,
 "owner": "boyarsh",
 "subtasks": {
  "100": {
   "dir": "/gears/m/mkfontscale.git",
   "tag_name": "1.2.1-alt2",
   "tag_id": "47871a3722d2878995054b86ed085f8b993439c4",
   "tag_author": "shrek@altlinux.ru (Valery Inozemtsev) <shrek@altlinux.org>",
   "type": "repo",
   "approved_by": ["boyarsh"],
   "pkgname": "mkfontscale",
   "userid": "boyarsh"
  }
 }
}

Дисапрува нет.

ssh girar task show 258650
id=258650 locked=no shared=no fail_early=yes test_only=no repo=p9 owner=boyarsh state=EPERM try=1 iter=1 age=86w build_time=2020-Sep-25/09:58:06 message=fix_for_dist-upgrade_from_c8.1
 100:dir=/gears/m/mkfontscale.git
 100:tag_name=1.2.1-alt2
 100:tag_id=47871a3722d2878995054b86ed085f8b993439c4
 100:tag_author=shrek@altlinux.ru (Valery Inozemtsev) <shrek@altlinux.org>
 100:fetched=2020-09-25T09:53:49
 100:userid=boyarsh
 100:approved_by=boyarsh 
 100:disapproved_by=sotor 
 100:pkgname=mkfontscale

Дисапрув есть.
Comment 1 Sergey Novikov 2022-05-25 18:52:04 MSK
Такое же поведение на тасках:
257007, 256804, 256688, 253154, 250078, 248508, 247568, 241103, 239678.
Comment 2 Dmitry V. Levin 2022-05-25 18:54:12 MSK
commit 6182299d76dea6e9ae3295be7b24d33352267911 updates index.html and info.json files only if the task is not locked.  I wonder why I implemented it this way.