use of repo_poller in builders.pyl

9 views
Skip to first unread message

Mike Frysinger

unread,
Jun 2, 2016, 3:02:44 PM6/2/16
to infr...@chromium.org
i'm a bit puzzled by how repo_poller works.  the brillo builders.pyl has this:
  "schedulers": {
    "brillo_aosp_master_poller": {
      "type": "repo_poller",
      "branch": "master",
    },
  },

but https://android.googlesource.com/brillo isn't a git repo itself ... the manifest repo is here:
how does this work ?  the bot is running when there are changes ...

i ask because the weave builders.pyl has:
  "schedulers": {
    "weave_aosp_master_poller": {
      "type": "repo_poller",
      "branch": "master",
      "repo_url": "https://weave.googlesource.com/weave",
    },
  },
but the bot isn't auto firing.  i'm guessing i need to add "/manifest" to the end of the url.
-mike

Dirk Pranke

unread,
Jun 2, 2016, 3:25:17 PM6/2/16
to Mike Frysinger, Nodir Turakulov, infr...@chromium.org
I'm not sure offhand, as I wasn't too involved in adding the repo_poller support. 

Hopefully nodir@ knows ...

-- Dirk

--
You received this message because you are subscribed to the Google Groups "infra-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to infra-dev+...@chromium.org.
To post to this group, send email to infr...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/infra-dev/CAAbOScmmnKf4fobDsPOVv6HPXn2HBQEP8RJBuj7kxJkvHngnWg%40mail.gmail.com.

Ben Henry

unread,
Jun 6, 2016, 1:22:10 PM6/6/16
to Dirk Pranke, Mike Frysinger, Nodir Turakulov, dgar...@google.com, d...@google.com, infr...@chromium.org

Nodir Turakulov

unread,
Jun 6, 2016, 2:28:44 PM6/6/16
to Ben Henry, Dirk Pranke, Mike Frysinger, Nodir Turakulov, dgar...@google.com, d...@google.com, Dan Albert, infr...@chromium.org

Dan Albert

unread,
Jun 7, 2016, 1:31:01 PM6/7/16
to Nodir Turakulov, Ben Henry, Daniel Jacques, dgar...@google.com, infr...@chromium.org, Dirk Pranke, Mike Frysinger

I don't remember. Look at the ndk build config, it should give you an example (its manifest would be in blah/platform/manifest, so if it just says blah/platform then you don't need to append manifest).

Daniel Jacques

unread,
Jun 7, 2016, 5:17:39 PM6/7/16
to Dan Albert, Nodir Turakulov, Ben Henry, dgar...@google.com, infr...@chromium.org, Dirk Pranke, Mike Frysinger
Repo poller (source is here) is initialized from builders.pyl here. It is a BuildBot poller that performs a "repo init" on the specified manifest and then periodically issues "repo sync" for a set branches and punts changes for the difference in all of the referenced repositories.

Looking at the code, it runs "repo init" against "<repo_url>/manifest", so I don't think "manifest" should be included.

From OP: "but the bot isn't auto firing". Are changes not being recorded (leftmost column on waterfall), or are builds just not being executed? If the problem is the latter, it's possible that the change filter that you are using isn't matching the changes that are being punted (e.g., mismatched repository, branch, etc.).

Mike Frysinger

unread,
Jun 7, 2016, 5:36:34 PM6/7/16
to Daniel Jacques, Dan Albert, Nodir Turakulov, Ben Henry, dgar...@google.com, infr...@chromium.org, Dirk Pranke
the libiota repo does have restrict ACLs, and the vast majority of CLs are going in there.  what acct does the poller run as so i can make sure it has access to the weave GoB ?
-mike

Daniel Jacques

unread,
Jun 7, 2016, 5:48:49 PM6/7/16
to Mike Frysinger, Dan Albert, Nodir Turakulov, Ben Henry, dgar...@google.com, infr...@chromium.org, Dirk Pranke

It uses the default Git master account. I'd ping the trooper and ask them to get you that info, am not at a terminal ATM.

If there were errors, they should be logged in the buildbot logs, so that's something to check as well.

Mike Frysinger

unread,
Jun 7, 2016, 6:23:50 PM6/7/16
to Daniel Jacques, Dan Albert, Nodir Turakulov, Ben Henry, dgar...@google.com, infr...@chromium.org, Dirk Pranke
the buildbot itself can sync the repo ... i had a bug to get that to work :).  i assume the repo poller uses a different account from the buildbot though.
-mike

Daniel Jacques

unread,
Jun 7, 2016, 6:28:04 PM6/7/16
to Mike Frysinger, Dan Albert, Nodir Turakulov, Ben Henry, dgar...@google.com, infr...@chromium.org, Dirk Pranke

Yes, it's using the credentials on the master system.

Mike Frysinger

unread,
Jun 24, 2016, 2:58:52 PM6/24/16
to Daniel Jacques, Dan Albert, Nodir Turakulov, Ben Henry, dgar...@google.com, infr...@chromium.org, Dirk Pranke
Reply all
Reply to author
Forward
0 new messages