#1958 Update scripts/git-unmerged to check ticket status

v1.0.0
closed
sf-4 (350)
General
nobody
2015-08-20
2011-04-14
No

Update general functionality

  • select branches whose name matches our ticket pattern
  • look up the ticket and check the status

Write a test that can:

  • ignores open tickets
  • print any closed ticket-branches, and fail
  • add to hudson

would be nice if this could run for all our repos (3 for allura, also sfpy & sfx)

Discussion

  • Wolf - 2011-04-21

    so this would fail for the unmerged branches of closed tickets?

     
  • Dave Brondsema

    Dave Brondsema - 2011-04-21

    That's the idea

     
  • Wolf - 2011-06-13
    • assigned_to: Wolf
     
  • Wolf - 2011-06-27
    • assigned_to: Wolf --> Dave Brondsema
    • size: --> 4
     
  • Wolf - 2011-06-27

    forge:dev -- scripts/test-branches-against-tickets.py

    requires oauth credentials to run and will use the ones it finds in ~/.forgepushrc.

    prints message for each branch that does not match its ticket's state, e.g., closed ticket does not match unmerged branch; open ticket does not match merged branch. If there were mismatches, exists with status 1. This script will make you want to delete branches sooner. It is suitable to be used as a test in Hudson. It will work on whatever repository your working dir is in when you run it. It always uses tickets from sf.net/p/allura/tickets/.

    Output looks like this

    <http://sf.net/p/allura/tickets/2068/> is status:"closed", but the branch "origin/wo/2068" is unmerged
    <http://sf.net/p/allura/tickets/2229/> is status:"closed", but the branch "origin/js/2229" is unmerged
    <http://sf.net/p/allura/tickets/2186/> is status:"invalid", but the branch "origin/db/2186" is merged
    <http://sf.net/p/allura/tickets/2180/> is status:"closed", but the branch "origin/rc/2180" is unmerged
    

    ...wrapping supplied by Allura, sorry. That doesn't happen when you run it.

     
  • Dave Brondsema

    Dave Brondsema - 2011-06-29
    • milestone: limbo --> jul-01
     
  • Dave Brondsema

    Dave Brondsema - 2011-06-30
    • status: code-review --> closed
     

Log in to post a comment.