Re: [QGIS-Developer] Woohoo! Interactive Travis debugging

2018-10-18 Thread Nyall Dawson
On Fri, 12 Oct 2018 at 09:19, Nyall Dawson  wrote:
>
> On Tue, 9 Oct 2018 at 19:18, Nyall Dawson  wrote:
> >
> > Hey all,
>
> >
> > #! /usr/bin/env bash
> >   curl -s -X POST \
> >-H "Content-Type: application/json" \
> >-H "Accept: application/json" \
> >-H "Travis-API-Version: 3" \
> >-H "Authorization: token " \
> >-d '{ "quiet": true }' \
> >https://api.travis-ci.org/job//debug
> >
>
>
> Just a follow up here. Turns out the default configuration (shown
> above) is limited to a 30 minute timeout, which isn't enough to get
> all the dependencies installed and QGIS built, let alone leaving time
> for debugging ;)
>
> After some discussion with Travis staff (who have been fantastic, I've
> got to say!), there's a workaround. By changing "quiet": true to
> "quiet": false, the interactive session is subject to the normal 90(+)
> minute timeout. The side effect is that all the commands entered are
> visible to anyone looking at the Travis log, so be careful not to do
> this with any sensitive information.

A followup to my followup: Travis staff made changes based on our
feedback and now the interactive build timeout matches the normal
build, so it's possible to run in quiet mode and still get the full
timeout.

I know in past there's been frustration directed to the Travis CI
infrastructure when things fail, but full credit to them-- every time
one of us has asked something of them, they've been super receptive
and accommodating to our needs. Pretty damn decent service consider
how much we (don't) pay them!

Nyall
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Woohoo! Interactive Travis debugging

2018-10-11 Thread Alessandro Pasotti
Hi Nyall,

thanks for this useful information!

Do we have a place to store it? Developer docs maybe?



On Fri, Oct 12, 2018 at 1:20 AM Nyall Dawson  wrote:

> On Tue, 9 Oct 2018 at 19:18, Nyall Dawson  wrote:
> >
> > Hey all,
>
> >
> > #! /usr/bin/env bash
> >   curl -s -X POST \
> >-H "Content-Type: application/json" \
> >-H "Accept: application/json" \
> >-H "Travis-API-Version: 3" \
> >-H "Authorization: token " \
> >-d '{ "quiet": true }' \
> >https://api.travis-ci.org/job//debug
> >
>
>
> Just a follow up here. Turns out the default configuration (shown
> above) is limited to a 30 minute timeout, which isn't enough to get
> all the dependencies installed and QGIS built, let alone leaving time
> for debugging ;)
>
> After some discussion with Travis staff (who have been fantastic, I've
> got to say!), there's a workaround. By changing "quiet": true to
> "quiet": false, the interactive session is subject to the normal 90(+)
> minute timeout. The side effect is that all the commands entered are
> visible to anyone looking at the Travis log, so be careful not to do
> this with any sensitive information.
>
> The command is full is:
>
> #! /usr/bin/env bash
>   curl -s -X POST \
>-H "Content-Type: application/json" \
>-H "Accept: application/json" \
>-H "Travis-API-Version: 3" \
>-H "Authorization: token " \
>-d '{ "quiet": false }' \
>https://api.travis-ci.org/job//debug
>
>
> Nyall
>
>
> > The Job ID is displayed in the build log after expanding "Build system
> > information".
> >
> > 2. Head back to the web UI and in the log of your job. There you
> > should see the following lines to connect to the VM:
> >
> > Setting up debug tools.
> > Preparing debug sessions.
> > Use the following SSH command to access the interactive debugging
> environment:
> > ssh ukjiucekxbbnrae32y8xch...@ny2.tmate.io
> >
> > 3. Connect from your computer using SSH into the interactive session,
> > and once you're done, just type exit and your build will terminate.
> >
> > Once in the SSH session, these bash functions will come in handy to
> > run the different phases in your build:
> >
> https://docs.travis-ci.com/user/running-build-in-debug-mode/#Things-to-do-once-you-are-inside-the-debug-VM
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Alessandro Pasotti
w3:   www.itopen.it
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Woohoo! Interactive Travis debugging

2018-10-11 Thread Nyall Dawson
On Tue, 9 Oct 2018 at 19:18, Nyall Dawson  wrote:
>
> Hey all,

>
> #! /usr/bin/env bash
>   curl -s -X POST \
>-H "Content-Type: application/json" \
>-H "Accept: application/json" \
>-H "Travis-API-Version: 3" \
>-H "Authorization: token " \
>-d '{ "quiet": true }' \
>https://api.travis-ci.org/job//debug
>


Just a follow up here. Turns out the default configuration (shown
above) is limited to a 30 minute timeout, which isn't enough to get
all the dependencies installed and QGIS built, let alone leaving time
for debugging ;)

After some discussion with Travis staff (who have been fantastic, I've
got to say!), there's a workaround. By changing "quiet": true to
"quiet": false, the interactive session is subject to the normal 90(+)
minute timeout. The side effect is that all the commands entered are
visible to anyone looking at the Travis log, so be careful not to do
this with any sensitive information.

The command is full is:

#! /usr/bin/env bash
  curl -s -X POST \
   -H "Content-Type: application/json" \
   -H "Accept: application/json" \
   -H "Travis-API-Version: 3" \
   -H "Authorization: token " \
   -d '{ "quiet": false }' \
   https://api.travis-ci.org/job//debug


Nyall


> The Job ID is displayed in the build log after expanding "Build system
> information".
>
> 2. Head back to the web UI and in the log of your job. There you
> should see the following lines to connect to the VM:
>
> Setting up debug tools.
> Preparing debug sessions.
> Use the following SSH command to access the interactive debugging environment:
> ssh ukjiucekxbbnrae32y8xch...@ny2.tmate.io
>
> 3. Connect from your computer using SSH into the interactive session,
> and once you're done, just type exit and your build will terminate.
>
> Once in the SSH session, these bash functions will come in handy to
> run the different phases in your build:
> https://docs.travis-ci.com/user/running-build-in-debug-mode/#Things-to-do-once-you-are-inside-the-debug-VM
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Woohoo! Interactive Travis debugging

2018-10-10 Thread Denis Rouzaud
Hey awesome!
Thanks for the pointer...

Le mar. 9 oct. 2018 à 05:18, Nyall Dawson  a écrit :

>
> The Job ID is displayed in the build log after expanding "Build system
> information".
>

or just in the URL ;)

>
> Once in the SSH session, these bash functions will come in handy to
> run the different phases in your build:
>
> https://docs.travis-ci.com/user/running-build-in-debug-mode/#Things-to-do-once-you-are-inside-the-debug-VM


I have been testing it and the main issue I had is that you cannot access
/root...
Or am I missing something?

Cheers,
Denis

-- 

Denis Rouzaud
de...@opengis.ch  
+41 76 370 21 22
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Woohoo! Interactive Travis debugging

2018-10-09 Thread Nyall Dawson
Hey all,

Good news -- interactive debugging is now available on our Travis
account, which means that it's now possible to remotely login and
interactively run tests on Travis builds! This should save a stack of
frustration when things just don't act the same on Travis as they do
locally.

Quoting the email from Travis:

"Now you can start restarting your builds in Debug mode with an API
request. To trigger a debug job:

0. Get your API token from your profile page at: https://travis-ci.org/profile

1. Send a POST request to /job/:job_id/debug replacing the TOKEN and
JOB_ID values below:

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

The Job ID is displayed in the build log after expanding "Build system
information".

2. Head back to the web UI and in the log of your job. There you
should see the following lines to connect to the VM:

Setting up debug tools.
Preparing debug sessions.
Use the following SSH command to access the interactive debugging environment:
ssh ukjiucekxbbnrae32y8xch...@ny2.tmate.io

3. Connect from your computer using SSH into the interactive session,
and once you're done, just type exit and your build will terminate.

Once in the SSH session, these bash functions will come in handy to
run the different phases in your build:
https://docs.travis-ci.com/user/running-build-in-debug-mode/#Things-to-do-once-you-are-inside-the-debug-VM
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer