missing or misnamed (!=bzr_identity) branch config in tarmac.conf yields confusing behavior

Bug #1304059 reported by David Britton
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Tarmac
Fix Released
High
dobey

Bug Description

If you run tarmac like this:

tarmac -v -d lp:~user/project/branch

But tarmac thinks the branch is "lp:project" (the bzr_identity), you get confusing results. Branches get landed without any settings applied to them. Like the 'verify_command', bugresolver, commit message plugins, all don't load and happily appear to succeed (without doing anything).

It's even worse if the 'BRANCH_URL' is unspecified on the command line and multiple branches are used in the config, since then you can get the case where you think your config is correct (tarmac is attempting to land that branch), but it can't read any of the config settings.

Related branches

David Britton (dpb)
description: updated
Revision history for this message
Samuele Pedroni (pedronis) wrote :

this is indeed actually confusing,

if a branch is configured as

[lp:~tanuki/uservice-logging/trunk]
...

instead of (using bzr_identiy)

[lp:uservice-logging]
...

tarmac will happily merge branches but use an empty config so no verify_command is run and no tweaked commit message etc

I think it should either fail to merge (reporting it like any other pre merge failure) or use the config

summary: - missing branch config in tarmac.conf yields confusing behavior
+ missing or misnamed (!=bzr_identity) branch config in tarmac.conf yields
+ confusing behavior
dobey (dobey)
Changed in tarmac:
status: New → Triaged
importance: Undecided → High
dobey (dobey)
Changed in tarmac:
assignee: nobody → Rodney Dawes (dobey)
status: Triaged → In Progress
Changed in tarmac:
status: In Progress → Fix Committed
dobey (dobey)
Changed in tarmac:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.