All our old branch results will have bad data. Boombatower suggests a script on d.o that runs to go through all of them and clean out and requeue.
all the code that does this now is in function pift_versioncontrol_git_refs_updated($repository, $refs)
so we just need to loop over all project releases...check if they are active
and then run that code
pift_test_requeue
so should be copy paste and add a loop around it
and delete te pift_test_add()
since we only want to requeue existing tests
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | clean_branches.php_.txt | 1.57 KB | rfay |
Comments
Comment #1
boombatower commentedHere is the sudo code that just needs the two magically functions replaced with project calls.
once cron is run (may require multiple runs since it stops after 100 requests or so per cron run) each branch test will be sent to qa.d.o
Comment #2
rfayI have a script at https://gist.github.com/835507 - it seems to do what's intended, but would like review.
Run it with drush
Thanks,
-Randy
Comment #3
boombatower commentedForked, no bugs just a simplification. I didn't execute since I don't have test environment, but seems to have filled in the missing items.
Comment #4
rfayOK, I tested it on my local and things seem to be fine, so I'll call this fixed. I'm attaching the script, but it will live on the github gist if anybody needs it. (That's editable and is a git repo)