Last modified: 2014-11-12 22:56:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T75334, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73334 - Create new "Travis Bot" gerrit group
Create new "Travis Bot" gerrit group
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Git/Gerrit (Other open bugs)
wmf-deployment
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-12 22:35 UTC by C. Scott Ananian
Modified: 2014-11-12 22:56 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description C. Scott Ananian 2014-11-12 22:35:14 UTC
I'm prototyping travis integration for gerrit.

Code written is here: https://github.com/cscott/npm-travis

The idea is that a jenkins job will push to a temporary branch in gerrit in order to trigger a travis build, via the normal gerrit/github sync mechanism.  (This is better than pushing directly to a branch on the github mirror, because "If true, replication will remove remote branches that are absent locally or invisible to the replication (for example read access denied via authGroup option)" according to ^demon, which means the temporary branch could be wiped out if replication happens while the travis build is running.)

I've tested this for the mw-ocg-bundler project, it seems to work well when run manually.

The plan is to integrate it into jenkins using a new 'wmftravis' wikitech user, which will have force-push permissions in gerrit only to refs/heads/npm-travis/* branches, and only for projects which use the npm-travis integration.

But project permissions can't be given to users, only to groups.  Hence this bug: I'd like a "Travis Bot" gerrit group created, with 'wmftravis' as its only member (the latter for testing/debugging purposes).  For a gerrit admin this can be done with https://gerrit.wikimedia.org/r/#/admin/create-group/ apparently.
Comment 1 christian 2014-11-12 22:42:05 UTC
I created the group [1], but I cannot find the wmftravis user.

https://wikitech.wikimedia.org/wiki/User:Wmftravis

says:

  User account "Wmftravis" is not registered. 



[1] https://gerrit.wikimedia.org/r/#/admin/groups/902,info
Comment 2 C. Scott Ananian 2014-11-12 22:45:47 UTC
I created the gerrit user 'npmtravis'.  (The name 'wmftravis' apparently violates some rule on account naming, so https://www.mediawiki.org/wiki/Developer_access wouldn't let me create a user with that name.)
Comment 3 C. Scott Ananian 2014-11-12 22:48:31 UTC
(Thanks, christian, btw.)

So now I just need 'npmtravis' added to the group.
Comment 4 christian 2014-11-12 22:56:49 UTC
I added npmtravis to the group.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links