You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by "Dominic Kim (Confluence)" <no...@apache.org> on 2021/01/13 03:47:11 UTC

[CONF] OpenWhisk > How to run a Travis job in a debug mode.

|
[![](cid:avatar_667f47ce4ae6e3a298471a84d4c64230)](https://cwiki.apache.org/confluence/display/~style95?src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1610509631700&src.mail.notification=com.atlassian.confluence.plugins.confluence-
content-notifications-plugin%3Apage-created-
notification&src.mail.recipient=8aa980875bf24635015c9267bc8e02f6) | Dominic
Kim **created** a page  
---|---  
|  
---  
|  | [![page icon](cid:page-
icon)](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=173082579&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1610509631700&src.mail.notification=com.atlassian.confluence.plugins.confluence-
content-notifications-plugin%3Apage-created-
notification&src.mail.recipient=8aa980875bf24635015c9267bc8e02f6&src.mail.action=view
"page icon")  
---  
[How to run a Travis job in a debug
mode.](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=173082579&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1610509631700&src.mail.notification=com.atlassian.confluence.plugins.confluence-
content-notifications-plugin%3Apage-created-
notification&src.mail.recipient=8aa980875bf24635015c9267bc8e02f6&src.mail.action=view
"How to run a Travis job in a debug mode.")  
|

Currently, the debug mode is only enabled for the _apache/openwhisk_
repository.

If you want to enable it for another repository, you need to send a request to
[support@travis-ci.com](mailto:support@travis-ci.com).

Find more information about it here: <https://docs.travis-ci.com/user/running-
build-in-debug-mode/#enabling-debug-mode>

  

#  Copy the API token

You can copy your API token at <https://travis-ci.com/profile>.

  

![](https://cwiki.apache.org/confluence/download/attachments/embedded-
page/OPENWHISK/How%20to%20run%20a%20Travis%20job%20in%20a%20debug%20mode./image2021-1-13_12-36-1.png?api=v2)

  

#  Find the Travis job ID.

The job ID is available in the build system information in the job log.

  

![](https://cwiki.apache.org/confluence/download/attachments/embedded-
page/OPENWHISK/How%20to%20run%20a%20Travis%20job%20in%20a%20debug%20mode./image2021-1-13_12-37-39.png?api=v2)

  

#  Run the job with the debug mode enabled.

You can call the rest API to run a job with the debug mode.

  

You can use the following script.

    
    
    #! /usr/bin/env bash
    echo "JOB_ID: $1"
    
    curl -s -X POST \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Travis-API-Version: 3" \
    -H "Authorization: token ${YOUR_API_TOKEN}" \
    -d '{ "quiet": true }' \
    https://api.travis-ci.com/job/$1/debug
    
    
    $ ./run-travis-debug-job.sh 469779501

  
Connect to the VM.

You can find the ssh command with an endpoint in the job log.

![](https://cwiki.apache.org/confluence/download/attachments/embedded-
page/OPENWHISK/How%20to%20run%20a%20Travis%20job%20in%20a%20debug%20mode./image2021-1-13_12-41-16.png?api=v2)

  

You can simply copy and paste the command.

    
    
    $ ssh 7n6TwDcB5N6F6CZVZf9Meuuwk@nyc1.tmate.io

You got into the Travis VM now : )

