[Buildbot] #3031: gitlab change_status webhook doesn't properly detect changes

Buildbot trac trac at buildbot.net
Sun Nov 16 21:44:13 UTC 2014


#3031: gitlab change_status webhook doesn't properly detect changes
----------------------+------------------------
Reporter:  vlovich    |       Owner:
    Type:  undecided  |      Status:  new
Priority:  major      |   Milestone:  undecided
 Version:  0.8.9      |  Resolution:
Keywords:             |
----------------------+------------------------

Comment (by vlovich):

 Example payloads.

 Head reset to an existing commit:
 {{{
     {'user_id': 438,
      'repository': {
          'url': 'git@<repository>.git',
          'homepage': 'https://<gitlab url>',
          'name': '<project>',
          'description': None },
       'user_name': '<name>',
       'after': u'0734e36f1af7cce5dff46f8ebd5802c66839ecae',
       'total_commits_count': 0,
       'commits': [],
       'project_id': 534,
       'ref': 'refs/heads/<branch>',
       'before': u'afeebec3acdf0d2fc7d786f4f013e9bfc733305a'
     }
 }}}

 New branch:
 {{{
     {'user_id': 438,
      'repository': {
          'url': 'git@<repository>.git',
          'homepage': 'https://<gitlab url>',
          'name': '<project>',
          'description': None},
      'user_name': '<name>',
      'after': '0734e36f1af7cce5dff46f8ebd5802c66839ecae',
      'total_commits_count': 0,
      'commits': [],
      'project_id': 534,
      'ref': 'refs/heads/<branch>',
      'before': u'0000000000000000000000000000000000000000'}
 }}}

 Existing gitLab issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/490

 The reason I think buildbot needs to solve this is that gitlab might not
 be able to as what is the set of new commits when you reset the head?  I
 think the Gitlab webhook in buildbot should generate faux changes in this
 scenario.

--
Ticket URL: <http://trac.buildbot.net/ticket/3031#comment:1>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list