Closed Bug 1157693 Opened 9 years ago Closed 9 years ago

Ability to exclude trees from being posted

Categories

(Developer Services :: Mercurial: bzpost, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ahal, Assigned: ahal)

References

Details

Attachments

(1 file, 1 obsolete file)

I don't want all my try pushes being recorded to bugs, especially when debugging automation only failures that require many pushes. There should be a way to exclude trees in the config, e.g:

[bzpost]
excludetrees = try,cedar
Attached file MozReview Request: bz://1157693/ahal (obsolete) —
/r/7501 - Bug 1157693 - [bzpost] Add ability to exclude trees, r=gps

Pull down this commit:

hg pull -r 2efa4e174e3c8678ec029a95ab369c6ad0aad0d1 https://reviewboard-hg.mozilla.org/version-control-tools/
Attachment #8596583 - Flags: review?(gps)
Please note, I *haven't* run the test yet because I get the following failure:
(venv)[~/.mozbuild/version-control-tools]$ pyenv local 2.7.8
(venv)[~/.mozbuild/version-control-tools]$ ./run-tests hgext/bzpost
Traceback (most recent call last):
  File "./run-tests", line 178, in <module>
    with docker.auto_clean_orphans():
  File "/usr/lib64/python2.7/contextlib.py", line 19, in __enter__
    raise RuntimeError("generator didn't yield")
RuntimeError: generator didn't yield

So please either run the test on my behalf or help me figure out why my test environment isn't working.

I did test this manually though. I added `excludetrees = try` and the following push did not post anything to this bug:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=cc0b78e01d70
The issue in comment #2 is fixed in the tip of version-control-tools. That error stems from not having Docker running. Not having Docker means tests requiring Docker will be skipped.
Comment on attachment 8596583 [details]
MozReview Request: bz://1157693/ahal

https://reviewboard.mozilla.org/r/7499/#review6403

There is a minor test failure that I'll fix and land for you.

Thanks for the patch!
Attachment #8596583 - Flags: review?(gps) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Attachment #8596583 - Attachment is obsolete: true
Attachment #8620134 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: