Skip to content

config: check for duplicate service names#3814

Merged
tardyp merged 1 commit intobuildbot:masterfrom
rjarry:duplicate-services
Dec 27, 2017
Merged

config: check for duplicate service names#3814
tardyp merged 1 commit intobuildbot:masterfrom
rjarry:duplicate-services

Conversation

@rjarry
Copy link
Copy Markdown
Contributor

@rjarry rjarry commented Dec 8, 2017

Most services have a default name attribute. When instantiating the same service class multiple times (e.g. multiple email notifiers), if the user does not override the name, only the last service is actually
configured.

Make sure that all services have a unique name.

Fixes #3813

  • I have updated the unit tests
  • I have created a file in the master/buildbot/newsfragment directory (and read the README.txt in that directory)

@rjarry
Copy link
Copy Markdown
Contributor Author

rjarry commented Dec 18, 2017

The flake errors seem unrelated to my changes. Is this PR good for merge?

Most services have a default 'name' attribute. When instantiating the
same service class multiple times (e.g. multiple email notifiers), if
the user does not override the name, only the last service is actually
configured.

Make sure that all services have a unique name.

Signed-off-by: Robin Jarry <robin@jarry.cc>
@rjarry rjarry force-pushed the duplicate-services branch from 1afb761 to a487b31 Compare December 18, 2017 09:41
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 18, 2017

Codecov Report

Merging #3814 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3814      +/-   ##
==========================================
+ Coverage   88.49%   88.49%   +<.01%     
==========================================
  Files         323      323              
  Lines       34059    34062       +3     
==========================================
+ Hits        30139    30142       +3     
  Misses       3920     3920
Impacted Files Coverage Δ
master/buildbot/config.py 98.42% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a3ed19...a487b31. Read the comment docs.

@tardyp tardyp merged commit b9e15df into buildbot:master Dec 27, 2017
@rjarry rjarry deleted the duplicate-services branch December 30, 2017 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants