Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the usePTY feature #3054

Merged
merged 3 commits into from Mar 21, 2017
Merged

fix the usePTY feature #3054

merged 3 commits into from Mar 21, 2017

Conversation

tardyp
Copy link
Member

@tardyp tardyp commented Mar 20, 2017

some people have reported the usePTY feature to not work.
This is a unit test and integration test to make sure it actually works

test is only for posix

@mention-bot
Copy link

@tardyp, thanks for your PR! By analyzing the history of the files in this pull request, we identified @warner, @rutsky and @rodrigc to be potential reviewers.

@@ -248,7 +248,7 @@ def buildCommandKwargs(self, warnings):

# check for the usePTY flag
if 'usePTY' in kwargs and kwargs['usePTY'] is not None:
if self.workerVersionIsOlderThan("svn", "2.7"):
if self.workerVersionIsOlderThan("shell", "2.7"):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shall not change anything as buildbot worker advertise versions for '*', just fix it for coherency

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, reporter says that this change did matter.
because there is no "svn" command anymore in the worker package
I looked for other lines with the same problem, and there is none.

some people have reported the usePTY feature to not work.
This is a unit test and integration test to make sure it actually works

test is only for posix
@codecov
Copy link

codecov bot commented Mar 20, 2017

Codecov Report

Merging #3054 into master will decrease coverage by 0.28%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #3054      +/-   ##
=========================================
- Coverage   88.28%     88%   -0.29%     
=========================================
  Files         314     314              
  Lines       32899   32899              
=========================================
- Hits        29046   28952      -94     
- Misses       3853    3947      +94
Impacted Files Coverage Δ
master/buildbot/steps/shell.py 97.44% <100%> (ø) ⬆️
worker/buildbot_worker/commands/utils.py 85% <0%> (-15%) ⬇️
worker/buildbot_worker/commands/fs.py 79.05% <0%> (-10.82%) ⬇️
worker/buildbot_worker/runprocess.py 75.59% <0%> (-7.71%) ⬇️
worker/buildbot_worker/monkeypatches/__init__.py 92.3% <0%> (-7.7%) ⬇️
master/buildbot/steps/master.py 91.78% <0%> (-5.48%) ⬇️
master/buildbot/util/maildir.py 78.04% <0%> (-4.88%) ⬇️
master/buildbot/buildbot_net_usage_data.py 75% <0%> (-4.17%) ⬇️
master/buildbot/monkeypatches/__init__.py 85.71% <0%> (-3.58%) ⬇️
master/buildbot/scripts/base.py 92.06% <0%> (-1.59%) ⬇️
... and 5 more

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 f0c7b74...a3da1d9. Read the comment docs.



# This integration test creates a master and worker environment,
# with one builders and a shellcommand step
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"with one builders"

@tardyp tardyp changed the title add more tests for the usePTY feature fix the usePTY feature Mar 21, 2017
@tardyp tardyp merged commit ffc6ba6 into buildbot:master Mar 21, 2017
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.

None yet

3 participants