Generally, you may want to follow the steps in
[.travis.yml#L56](https://github.com/apache/openwhisk/blob/master/.travis.yml#L56)
to debug CI tests.

  
  
  
---  
|  | [![View page Icon](cid:com.atlassian.confluence.plugins.confluence-email-
resources_view-page-email-adg-footer-
item_icon)](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=173082579&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1610509631700&src.mail.notification=com.atlassian.confluence.plugins.confluence-
content-notifications-plugin%3Apage-created-
notification&src.mail.recipient=8aa980875bf24635015c9267bc8e02f6&src.mail.action=view
"View page Icon") | [View
page](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=173082579&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1610509631700&src.mail.notification=com.atlassian.confluence.plugins.confluence-
content-notifications-plugin%3Apage-created-
notification&src.mail.recipient=8aa980875bf24635015c9267bc8e02f6&src.mail.action=view
"View page") | •  
---|---|---  
[![Like Icon](cid:com.atlassian.confluence.plugins.confluence-like_view-email-
adg-content-
item_icon)](https://cwiki.apache.org/confluence/plugins/likes/like.action?contentId=173082579&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1610509631700&src.mail.notification=com.atlassian.confluence.plugins.confluence-
content-notifications-plugin%3Apage-created-
notification&src.mail.recipient=8aa980875bf24635015c9267bc8e02f6&src.mail.action=like&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ4c3JmOjhhYTk4MDg3NWJmMjQ2MzUwMTVjOTI2N2JjOGUwMmY2IiwicXNoIjoiZWZjZjEzNWQyMjU0OWZmYWIxNWZlYmY2Y2FhZWRiZjBiNTdmM2Q3ZThhYTE2Y2I1MjI2MmIxOWY4YjQwNjFlNSIsImlzcyI6ImNvbmZsdWVuY2Vfbm90aWZpY2F0aW9uc0FSRUgtWFVEMS1QT1FHLUNTQU8iLCJleHAiOjE2MTExMTQ0MzEsImlhdCI6MTYxMDUwOTYzMX0.iTVSepgV57DEG_Bz6c-FRdRnSR7YDIvu3J2TJdDri-I
"Like Icon") |
[Like](https://cwiki.apache.org/confluence/plugins/likes/like.action?contentId=173082579&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1610509631700&src.mail.notification=com.atlassian.confluence.plugins.confluence-
content-notifications-plugin%3Apage-created-
notification&src.mail.recipient=8aa980875bf24635015c9267bc8e02f6&src.mail.action=like&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ4c3JmOjhhYTk4MDg3NWJmMjQ2MzUwMTVjOTI2N2JjOGUwMmY2IiwicXNoIjoiZWZjZjEzNWQyMjU0OWZmYWIxNWZlYmY2Y2FhZWRiZjBiNTdmM2Q3ZThhYTE2Y2I1MjI2MmIxOWY4YjQwNjFlNSIsImlzcyI6ImNvbmZsdWVuY2Vfbm90aWZpY2F0aW9uc0FSRUgtWFVEMS1QT1FHLUNTQU8iLCJleHAiOjE2MTExMTQ0MzEsImlhdCI6MTYxMDUwOTYzMX0.iTVSepgV57DEG_Bz6c-FRdRnSR7YDIvu3J2TJdDri-I
"Like")  
---|---  
  
|  | [Stop watching
space](https://cwiki.apache.org/confluence/users/removespacenotification.action?spaceKey=OPENWHISK&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1610509631700&src.mail.notification=com.atlassian.confluence.plugins.confluence-
content-notifications-plugin%3Apage-created-
notification&src.mail.recipient=8aa980875bf24635015c9267bc8e02f6&src.mail.action=stop-
watching&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ4c3JmOjhhYTk4MDg3NWJmMjQ2MzUwMTVjOTI2N2JjOGUwMmY2IiwicXNoIjoiYjcwYzAzYWU2M2VhMWQzODQ2ZDA1MjgzNDE4NTVjYzVhNzI0OWEzOWE5Zjc0ZGRkZDI5ZTUxNDVhNTA1ZmE1MCIsImlzcyI6ImNvbmZsdWVuY2Vfbm90aWZpY2F0aW9uc0FSRUgtWFVEMS1QT1FHLUNTQU8iLCJleHAiOjE2MTExMTQ0MzEsImlhdCI6MTYxMDUwOTYzMX0.aW2hTpnxjGKkv9CNd4aJ2iRBPSyhvuA_eg38jv-
OCDM) | •  
---|---  
[Manage
notifications](https://cwiki.apache.org/confluence/users/editmyemailsettings.action?src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1610509631700&src.mail.notification=com.atlassian.confluence.plugins.confluence-
content-notifications-plugin%3Apage-created-
notification&src.mail.recipient=8aa980875bf24635015c9267bc8e02f6&src.mail.action=manage)  
---  
| ![Confluence logo big](cid:footer-desktop-logo)  
---  
This message was sent by Atlassian Confluence 7.5.0  
![](cid:footer-mobile-logo)  
---