[JIRA] [core] (JENKINS-34079) Python pexpect process wrapped within a python script always timeout on lengthly process when running it via Jenkins (under "Execute Shell")

7 views
Skip to first unread message

tlian@us.ibm.com (JIRA)

unread,
Apr 6, 2016, 11:14:01 PM4/6/16
to jenkinsc...@googlegroups.com
Thawngzapum Lian created an issue
 
Jenkins / Bug JENKINS-34079
Python pexpect process wrapped within a python script always timeout on lengthly process when running it via Jenkins (under "Execute Shell")
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2016/Apr/07 3:13 AM
Environment: Red Hat Enterprise Linux Server release 7.2 (Maipo)
Jenkins Version 1.653

The aforementioned issue was not found in Version 1.579
Priority: Major Major
Reporter: Thawngzapum Lian

Python pexpect process wrapped in a python script always timeout on lengthy process when running it via Jenkins (under "Execute Shell").
The same script successfully ran when directly running it on console terminal.
Can Jenkins shell can be run under pseudo terminal slave (pts/N)?

Python script as run as below
python python-script.py --param1=<value> --param2=<value>

Python pexpect process was instantiated in python-script.py

Monitoring the process (Manual run vs. Jenkins run)
Jenkins run (Script did NOT run OK)
UID PID PPID C STIME TTY TIME CMD
root 11909 31184 0 21:52 ? 00:00:00 /bin/sh -xe /tmp/hudson2869108017601047728.sh

Manual Run (Script ran OK)
root 2356 18925 0 21:00 pts/0 00:00:01 /bin/sh -xe /tmp/hudson2869108017601047728.sh

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

tlian@us.ibm.com (JIRA)

unread,
Apr 6, 2016, 11:17:01 PM4/6/16
to jenkinsc...@googlegroups.com
Thawngzapum Lian updated an issue
Change By: Thawngzapum Lian
Please note that the aforementioned issue was not found in Version 1.579.
The issue surfaced after upgrade to Version 1.653

Python pexpect process wrapped in a python script always timeout on lengthy process when running it via Jenkins (under "Execute Shell").  
The same script successfully ran when directly running it on console terminal. 
Can Jenkins shell can be run under pseudo terminal slave (pts/N)?

Python script as run as below
python python-script.py --param1=<value> --param2=<value>

Python pexpect process was instantiated in python-script.py

Monitoring the process (Manual run vs. Jenkins run)
Jenkins run (Script did NOT run OK)
UID      PID      PPID   C   STIME  TTY     TIME       CMD
root     11909   31184  0   21:52     ?         00:00:00  /bin/sh -xe /tmp/hudson2869108017601047728.sh

Manual Run (Script ran OK)
root      2356 18925  0  21:00  pts/0    00:00:01  /bin/sh -xe /tmp/hudson2869108017601047728.sh

dbeck@cloudbees.com (JIRA)

unread,
Apr 18, 2016, 7:16:04 AM4/18/16
to jenkinsc...@googlegroups.com

lvshaoxia_123@163.com (JIRA)

unread,
Mar 23, 2020, 10:46:04 PM3/23/20
to jenkinsc...@googlegroups.com
Lv Shaoxia started work on Bug JENKINS-34079
 
Change By: Lv Shaoxia
Status: Open In Progress
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

lvshaoxia_123@163.com (JIRA)

unread,
Mar 23, 2020, 10:47:02 PM3/23/20
to jenkinsc...@googlegroups.com

lvshaoxia_123@163.com (JIRA)

unread,
Mar 23, 2020, 10:47:03 PM3/23/20
to jenkinsc...@googlegroups.com
Lv Shaoxia stopped work on Bug JENKINS-34079
 
Change By: Lv Shaoxia
Status: In Progress Open

lvshaoxia_123@163.com (JIRA)

unread,
Mar 23, 2020, 10:47:03 PM3/23/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages