changing name of 'branch' parameter so it isn't squashed in buildbot. Fixes T933
ClosedPublic

Authored by tflink on Mar 29 2017, 9:45 PM.

Details

Summary

Simple change to use a parameter name that isn't squashed by buildbot

fixing arcconfig so it doesn't blow up

Test Plan

run trigger, see that 'branch' has been replaced by 'distgit_branch'. This code is hacked into stg ATM

Diff Detail

Repository
rTRGR taskotron-trigger
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
tflink created this revision.Mar 29 2017, 9:45 PM
jskladan requested changes to this revision.Mar 30 2017, 8:01 AM

Apart of the comments below, I'd like to see the testsuite updated to reflect the changes, I don't see how this could pass unittests.

.arcconfig
6 ↗(On Diff #3006)

Is this really supposed to be removed? Not that I understand the arcconfig that much, but does this not plain disable pytest?

jobtriggers/jobtrigger.py
83

Since this is not really dist-git specific, I'd rather have the name be git_branch, and changed the repo to git_repo for the sake of consistency.

This revision now requires changes to proceed.Mar 30 2017, 8:01 AM
tflink planned changes to this revision.Mar 30 2017, 2:17 PM
tflink added inline comments.
.arcconfig
6 ↗(On Diff #3006)

I'm really not sure how I came to the conclusion but I was convinced that there was no test suite and that this needed to be removed in order to submit the diff.

Thanks for catching this, will fix

jobtriggers/jobtrigger.py
83

sounds good

tflink updated this revision to Diff 3007.Mar 30 2017, 2:25 PM
  • fixing test suite, addressing comments in review

Looks good, but leaving to @jskladan for ack.

jskladan accepted this revision.Apr 3 2017, 1:40 PM

I'd like to have the task['repo'] changed to task['git_repo'] for the sake of consistency, but it is not a huge issue. Looks good other than this nitpick.

This revision is now accepted and ready to land.Apr 3 2017, 1:40 PM
tflink updated this revision to Diff 3008.Apr 3 2017, 1:45 PM
  • changing repo to git_repo per review
This revision was automatically updated to reflect the committed changes.