Opened 6 years ago

Last modified 4 years ago

#56028 new defect

Buildbot: Save port version, variants and commit that the port being built belongs to

Reported by: mojca (Mojca Miklavec) Owned by: admin@…
Priority: Normal Milestone:
Component: buildbot/mpbb Version:
Keywords: Cc:
Port:

Description

While trying to extract some statistics it turned out that it's somewhat non-trivial to:

  • extract the port version and variants of the current build (without downloading and parsing tons of logs)
  • figure out which commit the port actually belongs to (as well as which commit was used for portindex)
    • it can be that 10 commits were made at the same time and it would be handy to have a link to git commit that was actually used (which one of those 10 commits did it come from?); additionally it may be that the port was modified by a later commit, so we probably need to execute something like git log <path/to/portdir> and extract the commit info from there

mpbb would need to return that information and buildbot master should probably store it in properties or somewhere else to make it easily accessible.

Change History (2)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

mpbb has been updated to return the port version and port revision. In the buildbot 2 configuration, this is being used to set portversion and portrevision properties of the portbuilder builds. Having a property for the port variants would be good too but I haven't looked into how to modify mpbb to return that.

The portdir's latest commit could be added as a property. Why do you need to know this though?

comment:2 in reply to:  1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign:

The portdir's latest commit could be added as a property.

mpbb-port-commit added and portcommit property added to buildbot 2 config.

Note: See TracTickets for help on using tickets.