Skip to content

Instantly share code, notes, and snippets.

@kcramer
Last active July 5, 2018 15:24
Show Gist options
  • Save kcramer/fac9d623674e39515b235bb6f35c53ee to your computer and use it in GitHub Desktop.
Save kcramer/fac9d623674e39515b235bb6f35c53ee to your computer and use it in GitHub Desktop.
jupyterlab Travis Build 11092.7 Failure
Worker information
hostname: 65a4a462-6335-4697-b62c-7ebdfa8efe08@1.production-1-worker-org-f-1-gce
version: v3.8.2 https://github.com/travis-ci/worker/tree/c370f713bb4195cce20cdc6ce3e62f26b8cf3961
instance: travis-job-5bd57af1-7449-4778-81d3-f4aff54f6ef6 travis-ci-garnet-trusty-1512502259-986baf0 (via amqp)
startup: 27.831301191s
system_info
Build system information
Build language: python
Build group: stable
Build dist: trusty
Build id: 400428213
Job id: 400428220
Runtime kernel version: 4.4.0-101-generic
travis-build version: db9c557a0
Build image provisioning date and time
Tue Dec 5 19:58:13 UTC 2017
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
Cookbooks Version
7c2c6a6 https://github.com/travis-ci/travis-cookbooks/tree/7c2c6a6
git version
git version 2.15.1
bash version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
gcc version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
docker version
Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:42:38 2017
OS/Arch: linux/amd64
Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:41:20 2017
OS/Arch: linux/amd64
Experimental: false
clang version
clang version 5.0.0 (tags/RELEASE_500/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-5.0.0/bin
jq version
jq-1.5
bats version
Bats 0.4.0
shellcheck version
0.4.6
shfmt version
v2.0.0
ccache version
ccache version 3.1.9
Copyright (C) 2002-2007 Andrew Tridgell
Copyright (C) 2009-2011 Joel Rosdahl
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 3 of the License, or (at your option) any later
version.
cmake version
cmake version 3.9.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
heroku version
heroku-cli/6.14.39-addc925 (linux-x64) node-v9.2.0
imagemagick version
Version: ImageMagick 6.7.7-10 2017-07-31 Q16 http://www.imagemagick.org
md5deep version
4.2
mercurial version
Mercurial Distributed SCM (version 4.2.2)
(see https://mercurial-scm.org for more information)
Copyright (C) 2005-2017 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
mysql version
mysql Ver 14.14 Distrib 5.6.33, for debian-linux-gnu (x86_64) using EditLine wrapper
openssl version
OpenSSL 1.0.1f 6 Jan 2014
packer version
Packer v1.0.2
Your version of Packer is out of date! The latest version
is 1.1.2. You can update by downloading from www.packer.io
postgresql client version
psql (PostgreSQL) 9.6.6
ragel version
Ragel State Machine Compiler version 6.8 Feb 2013
Copyright (c) 2001-2009 by Adrian Thurston
subversion version
svn, version 1.8.8 (r1568071)
compiled Aug 10 2017, 17:20:39 on x86_64-pc-linux-gnu
Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- using serf 1.3.3
- handles 'http' scheme
- handles 'https' scheme
sudo version
Sudo version 1.8.9p5
Configure options: --prefix=/usr -v --with-all-insults --with-pam --with-fqdn --with-logging=syslog --with-logfac=authpriv --with-env-editor --with-editor=/usr/bin/editor --with-timeout=15 --with-password-timeout=0 --with-passprompt=[sudo] password for %p: --without-lecture --with-tty-tickets --disable-root-mailer --enable-admin-flag --with-sendmail=/usr/sbin/sendmail --with-timedir=/var/lib/sudo --mandir=/usr/share/man --libexecdir=/usr/lib/sudo --with-sssd --with-sssd-lib=/usr/lib/x86_64-linux-gnu --with-selinux
Sudoers policy plugin version 1.8.9p5
Sudoers file grammar version 43
Sudoers path: /etc/sudoers
Authentication methods: 'pam'
Syslog facility if syslog is being used for logging: authpriv
Syslog priority to use when user authenticates successfully: notice
Syslog priority to use when user authenticates unsuccessfully: alert
Send mail if the user is not in sudoers
Use a separate timestamp for each user/tty combo
Lecture user the first time they run sudo
Root may run sudo
Allow some information gathering to give useful error messages
Require fully-qualified hostnames in the sudoers file
Visudo will honor the EDITOR environment variable
Set the LOGNAME and USER environment variables
Length at which to wrap log file lines (0 for no wrap): 80
Authentication timestamp timeout: 15.0 minutes
Password prompt timeout: 0.0 minutes
Number of tries to enter a password: 3
Umask to use or 0777 to use user's: 022
Path to mail program: /usr/sbin/sendmail
Flags for mail program: -t
Address to send mail to: root
Subject line for mail messages: *** SECURITY information for %h ***
Incorrect password message: Sorry, try again.
Path to authentication timestamp dir: /var/lib/sudo
Default password prompt: [sudo] password for %p:
Default user to run commands as: root
Value to override user's $PATH with: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Path to the editor for use by visudo: /usr/bin/editor
When to require a password for 'list' pseudocommand: any
When to require a password for 'verify' pseudocommand: all
File descriptors >= 3 will be closed before executing a command
Environment variables to check for sanity:
TZ
TERM
LINGUAS
LC_*
LANGUAGE
LANG
COLORTERM
Environment variables to remove:
RUBYOPT
RUBYLIB
PYTHONUSERBASE
PYTHONINSPECT
PYTHONPATH
PYTHONHOME
TMPPREFIX
ZDOTDIR
READNULLCMD
NULLCMD
FPATH
PERL5DB
PERL5OPT
PERL5LIB
PERLLIB
PERLIO_DEBUG
JAVA_TOOL_OPTIONS
SHELLOPTS
GLOBIGNORE
PS4
BASH_ENV
ENV
TERMCAP
TERMPATH
TERMINFO_DIRS
TERMINFO
_RLD*
LD_*
PATH_LOCALE
NLSPATH
HOSTALIASES
RES_OPTIONS
LOCALDOMAIN
CDPATH
IFS
Environment variables to preserve:
JAVA_HOME
TRAVIS
CI
DEBIAN_FRONTEND
XAUTHORIZATION
XAUTHORITY
PS2
PS1
PATH
LS_COLORS
KRB5CCNAME
HOSTNAME
HOME
DISPLAY
COLORS
Locale to use while parsing sudoers: C
Directory in which to store input/output logs: /var/log/sudo-io
File in which to store the input/output log: %{seq}
Add an entry to the utmp/utmpx file when allocating a pty
PAM service name to use
PAM service name to use for login shells
Create a new PAM session for the command to run in
Maximum I/O log sequence number: 0
Local IP address and netmask pairs:
10.240.0.28/255.255.255.255
172.17.0.1/255.255.0.0
Sudoers I/O plugin version 1.8.9p5
gzip version
gzip 1.6
Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.
Copyright (C) 1993 Jean-loup Gailly.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Jean-loup Gailly.
zip version
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
This is Zip 3.0 (July 5th 2008), by Info-ZIP.
Currently maintained by E. Gordon. Please send bug reports to
the authors using the web page at www.info-zip.org; see README for details.
Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip,
as of above date; see http://www.info-zip.org/ for other sites.
Compiled with gcc 4.8.2 for Unix (Linux ELF) on Oct 21 2013.
Zip special compilation options:
USE_EF_UT_TIME (store Universal Time)
BZIP2_SUPPORT (bzip2 library version 1.0.6, 6-Sept-2010)
bzip2 code and library copyright (c) Julian R Seward
(See the bzip2 license for terms of use)
SYMLINK_SUPPORT (symbolic links supported)
LARGE_FILE_SUPPORT (can read and write large files on file system)
ZIP64_SUPPORT (use Zip64 to store large files in archives)
UNICODE_SUPPORT (store and read UTF-8 Unicode paths)
STORE_UNIX_UIDs_GIDs (store UID/GID sizes/values using new extra field)
UIDGID_NOT_16BIT (old Unix 16-bit UID/GID extra field not used)
[encryption, version 2.91 of 05 Jan 2007] (modified for Zip 3)
Encryption notice:
The encryption code of this program is not copyrighted and is
put in the public domain. It was originally written in Europe
and, to the best of our knowledge, can be freely distributed
in both source and object forms from any country, including
the USA under License Exception TSU of the U.S. Export
Administration Regulations (section 740.13(e)) of 6 June 2002.
Zip environment options:
ZIP: [none]
ZIPOPT: [none]
vim version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:43:18)
Included patches: 1-52
Extra patches: 8.0.0056
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float +mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
-clientserver -hangul_input +netbeans_intg +title
-clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con -lua +rightleft +windows
+diff +menu -ruby +writebackup
+digraphs +mksession +scrollbind -X11
-dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent -xim
+emacs_tags -mouseshape -sniff -xsmp
+eval +mouse_dec +startuptime -xterm_clipboard
+ex_extra +mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop -xpm
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
iptables version
iptables v1.4.21
curl version
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
wget version
GNU Wget 1.15 built on linux-gnu.
rsync version
rsync version 3.1.0 protocol version 31
gimme version
v1.2.0
nvm version
0.33.6
perlbrew version
/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.80
phpenv version
rbenv 1.1.1-25-g6aa70b6
rvm version
rvm 1.29.3 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
default ruby version
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
CouchDB version
couchdb 1.6.1
ElasticSearch version
5.5.0
Installed Firefox version
firefox 56.0.2
MongoDB version
MongoDB 3.4.10
PhantomJS version
2.1.1
Pre-installed PostgreSQL versions
9.2.24
9.3.20
9.4.15
9.5.10
9.6.6
RabbitMQ Version
3.6.14
Redis version
redis-server 4.0.6
riak version
2.2.3
Pre-installed Go versions
1.7.4
ant version
Apache Ant(TM) version 1.9.3 compiled on April 8 2014
mvn version
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z)
Maven home: /usr/local/maven-3.5.2
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-98-generic", arch: "amd64", family: "unix"
gradle version
------------------------------------------------------------
Gradle 4.0.1
------------------------------------------------------------
Build time: 2017-07-07 14:02:41 UTC
Revision: 38e5dc0f772daecca1d2681885d3d85414eb6826
Groovy: 2.4.11
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_151 (Oracle Corporation 25.151-b12)
OS: Linux 4.4.0-98-generic amd64
lein version
Leiningen 2.8.1 on Java 1.8.0_151 Java HotSpot(TM) 64-Bit Server VM
Pre-installed Node.js versions
v4.8.6
v6.12.0
v6.12.1
v8.9
v8.9.1
phpenv versions
system
5.6
* 5.6.32 (set by /home/travis/.phpenv/version)
7.0
7.0.25
7.1
7.1.11
hhvm
hhvm-stable
composer --version
Composer version 1.5.2 2017-09-11 16:59:25
Pre-installed Ruby versions
ruby-2.2.7
ruby-2.3.4
ruby-2.4.1
Network availability confirmed.
git.checkout
4.38s$ git clone --depth=50 https://github.com/jupyterlab/jupyterlab.git jupyterlab/jupyterlab
Cloning into 'jupyterlab/jupyterlab'...
remote: Counting objects: 12740, done.
remote: Compressing objects: 100% (3827/3827), done.
remote: Total 12740 (delta 9571), reused 11021 (delta 8418), pack-reused 0
Receiving objects: 100% (12740/12740), 10.44 MiB | 13.07 MiB/s, done.
Resolving deltas: 100% (9571/9571), done.
$ cd jupyterlab/jupyterlab
1.63s$ git fetch origin +refs/pull/4677/merge:
remote: Counting objects: 14, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 14 (delta 9), reused 6 (delta 2), pack-reused 0
Unpacking objects: 100% (14/14), done.
From https://github.com/jupyterlab/jupyterlab
* branch refs/pull/4677/merge -> FETCH_HEAD
$ git checkout -qf FETCH_HEAD
Setting environment variables from .travis.yml
$ export GH_REF=github.com/jupyterlab/jupyterlab.git
$ export YARN_CACHE_FOLDER=/home/travis/.yarn-cache/
$ export GROUP=js_services
0.01s$ source ~/virtualenv/python3.6/bin/activate
cache.1
Setting up build cache
$ export CASHER_DIR=$HOME/.casher
0.14s$ Installing caching utilities
0.00s
7.19sattempting to download cache archive
fetching PR.4677/cache-linux-trusty-1bc5d71dd3a7ba4dd50248c193a14dd89f49676e2ef66258b9d58389139b4427--python-3.6.tgz
found cache
0.01s
7.10sadding /home/travis/.yarn-cache to cache
creating directory /home/travis/.yarn-cache
cache.pip
0.00s
5.24sadding /home/travis/.cache/pip to cache
$ python --version
Python 3.6.3
$ pip --version
pip 9.0.1 from /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (python 3.6)
install
45.61s$ bash ./scripts/travis_install.sh
+set -o pipefail
++which yarn
+sudo rm -rf /usr/local/bin/yarn
+yarn
./scripts/travis_install.sh: line 11: yarn: command not found
+mkdir /home/travis/.jupyter
+pip install -q --upgrade pip
+pip --version
pip 10.0.1 from /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/pip (python 3.6)
+pip install -q -e '.[test]'
+jlpm versions
yarn versions v1.6.0
node: '8.9.1',
v8: '6.1.534.47',
uv: '1.15.0',
zlib: '1.2.11',
ares: '1.10.1-DEV',
modules: '57',
nghttp2: '1.25.0',
openssl: '1.0.2m',
icu: '59.1',
unicode: '9.0',
cldr: '31.0.1',
tz: '2017b' }
+jlpm config current
yarn config v1.6.0
"rootModuleFolders": [
"/home/travis/build/jupyterlab/jupyterlab/node_modules"
],
"registryFolders": [
"node_modules",
"node_modules"
],
"linkedModules": [],
"cache": {},
"cwd": "/home/travis/build/jupyterlab/jupyterlab",
"looseSemver": true,
"commandName": "config",
"preferOffline": false,
"globalFolder": "/home/travis/.config/yarn/global",
"linkFolder": "/home/travis/.config/yarn/link",
"offline": false,
"binLinks": true,
"ignorePlatform": false,
"ignoreScripts": false,
"disablePrepublish": false,
"nonInteractive": true,
"workspaceRootFolder": "/home/travis/build/jupyterlab/jupyterlab",
"lockfileFolder": "/home/travis/build/jupyterlab/jupyterlab",
"networkConcurrency": 8,
"childConcurrency": 5,
"networkTimeout": 30000,
"workspacesEnabled": true,
"workspacesNohoistEnabled": true,
"pruneOfflineMirror": false,
"enableMetaFolder": false,
"enableLockfileVersions": false,
"linkFileDependencies": false,
"cacheFolder": "/home/travis/.yarn-cache/v1",
"tempFolder": "/home/travis/.yarn-cache/v1/.tmp",
"production": false
}
+jupyter serverextension enable --py jupyterlab
Enabling: jupyterlab
- Writing config: /home/travis/.jupyter
- Validating...
jupyterlab 0.33.0.rc1 OK
108.97s$ bash ./scripts/travis_script.sh
+set -o pipefail
+[[ js_services == python ]]
+[[ js_services == js ]]
+[[ js_services == js_cov ]]
+[[ js_services == js_services ]]
+jlpm build:packages
yarn run v1.6.0
$ cd packages/metapackage && jlpm run build
$ tsc && node build.js
+jlpm build:test
yarn run v1.6.0
$ lerna run build:test
lerna info version 2.9.0
lerna info versioning independent
$ tsc --project test
lerna success run Ran npm script 'build:test' in packages:
lerna success - @jupyterlab/services
+jlpm run test:services
yarn run v1.6.0
$ cd packages/services && jlpm test && cd examples/node && python main.py
$ python test/run-test.py
[I 13:20:44.906 ServicesTestApp] Writing notebook server cookie secret to /tmp/tmpn9ejdt3v/jupyter_runtime/notebook_cookie_secret
[I 13:20:44.936 ServicesTestApp] Serving notebooks from local directory: /tmp/mock_contentsk6pxwn21
[I 13:20:44.936 ServicesTestApp] 0 active kernels
[I 13:20:44.936 ServicesTestApp] The Jupyter Notebook is running at:
[I 13:20:44.936 ServicesTestApp] http://localhost:8888/?token=b6533c70c3d44b57288dce271d3f989b6358ac7b414f5506
[I 13:20:44.936 ServicesTestApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 13:20:44.937 ServicesTestApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=b6533c70c3d44b57288dce271d3f989b6358ac7b414f5506&token=b6533c70c3d44b57288dce271d3f989b6358ac7b414f5506
[I 13:20:44.938 ServicesTestApp] > /home/travis/build/jupyterlab/jupyterlab/node_modules/mocha/bin/_mocha --timeout 20000 'build/**/*.spec.js' 'build/*.spec.js' --retries 2 --jupyter-config-data=./build/config.json
config
ConfigSection.create()
✓ should load a config
✓ should load a config
✓ should accept server settings
✓ should fail for an incorrect response
#update()
✓ should update a config
✓ should accept server settings
✓ should fail for an incorrect response
jupyter.services - ConfigWithDefaults
#constructor()
✓ should complete properly
#get()
✓ should get a new config value
✓ should get a default config value
✓ should get a default config value with no class
✓ should get a falsey value
#set()
✓ should set a value in a class immediately
✓ should set a top level value
✓ should fail for an invalid response
contents
#constructor()
✓ should accept no options
✓ should accept options
#fileChanged
✓ should be emitted when a file changes
✓ should include the full path for additional drives
#isDisposed
✓ should test whether the manager is disposed
#dispose()
✓ should dispose of the resources used by the manager
#addDrive()
✓ should add a new drive to the manager
#localPath()
✓ should parse the local part of a path
✓ should allow the ":" character in other parts of the path
✓ should leave alone names with ":" that are not drive names
.driveName()
✓ should parse the drive name a path
✓ should allow the ":" character in other parts of the path
✓ should leave alone names with ":" that are not drive names
#get()
✓ should get a file
✓ should get a directory
✓ should get a file from an additional drive
✓ should get a directory from an additional drive
✓ should fail for an incorrect response
#getDownloadUrl()
✓ should get the url of a file
✓ should encode characters
✓ should not handle relative paths
✓ should get the url of a file from an additional drive
#newUntitled()
✓ should create a file
✓ should create a directory
✓ should create a file on an additional drive
✓ should create a directory on an additional drive
✓ should emit the fileChanged signal
✓ should fail for an incorrect model
✓ should fail for an incorrect response
#delete()
✓ should delete a file
✓ should delete a file on an additional drive
✓ should emit the fileChanged signal
✓ should fail for an incorrect response
✓ should throw a specific error
✓ should throw a general error
#rename()
✓ should rename a file
✓ should rename a file on an additional drive
✓ should emit the fileChanged signal
✓ should fail for an incorrect model
✓ should fail for an incorrect response
#save()
✓ should save a file
[I 13:20:45.513 ServicesTestApp] Uploading file to /foo
✓ should save a file on an additional drive
✓ should create a new file
✓ should emit the fileChanged signal
✓ should fail for an incorrect model
✓ should fail for an incorrect response
#copy()
✓ should copy a file
✓ should copy a file on an additional drive
✓ should emit the fileChanged signal
✓ should fail for an incorrect model
✓ should fail for an incorrect response
#createCheckpoint()
✓ should create a checkpoint
✓ should create a checkpoint on an additional drive
✓ should fail for an incorrect model
✓ should fail for an incorrect response
#listCheckpoints()
✓ should list the checkpoints
✓ should list the checkpoints on an additional drive
✓ should fail for an incorrect model
✓ should fail for an incorrect response
#restoreCheckpoint()
✓ should restore a checkpoint
✓ should restore a checkpoint on an additional drive
✓ should fail for an incorrect response
#deleteCheckpoint()
✓ should delete a checkpoint
✓ should delete a checkpoint on an additional drive
✓ should fail for an incorrect response
drive
#constructor()
✓ should accept no options
✓ should accept options
#name
✓ should return the name of the drive
#fileChanged
✓ should be emitted when a file changes
#isDisposed
✓ should test whether the drive is disposed
#dispose()
✓ should dispose of the resources used by the drive
#get()
✓ should get a file
✓ should get a directory
✓ should accept server settings
✓ should fail for an incorrect response
#getDownloadUrl()
✓ should get the url of a file
✓ should encode characters
✓ should not handle relative paths
#newUntitled()
✓ should create a file
✓ should create a directory
✓ should emit the fileChanged signal
✓ should accept server settings
✓ should fail for an incorrect model
✓ should fail for an incorrect response
#delete()
✓ should delete a file
✓ should emit the fileChanged signal
✓ should accept server settings
✓ should fail for an incorrect response
✓ should throw a specific error
✓ should throw a general error
#rename()
✓ should rename a file
✓ should emit the fileChanged signal
✓ should accept server settings
✓ should fail for an incorrect model
✓ should fail for an incorrect response
#save()
✓ should save a file
✓ should create a new file
✓ should emit the fileChanged signal
✓ should accept server settings
✓ should fail for an incorrect model
✓ should fail for an incorrect response
#copy()
✓ should copy a file
✓ should emit the fileChanged signal
✓ should accept server settings
✓ should fail for an incorrect model
✓ should fail for an incorrect response
#createCheckpoint()
✓ should create a checkpoint
✓ should accept server settings
✓ should fail for an incorrect model
✓ should fail for an incorrect response
#listCheckpoints()
✓ should list the checkpoints
✓ should accept server settings
✓ should fail for an incorrect model
✓ should fail for an incorrect response
#restoreCheckpoint()
✓ should restore a checkpoint
✓ should accept server settings
✓ should fail for an incorrect response
#deleteCheckpoint()
✓ should delete a checkpoint
✓ should accept server settings
✓ should fail for an incorrect response
integration tests
✓ should list a directory and get the file contents
[I 13:20:45.622 ServicesTestApp] Creating new file in /
[W 13:20:45.639 ServicesTestApp] delete /foo.ipynb
✓ should create a new file, rename it, and delete it
[I 13:20:45.644 ServicesTestApp] Uploading file to /baz.txt
[W 13:20:45.651 ServicesTestApp] delete /baz.txt
✓ should create a file by name and delete it
[I 13:20:45.656 ServicesTestApp] Uploading file to /baz.txt
[W 13:20:45.678 ServicesTestApp] delete /baz.txt
✓ should exercise the checkpoint API
validate
validateContentsModel()
✓ should pass with valid data
✓ should fail on missing data
✓ should fail on incorrect data
validateCheckpointModel()
✓ should pass with valid data
✓ should fail on missing data
✓ should fail on incorrect data
jupyter.services - Comm
[I 13:20:45.722 ServicesTestApp] Kernel started: fc02ad0c-9507-418b-b2f7-302d519bd58c
Starting WebSocket: ws://localhost:8888/api/kernels/fc02ad0c-9507-418b-b2f7-302d519bd58c
Kernel
#connectToComm()
✓ should create an instance of IComm
✓ should use the given id
✓ should reuse an existing comm
#registerCommTarget()
[I 13:20:46.289 ServicesTestApp] Adapting to protocol v5.1 for kernel fc02ad0c-9507-418b-b2f7-302d519bd58c
Kernel: connected (fc02ad0c-9507-418b-b2f7-302d519bd58c)
✓ should call the provided callback (601ms)
#commInfo()
✓ should get the comm info (93ms)
✓ should allow an optional target (97ms)
#isDisposed
✓ should be true after we dispose of the comm
✓ should be safe to call multiple times
#dispose()
✓ should dispose of the resources held by the comm
IComm
#id
✓ should be a string
#name
✓ should be a string
#onClose
✓ should be readable and writable function
[IPKernelApp] WARNING | No such comm: bc79bd6e-56b3-4abe-833d-3f8f05b55219
✓ should be called when the server side closes (100ms)
#onMsg
✓ should be readable and writable function
✓ should be called when the server side sends a message (51ms)
#open()
✓ should send a message to the server
#send()
[IPKernelApp] WARNING | No such comm: f5fe816d-e7cd-47b5-be62-5b66cb66049e
Comm not found for comm id f5fe816d-e7cd-47b5-be62-5b66cb66049e
✓ should send a message to the server (102ms)
✓ should pass through a buffers field (91ms)
#close()
✓ should send a message to the server (88ms)
✓ should trigger an onClose (45ms)
✓ should not send subsequent messages (87ms)
[I 13:20:47.418 ServicesTestApp] Kernel shutdown: fc02ad0c-9507-418b-b2f7-302d519bd58c
Kernel.IFuture
[I 13:20:47.441 ServicesTestApp] Kernel started: 4176427a-b33c-4cdf-bf99-55b055d71ed9
Starting WebSocket: ws://localhost:8888/api/kernels/4176427a-b33c-4cdf-bf99-55b055d71ed9
[I 13:20:47.965 ServicesTestApp] Adapting to protocol v5.1 for kernel 4176427a-b33c-4cdf-bf99-55b055d71ed9
Kernel: connected (4176427a-b33c-4cdf-bf99-55b055d71ed9)
✓ should have a msg attribute (590ms)
Message hooks
Starting WebSocket: ws://localhost:8081/api/kernels/36999ad9-da91-4258-ad08-082baff67417
Kernel: connected (36999ad9-da91-4258-ad08-082baff67417)
✓ should have the most recently registered hook run first
Starting WebSocket: ws://localhost:8081/api/kernels/c5ce7f1c-e4a4-4154-a006-1379a912ed9a
Kernel: connected (c5ce7f1c-e4a4-4154-a006-1379a912ed9a)
✓ should abort processing if a hook returns false, but the done logic should still work
Starting WebSocket: ws://localhost:8081/api/kernels/8286920d-8f7b-47e6-b7f5-1505038f5001
Kernel: connected (8286920d-8f7b-47e6-b7f5-1505038f5001)
✓ should process additions on the next run
Starting WebSocket: ws://localhost:8081/api/kernels/589feea5-eec0-401c-82d3-9c224826c68d
Kernel: connected (589feea5-eec0-401c-82d3-9c224826c68d)
✓ should deactivate message hooks immediately on removal
Kernel.IKernel
#terminated
[I 13:20:48.382 ServicesTestApp] Kernel shutdown: 4176427a-b33c-4cdf-bf99-55b055d71ed9
[I 13:20:48.401 ServicesTestApp] Kernel started: 6d790b63-f528-4e6f-85d9-662e987ae5b5
Starting WebSocket: ws://localhost:8888/api/kernels/6d790b63-f528-4e6f-85d9-662e987ae5b5
[I 13:20:48.885 ServicesTestApp] Adapting to protocol v5.1 for kernel 6d790b63-f528-4e6f-85d9-662e987ae5b5
Kernel: connected (6d790b63-f528-4e6f-85d9-662e987ae5b5)
[I 13:20:49.236 ServicesTestApp] Kernel shutdown: 6d790b63-f528-4e6f-85d9-662e987ae5b5
✓ should be emitted when the kernel is shut down (319ms)
#statusChanged
[I 13:20:49.269 ServicesTestApp] Kernel started: ff3c17d1-7397-4595-b037-d064b108ccf9
Starting WebSocket: ws://localhost:8888/api/kernels/ff3c17d1-7397-4595-b037-d064b108ccf9
[I 13:20:49.750 ServicesTestApp] Adapting to protocol v5.1 for kernel ff3c17d1-7397-4595-b037-d064b108ccf9
Kernel: connected (ff3c17d1-7397-4595-b037-d064b108ccf9)
✓ should be a signal following the Kernel status (44ms)
[I 13:20:50.044 ServicesTestApp] Kernel shutdown: ff3c17d1-7397-4595-b037-d064b108ccf9
#iopubMessage
[I 13:20:50.069 ServicesTestApp] Kernel started: 6acf14b5-f6f5-4bef-a497-beaa7247551e
Starting WebSocket: ws://localhost:8888/api/kernels/6acf14b5-f6f5-4bef-a497-beaa7247551e
[I 13:20:50.548 ServicesTestApp] Adapting to protocol v5.1 for kernel 6acf14b5-f6f5-4bef-a497-beaa7247551e
Kernel: connected (6acf14b5-f6f5-4bef-a497-beaa7247551e)
✓ should be emitted for an iopub message (44ms)
[I 13:20:50.942 ServicesTestApp] Kernel shutdown: 6acf14b5-f6f5-4bef-a497-beaa7247551e
[I 13:20:50.962 ServicesTestApp] Kernel started: 08190f6f-f6fc-4ac4-9c7a-c3acbadc14eb
Starting WebSocket: ws://localhost:8888/api/kernels/08190f6f-f6fc-4ac4-9c7a-c3acbadc14eb
[I 13:20:51.463 ServicesTestApp] Adapting to protocol v5.1 for kernel 08190f6f-f6fc-4ac4-9c7a-c3acbadc14eb
Kernel: connected (08190f6f-f6fc-4ac4-9c7a-c3acbadc14eb)
Starting WebSocket: ws://localhost:8081/api/kernels/ba500199-f357-43a3-9549-796eed4c106b
Kernel: connected (ba500199-f357-43a3-9549-796eed4c106b)
✓ should be emitted regardless of the sender
[I 13:20:51.823 ServicesTestApp] Kernel shutdown: 08190f6f-f6fc-4ac4-9c7a-c3acbadc14eb
#unhandledMessage
[I 13:20:51.845 ServicesTestApp] Kernel started: 8c0cd1da-8ad6-47ca-9a5e-e984a1856fd6
Starting WebSocket: ws://localhost:8888/api/kernels/8c0cd1da-8ad6-47ca-9a5e-e984a1856fd6
[I 13:20:52.372 ServicesTestApp] Adapting to protocol v5.1 for kernel 8c0cd1da-8ad6-47ca-9a5e-e984a1856fd6
Kernel: connected (8c0cd1da-8ad6-47ca-9a5e-e984a1856fd6)
Starting WebSocket: ws://localhost:8081/api/kernels/210f0c00-b4a4-4ada-afcb-12f6f29d9ff4
Kernel: connected (210f0c00-b4a4-4ada-afcb-12f6f29d9ff4)
✓ should be emitted for an unhandled message
[I 13:20:52.732 ServicesTestApp] Kernel shutdown: 8c0cd1da-8ad6-47ca-9a5e-e984a1856fd6
[I 13:20:52.752 ServicesTestApp] Kernel started: e57cf5f7-e007-45a7-9ae6-19bf6c99a232
Starting WebSocket: ws://localhost:8888/api/kernels/e57cf5f7-e007-45a7-9ae6-19bf6c99a232
[I 13:20:53.235 ServicesTestApp] Adapting to protocol v5.1 for kernel e57cf5f7-e007-45a7-9ae6-19bf6c99a232
Kernel: connected (e57cf5f7-e007-45a7-9ae6-19bf6c99a232)
Starting WebSocket: ws://localhost:8081/api/kernels/dc8560c8-90ab-4690-afe9-f1a0939cc54c
Kernel: connected (dc8560c8-90ab-4690-afe9-f1a0939cc54c)
✓ should not be emitted for an iopub signal
[I 13:20:53.592 ServicesTestApp] Kernel shutdown: e57cf5f7-e007-45a7-9ae6-19bf6c99a232
[I 13:20:53.613 ServicesTestApp] Kernel started: 7f9ccc23-9810-4b54-a1c1-c6913ee3abd4
Starting WebSocket: ws://localhost:8888/api/kernels/7f9ccc23-9810-4b54-a1c1-c6913ee3abd4
[I 13:20:54.087 ServicesTestApp] Adapting to protocol v5.1 for kernel 7f9ccc23-9810-4b54-a1c1-c6913ee3abd4
Kernel: connected (7f9ccc23-9810-4b54-a1c1-c6913ee3abd4)
Starting WebSocket: ws://localhost:8081/api/kernels/009b8a66-95e2-49c8-bba7-1e22aeb48329
Kernel: connected (009b8a66-95e2-49c8-bba7-1e22aeb48329)
✓ should not be emitted for a different client session
[I 13:20:54.449 ServicesTestApp] Kernel shutdown: 7f9ccc23-9810-4b54-a1c1-c6913ee3abd4
#anyMessage
[I 13:20:54.469 ServicesTestApp] Kernel started: aa7e6160-9a05-4698-897b-9448e3a5097a
Starting WebSocket: ws://localhost:8888/api/kernels/aa7e6160-9a05-4698-897b-9448e3a5097a
[I 13:20:54.930 ServicesTestApp] Adapting to protocol v5.1 for kernel aa7e6160-9a05-4698-897b-9448e3a5097a
Kernel: connected (aa7e6160-9a05-4698-897b-9448e3a5097a)
Starting WebSocket: ws://localhost:8081/api/kernels/26c55775-4166-41b1-a0fc-6bf865a5512a
Kernel: connected (26c55775-4166-41b1-a0fc-6bf865a5512a)
✓ should be emitted for an unhandled message
[I 13:20:55.187 ServicesTestApp] Kernel shutdown: aa7e6160-9a05-4698-897b-9448e3a5097a
[I 13:20:55.205 ServicesTestApp] Kernel started: 87aecfb2-a67d-4d96-8868-d07bed1324d0
Starting WebSocket: ws://localhost:8888/api/kernels/87aecfb2-a67d-4d96-8868-d07bed1324d0
[I 13:20:55.661 ServicesTestApp] Adapting to protocol v5.1 for kernel 87aecfb2-a67d-4d96-8868-d07bed1324d0
Kernel: connected (87aecfb2-a67d-4d96-8868-d07bed1324d0)
Starting WebSocket: ws://localhost:8081/api/kernels/07b1b8c9-a55a-4053-9714-4f84e6895547
Kernel: connected (07b1b8c9-a55a-4053-9714-4f84e6895547)
✓ should be emitted for an iopub message
[I 13:20:56.019 ServicesTestApp] Kernel shutdown: 87aecfb2-a67d-4d96-8868-d07bed1324d0
[I 13:20:56.041 ServicesTestApp] Kernel started: fc9865b4-7282-4cf6-acfa-9d5cfa48425c
Starting WebSocket: ws://localhost:8888/api/kernels/fc9865b4-7282-4cf6-acfa-9d5cfa48425c
[I 13:20:56.505 ServicesTestApp] Adapting to protocol v5.1 for kernel fc9865b4-7282-4cf6-acfa-9d5cfa48425c
Kernel: connected (fc9865b4-7282-4cf6-acfa-9d5cfa48425c)
Starting WebSocket: ws://localhost:8081/api/kernels/b51a8718-9704-49eb-a13e-5679d59e80cb
Kernel: connected (b51a8718-9704-49eb-a13e-5679d59e80cb)
✓ should be emitted for an stdin message
[I 13:20:56.759 ServicesTestApp] Kernel shutdown: fc9865b4-7282-4cf6-acfa-9d5cfa48425c
#id
[I 13:20:56.781 ServicesTestApp] Kernel started: 0bae010a-1ac6-4819-8e87-159dbe66b646
Starting WebSocket: ws://localhost:8888/api/kernels/0bae010a-1ac6-4819-8e87-159dbe66b646
[I 13:20:57.345 ServicesTestApp] Adapting to protocol v5.1 for kernel 0bae010a-1ac6-4819-8e87-159dbe66b646
Kernel: connected (0bae010a-1ac6-4819-8e87-159dbe66b646)
✓ should be a string
[I 13:20:57.698 ServicesTestApp] Kernel shutdown: 0bae010a-1ac6-4819-8e87-159dbe66b646
#name
[I 13:20:57.724 ServicesTestApp] Kernel started: c3c25122-ed6d-4578-a5d2-85bccd9340ee
Starting WebSocket: ws://localhost:8888/api/kernels/c3c25122-ed6d-4578-a5d2-85bccd9340ee
[I 13:20:58.251 ServicesTestApp] Adapting to protocol v5.1 for kernel c3c25122-ed6d-4578-a5d2-85bccd9340ee
Kernel: connected (c3c25122-ed6d-4578-a5d2-85bccd9340ee)
✓ should be a string
[I 13:20:58.606 ServicesTestApp] Kernel shutdown: c3c25122-ed6d-4578-a5d2-85bccd9340ee
#model
[I 13:20:58.625 ServicesTestApp] Kernel started: 58c83d8f-d8b9-4f0a-a6b0-2f064711b01f
Starting WebSocket: ws://localhost:8888/api/kernels/58c83d8f-d8b9-4f0a-a6b0-2f064711b01f
[I 13:20:59.124 ServicesTestApp] Adapting to protocol v5.1 for kernel 58c83d8f-d8b9-4f0a-a6b0-2f064711b01f
Kernel: connected (58c83d8f-d8b9-4f0a-a6b0-2f064711b01f)
✓ should be an IModel
[I 13:20:59.378 ServicesTestApp] Kernel shutdown: 58c83d8f-d8b9-4f0a-a6b0-2f064711b01f
#username
[I 13:20:59.395 ServicesTestApp] Kernel started: ba5f6253-ec68-41c3-872d-ca94659e8e55
Starting WebSocket: ws://localhost:8888/api/kernels/ba5f6253-ec68-41c3-872d-ca94659e8e55
[I 13:20:59.929 ServicesTestApp] Adapting to protocol v5.1 for kernel ba5f6253-ec68-41c3-872d-ca94659e8e55
Kernel: connected (ba5f6253-ec68-41c3-872d-ca94659e8e55)
✓ should be a string
[I 13:21:00.277 ServicesTestApp] Kernel shutdown: ba5f6253-ec68-41c3-872d-ca94659e8e55
#serverSettings
[I 13:21:00.297 ServicesTestApp] Kernel started: 52a4d349-1099-4ea4-bc92-af0a42d52c98
Starting WebSocket: ws://localhost:8888/api/kernels/52a4d349-1099-4ea4-bc92-af0a42d52c98
[I 13:21:00.913 ServicesTestApp] Adapting to protocol v5.1 for kernel 52a4d349-1099-4ea4-bc92-af0a42d52c98
Kernel: connected (52a4d349-1099-4ea4-bc92-af0a42d52c98)
✓ should be the server settings
[I 13:21:01.265 ServicesTestApp] Kernel shutdown: 52a4d349-1099-4ea4-bc92-af0a42d52c98
#clientId
[I 13:21:01.286 ServicesTestApp] Kernel started: c2249214-8755-4dc9-a5ff-42bf8db7982b
Starting WebSocket: ws://localhost:8888/api/kernels/c2249214-8755-4dc9-a5ff-42bf8db7982b
[I 13:21:01.828 ServicesTestApp] Adapting to protocol v5.1 for kernel c2249214-8755-4dc9-a5ff-42bf8db7982b
Kernel: connected (c2249214-8755-4dc9-a5ff-42bf8db7982b)
✓ should be a string
[I 13:21:02.186 ServicesTestApp] Kernel shutdown: c2249214-8755-4dc9-a5ff-42bf8db7982b
#status
[I 13:21:02.208 ServicesTestApp] Kernel started: 20301ad7-9ff8-4c55-ab6f-3c046996da9c
Starting WebSocket: ws://localhost:8888/api/kernels/20301ad7-9ff8-4c55-ab6f-3c046996da9c
[I 13:21:02.809 ServicesTestApp] Adapting to protocol v5.1 for kernel 20301ad7-9ff8-4c55-ab6f-3c046996da9c
Kernel: connected (20301ad7-9ff8-4c55-ab6f-3c046996da9c)
✓ should get an idle status (44ms)
[I 13:21:03.214 ServicesTestApp] Kernel shutdown: 20301ad7-9ff8-4c55-ab6f-3c046996da9c
[I 13:21:03.232 ServicesTestApp] Kernel started: d9432657-9e78-4013-a514-13901f4673f3
Starting WebSocket: ws://localhost:8888/api/kernels/d9432657-9e78-4013-a514-13901f4673f3
[I 13:21:03.712 ServicesTestApp] Adapting to protocol v5.1 for kernel d9432657-9e78-4013-a514-13901f4673f3
Kernel: connected (d9432657-9e78-4013-a514-13901f4673f3)
Kernel: restarting (d9432657-9e78-4013-a514-13901f4673f3)
✓ should get a restarting status
[I 13:21:03.759 ServicesTestApp] Starting buffering for d9432657-9e78-4013-a514-13901f4673f3:c2e46390-a2a2-49dc-a81c-54fc32d8801a
[I 13:21:04.069 ServicesTestApp] Kernel restarted: d9432657-9e78-4013-a514-13901f4673f3
[I 13:21:04.976 ServicesTestApp] Kernel shutdown: d9432657-9e78-4013-a514-13901f4673f3
[I 13:21:04.996 ServicesTestApp] Kernel started: ae9362b6-dcd6-42c6-a185-deccad1b3985
Starting WebSocket: ws://localhost:8888/api/kernels/ae9362b6-dcd6-42c6-a185-deccad1b3985
[I 13:21:05.670 ServicesTestApp] Adapting to protocol v5.1 for kernel ae9362b6-dcd6-42c6-a185-deccad1b3985
Kernel: connected (ae9362b6-dcd6-42c6-a185-deccad1b3985)
✓ should get a busy status (48ms)
[I 13:21:06.073 ServicesTestApp] Kernel shutdown: ae9362b6-dcd6-42c6-a185-deccad1b3985
[I 13:21:06.096 ServicesTestApp] Kernel started: f6560c2d-676b-405d-b6aa-92596bc1b2dc
Starting WebSocket: ws://localhost:8888/api/kernels/f6560c2d-676b-405d-b6aa-92596bc1b2dc
[I 13:21:06.561 ServicesTestApp] Adapting to protocol v5.1 for kernel f6560c2d-676b-405d-b6aa-92596bc1b2dc
Kernel: connected (f6560c2d-676b-405d-b6aa-92596bc1b2dc)
Starting WebSocket: ws://localhost:8081/api/kernels/8852f169-eec7-43a3-a5bc-0946086f1b6f
Kernel: connected (8852f169-eec7-43a3-a5bc-0946086f1b6f)
Kernel: reconnecting (8852f169-eec7-43a3-a5bc-0946086f1b6f)
Connection lost, reconnecting in 1 seconds.
✓ should get a reconnecting status
[I 13:21:06.923 ServicesTestApp] Kernel shutdown: f6560c2d-676b-405d-b6aa-92596bc1b2dc
[I 13:21:06.948 ServicesTestApp] Kernel started: 45a4661f-270b-4cf1-a24e-1e554c76effa
Starting WebSocket: ws://localhost:8888/api/kernels/45a4661f-270b-4cf1-a24e-1e554c76effa
[I 13:21:07.542 ServicesTestApp] Adapting to protocol v5.1 for kernel 45a4661f-270b-4cf1-a24e-1e554c76effa
Kernel: connected (45a4661f-270b-4cf1-a24e-1e554c76effa)
Starting WebSocket: ws://localhost:8081/api/kernels/d9a65a4c-a805-4f38-aaa3-d9560e67a547
Kernel: connected (d9a65a4c-a805-4f38-aaa3-d9560e67a547)
Kernel: dead (d9a65a4c-a805-4f38-aaa3-d9560e67a547)
✓ should get a dead status
Starting WebSocket: ws://localhost:8081/api/kernels/8852f169-eec7-43a3-a5bc-0946086f1b6f
Kernel: reconnecting (8852f169-eec7-43a3-a5bc-0946086f1b6f)
Connection lost, reconnecting in 2 seconds.
[I 13:21:07.910 ServicesTestApp] Kernel shutdown: 45a4661f-270b-4cf1-a24e-1e554c76effa
[I 13:21:07.930 ServicesTestApp] Kernel started: 164681fa-a0dc-4044-a961-58b9331c2c71
Starting WebSocket: ws://localhost:8888/api/kernels/164681fa-a0dc-4044-a961-58b9331c2c71
[I 13:21:08.565 ServicesTestApp] Adapting to protocol v5.1 for kernel 164681fa-a0dc-4044-a961-58b9331c2c71
Kernel: connected (164681fa-a0dc-4044-a961-58b9331c2c71)
Starting WebSocket: ws://localhost:8081/api/kernels/fdf3af2f-e499-4601-babd-55afff733f0a
Kernel: connected (fdf3af2f-e499-4601-babd-55afff733f0a)
invalid kernel status: invalid-status
✓ should not emit an invalid status
[I 13:21:08.935 ServicesTestApp] Kernel shutdown: 164681fa-a0dc-4044-a961-58b9331c2c71
#info
[I 13:21:08.954 ServicesTestApp] Kernel started: 0992e1b5-c967-48c0-ab05-2f20dfc3f22e
Starting WebSocket: ws://localhost:8888/api/kernels/0992e1b5-c967-48c0-ab05-2f20dfc3f22e
[I 13:21:09.493 ServicesTestApp] Adapting to protocol v5.1 for kernel 0992e1b5-c967-48c0-ab05-2f20dfc3f22e
Kernel: connected (0992e1b5-c967-48c0-ab05-2f20dfc3f22e)
✓ should get the kernel info
Starting WebSocket: ws://localhost:8081/api/kernels/8852f169-eec7-43a3-a5bc-0946086f1b6f
Connection lost, reconnecting in 4 seconds.
[I 13:21:09.847 ServicesTestApp] Kernel shutdown: 0992e1b5-c967-48c0-ab05-2f20dfc3f22e
#getSpec()
[I 13:21:09.865 ServicesTestApp] Kernel started: 3fd088e7-c048-4ee5-9ea3-e7abd97d4fa2
Starting WebSocket: ws://localhost:8888/api/kernels/3fd088e7-c048-4ee5-9ea3-e7abd97d4fa2
[I 13:21:10.531 ServicesTestApp] Adapting to protocol v5.1 for kernel 3fd088e7-c048-4ee5-9ea3-e7abd97d4fa2
Kernel: connected (3fd088e7-c048-4ee5-9ea3-e7abd97d4fa2)
✓ should resolve with the spec
[I 13:21:10.886 ServicesTestApp] Kernel shutdown: 3fd088e7-c048-4ee5-9ea3-e7abd97d4fa2
#isReady
[I 13:21:10.909 ServicesTestApp] Kernel started: 5cdda358-1412-4c17-94cf-c73a07eb2360
Starting WebSocket: ws://localhost:8888/api/kernels/5cdda358-1412-4c17-94cf-c73a07eb2360
[I 13:21:11.626 ServicesTestApp] Adapting to protocol v5.1 for kernel 5cdda358-1412-4c17-94cf-c73a07eb2360
Kernel: connected (5cdda358-1412-4c17-94cf-c73a07eb2360)
[I 13:21:11.698 ServicesTestApp] Kernel started: 6bafd563-4f2a-45f3-b6a4-76637599089b
Starting WebSocket: ws://localhost:8888/api/kernels/6bafd563-4f2a-45f3-b6a4-76637599089b
[I 13:21:12.229 ServicesTestApp] Adapting to protocol v5.1 for kernel 6bafd563-4f2a-45f3-b6a4-76637599089b
Kernel: connected (6bafd563-4f2a-45f3-b6a4-76637599089b)
[I 13:21:12.681 ServicesTestApp] Kernel shutdown: 6bafd563-4f2a-45f3-b6a4-76637599089b
✓ should test whether the kernel is ready (1007ms)
[I 13:21:12.988 ServicesTestApp] Kernel shutdown: 5cdda358-1412-4c17-94cf-c73a07eb2360
#ready
[I 13:21:13.007 ServicesTestApp] Kernel started: 218f291f-53f3-4d17-933b-87c87db9ce1a
Starting WebSocket: ws://localhost:8888/api/kernels/218f291f-53f3-4d17-933b-87c87db9ce1a
[I 13:21:13.504 ServicesTestApp] Adapting to protocol v5.1 for kernel 218f291f-53f3-4d17-933b-87c87db9ce1a
Kernel: connected (218f291f-53f3-4d17-933b-87c87db9ce1a)
✓ should resolve when the kernel is ready
Starting WebSocket: ws://localhost:8081/api/kernels/8852f169-eec7-43a3-a5bc-0946086f1b6f
Connection lost, reconnecting in 8 seconds.
[I 13:21:13.853 ServicesTestApp] Kernel shutdown: 218f291f-53f3-4d17-933b-87c87db9ce1a
#isDisposed
[I 13:21:13.872 ServicesTestApp] Kernel started: ef42127c-e3c6-4ca2-81e2-4f207fbf21df
Starting WebSocket: ws://localhost:8888/api/kernels/ef42127c-e3c6-4ca2-81e2-4f207fbf21df
[I 13:21:14.355 ServicesTestApp] Adapting to protocol v5.1 for kernel ef42127c-e3c6-4ca2-81e2-4f207fbf21df
Kernel: connected (ef42127c-e3c6-4ca2-81e2-4f207fbf21df)
Starting WebSocket: ws://localhost:8888/api/kernels/ef42127c-e3c6-4ca2-81e2-4f207fbf21df
✓ should be true after we dispose of the kernel
[I 13:21:14.709 ServicesTestApp] Kernel shutdown: ef42127c-e3c6-4ca2-81e2-4f207fbf21df
[I 13:21:14.711 ServicesTestApp] Adapting to protocol v5.1 for kernel ef42127c-e3c6-4ca2-81e2-4f207fbf21df
[I 13:21:14.732 ServicesTestApp] Kernel started: 68908f00-3e0b-47f5-b245-08c60bc24f46
Starting WebSocket: ws://localhost:8888/api/kernels/68908f00-3e0b-47f5-b245-08c60bc24f46
[E 13:21:14.745 ServicesTestApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: ef42127c-e3c6-4ca2-81e2-4f207fbf21df)
[I 13:21:15.301 ServicesTestApp] Adapting to protocol v5.1 for kernel 68908f00-3e0b-47f5-b245-08c60bc24f46
Kernel: connected (68908f00-3e0b-47f5-b245-08c60bc24f46)
Starting WebSocket: ws://localhost:8081/api/kernels/8852f169-eec7-43a3-a5bc-0946086f1b6f
Connection lost, reconnecting in 16 seconds.
[W 13:21:34.071 ServicesTestApp] Timeout waiting for kernel_info_reply: d9432657-9e78-4013-a514-13901f4673f3
[E 13:21:34.072 ServicesTestApp] Exception restarting kernel
Traceback (most recent call last):
File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/notebook/services/kernels/handlers.py", line 85, in post
yield gen.maybe_future(km.restart_kernel(kernel_id))
File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/tornado/gen.py", line 1099, in run
value = future.result()
tornado.util.TimeoutError: Timeout waiting for restart
[E 13:21:34.074 ServicesTestApp] {
"Authorization": "token b6533c70c3d44b57288dce271d3f989b6358ac7b414f5506",
"Content-Type": "application/json",
"Accept-Encoding": "gzip,deflate",
"User-Agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)",
"Connection": "close",
"Accept": "*/*",
"Content-Length": "0",
"Host": "localhost:8888"
}
[E 13:21:34.074 ServicesTestApp] 500 POST /api/kernels/d9432657-9e78-4013-a514-13901f4673f3/restart?1530796863757 (127.0.0.1) 30313.12ms referer=None
(node:4746) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Invalid response: 500 Internal Server Error
(node:4746) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
1) "before each" hook for "should be safe to call multiple times"
[I 13:21:35.019 ServicesTestApp] Kernel shutdown: 68908f00-3e0b-47f5-b245-08c60bc24f46
kernel
[I 13:21:35.045 ServicesTestApp] Kernel started: c3d6509b-fbaa-49a2-9801-fbc2c876a93c
Starting WebSocket: ws://localhost:8888/api/kernels/c3d6509b-fbaa-49a2-9801-fbc2c876a93c
[I 13:21:35.080 ServicesTestApp] Kernel started: db1cf30b-643f-4833-b0f1-1e70162ed775
Starting WebSocket: ws://localhost:8888/api/kernels/db1cf30b-643f-4833-b0f1-1e70162ed775
Kernel.listRunning()
✓ should yield a list of valid kernel ids
✓ should accept server settings
✓ should throw an error for an invalid model
✓ should throw an error for an invalid response
✓ should throw an error for an error response
Kernel.startNew()
[I 13:21:35.156 ServicesTestApp] Kernel started: cf8888e8-a1bf-42fa-b0c3-7d25e0190934
Starting WebSocket: ws://localhost:8888/api/kernels/cf8888e8-a1bf-42fa-b0c3-7d25e0190934
[I 13:21:36.192 ServicesTestApp] Kernel shutdown: cf8888e8-a1bf-42fa-b0c3-7d25e0190934
✓ should create an Kernel.IKernel object (1082ms)
[I 13:21:36.197 ServicesTestApp] Adapting to protocol v5.1 for kernel c3d6509b-fbaa-49a2-9801-fbc2c876a93c
[I 13:21:36.198 ServicesTestApp] Adapting to protocol v5.1 for kernel db1cf30b-643f-4833-b0f1-1e70162ed775
[I 13:21:36.215 ServicesTestApp] Kernel started: 5f7f155b-f281-4e32-a82c-483bd6b41cf0
Starting WebSocket: ws://localhost:8888/api/kernels/5f7f155b-f281-4e32-a82c-483bd6b41cf0
[I 13:21:37.130 ServicesTestApp] Kernel shutdown: 5f7f155b-f281-4e32-a82c-483bd6b41cf0
✓ should accept ajax options (938ms)
- should still start if the kernel dies
✓ should throw an error for an invalid kernel id
Kernel: connected (c3d6509b-fbaa-49a2-9801-fbc2c876a93c)
✓ should throw an error for another invalid kernel id
Kernel: connected (db1cf30b-643f-4833-b0f1-1e70162ed775)
✓ should throw an error for an invalid response
✓ should throw an error for an error response
Starting WebSocket: ws://localhost:8081/api/kernels/259bc90d-1b0f-48e0-889c-636a3af58e69
Kernel: connected (259bc90d-1b0f-48e0-889c-636a3af58e69)
Kernel: reconnecting (259bc90d-1b0f-48e0-889c-636a3af58e69)
Connection lost, reconnecting in 1 seconds.
✓ should auto-reconnect on websocket error
Kernel.connectTo()
Starting WebSocket: ws://localhost:8888/api/kernels/c3d6509b-fbaa-49a2-9801-fbc2c876a93c
✓ should connect to an exisiting kernel
Starting WebSocket: ws://localhost:8888/api/kernels/c3d6509b-fbaa-49a2-9801-fbc2c876a93c
[I 13:21:37.166 ServicesTestApp] Adapting to protocol v5.1 for kernel c3d6509b-fbaa-49a2-9801-fbc2c876a93c
✓ should accept server settings
Kernel.shutdown()
[I 13:21:37.198 ServicesTestApp] Kernel started: 4411eefb-5f27-4abb-b4cd-a6684dd21bd5
Starting WebSocket: ws://localhost:8888/api/kernels/4411eefb-5f27-4abb-b4cd-a6684dd21bd5
Starting WebSocket: ws://localhost:8081/api/kernels/8852f169-eec7-43a3-a5bc-0946086f1b6f
Connection lost, reconnecting in 32 seconds.
[I 13:21:38.014 ServicesTestApp] Kernel shutdown: 4411eefb-5f27-4abb-b4cd-a6684dd21bd5
[I 13:21:38.016 ServicesTestApp] Adapting to protocol v5.1 for kernel c3d6509b-fbaa-49a2-9801-fbc2c876a93c
✓ should shut down a kernel by id (844ms)
[W 13:21:38.023 ServicesTestApp] 404 DELETE /api/kernels/9fd2a805-79ff-4222-a8ed-64d313e27c59?1530796898016 (127.0.0.1): Kernel does not exist: 9fd2a805-79ff-4222-a8ed-64d313e27c59
[W 13:21:38.024 ServicesTestApp] Kernel does not exist: 9fd2a805-79ff-4222-a8ed-64d313e27c59
[W 13:21:38.024 ServicesTestApp] 404 DELETE /api/kernels/9fd2a805-79ff-4222-a8ed-64d313e27c59?1530796898016 (127.0.0.1) 2.01ms referer=None
The kernel "9fd2a805-79ff-4222-a8ed-64d313e27c59" does not exist on the server
✓ should handle a 404 error
Kernel.getSpecs()
✓ should load the kernelspecs
✓ should accept ajax options
Default kernel not found, using 'python'
✓ should handle a missing default parameter
✓ should throw for a missing kernelspecs parameter
Removing errant kernel spec: R
✓ should omit an invalid kernelspec
Removing errant kernel spec: R
✓ should handle an improper name
Removing errant kernel spec: R
✓ should handle an improper language
Removing errant kernel spec: R
✓ should handle an improper argv
Removing errant kernel spec: R
✓ should handle an improper display_name
Removing errant kernel spec: R
✓ should handle missing resources
✓ should throw an error for an invalid response
kernel/manager
[I 13:21:38.069 ServicesTestApp] Kernel started: 7c1669cc-a94c-49ea-98d4-3101e3ba8c0e
Starting WebSocket: ws://localhost:8888/api/kernels/7c1669cc-a94c-49ea-98d4-3101e3ba8c0e
KernelManager
#constructor()
Starting WebSocket: ws://localhost:8081/api/kernels/259bc90d-1b0f-48e0-889c-636a3af58e69
Kernel: reconnecting (259bc90d-1b0f-48e0-889c-636a3af58e69)
Connection lost, reconnecting in 2 seconds.
[I 13:21:38.392 ServicesTestApp] Kernel shutdown: c3d6509b-fbaa-49a2-9801-fbc2c876a93c
[I 13:21:38.700 ServicesTestApp] Kernel shutdown: db1cf30b-643f-4833-b0f1-1e70162ed775
[I 13:21:38.716 ServicesTestApp] Adapting to protocol v5.1 for kernel 7c1669cc-a94c-49ea-98d4-3101e3ba8c0e
✓ should take the options as an argument
#serverSettings
✓ should get the server settings
Kernel: connected (7c1669cc-a94c-49ea-98d4-3101e3ba8c0e)
#specs
✓ should get the kernel specs
#running()
✓ should get the running sessions
#specsChanged
✓ should be emitted when the specs change
#runningChanged
[I 13:21:38.805 ServicesTestApp] Kernel started: 4703a72a-5f08-4e44-844d-f2c281676a42
Starting WebSocket: ws://localhost:8888/api/kernels/4703a72a-5f08-4e44-844d-f2c281676a42
✓ should be emitted in refreshRunning when the running kernels changed
[I 13:21:38.869 ServicesTestApp] Kernel started: 0de5c05c-cb90-49a0-8ba3-0680d68ecc15
Starting WebSocket: ws://localhost:8888/api/kernels/0de5c05c-cb90-49a0-8ba3-0680d68ecc15
[I 13:21:39.897 ServicesTestApp] Kernel shutdown: 0de5c05c-cb90-49a0-8ba3-0680d68ecc15
✓ should be emitted when a kernel is shut down (1066ms)
#isReady
[I 13:21:39.900 ServicesTestApp] Adapting to protocol v5.1 for kernel 4703a72a-5f08-4e44-844d-f2c281676a42
Kernel: connected (4703a72a-5f08-4e44-844d-f2c281676a42)
✓ should test whether the manager is ready
#ready
✓ should resolve when the manager is ready
#refreshSpecs()
✓ should update list of kernel specs
#refreshRunning()
✓ should update the running kernels
#startNew()
[I 13:21:39.982 ServicesTestApp] Kernel started: 755f97f4-f2ef-45d6-8831-c7a946b35a26
Starting WebSocket: ws://localhost:8888/api/kernels/755f97f4-f2ef-45d6-8831-c7a946b35a26
✓ should start a new kernel
[I 13:21:40.043 ServicesTestApp] Kernel started: 67bb0ff6-8a2b-4d7e-ac7c-f152758845d0
Starting WebSocket: ws://localhost:8888/api/kernels/67bb0ff6-8a2b-4d7e-ac7c-f152758845d0
✓ should emit a runningChanged signal (42ms)
#findById()
✓ should find an existing kernel by id
#connectTo()
Starting WebSocket: ws://localhost:8888/api/kernels/7c1669cc-a94c-49ea-98d4-3101e3ba8c0e
✓ should connect to an existing kernel
Starting WebSocket: ws://localhost:8081/api/kernels/259bc90d-1b0f-48e0-889c-636a3af58e69
Connection lost, reconnecting in 4 seconds.
[I 13:21:40.241 ServicesTestApp] Kernel started: 64c1c652-7f23-4a15-8075-6ffe005c11e6
Starting WebSocket: ws://localhost:8888/api/kernels/64c1c652-7f23-4a15-8075-6ffe005c11e6
[I 13:21:40.244 ServicesTestApp] Adapting to protocol v5.1 for kernel 7c1669cc-a94c-49ea-98d4-3101e3ba8c0e
Starting WebSocket: ws://localhost:8888/api/kernels/64c1c652-7f23-4a15-8075-6ffe005c11e6
✓ should emit a runningChanged signal (104ms)
Kernel: connected (7c1669cc-a94c-49ea-98d4-3101e3ba8c0e)
shutdown()
[I 13:21:40.416 ServicesTestApp] Kernel started: 592bb082-c7eb-4769-b209-cbec806f6cf3
Starting WebSocket: ws://localhost:8888/api/kernels/592bb082-c7eb-4769-b209-cbec806f6cf3
[I 13:21:41.391 ServicesTestApp] Adapting to protocol v5.1 for kernel 755f97f4-f2ef-45d6-8831-c7a946b35a26
Kernel: connected (755f97f4-f2ef-45d6-8831-c7a946b35a26)
[I 13:21:41.427 ServicesTestApp] Adapting to protocol v5.1 for kernel 67bb0ff6-8a2b-4d7e-ac7c-f152758845d0
Kernel: connected (67bb0ff6-8a2b-4d7e-ac7c-f152758845d0)
[I 13:21:41.642 ServicesTestApp] Adapting to protocol v5.1 for kernel 592bb082-c7eb-4769-b209-cbec806f6cf3
Kernel: connected (592bb082-c7eb-4769-b209-cbec806f6cf3)
[I 13:21:41.680 ServicesTestApp] Adapting to protocol v5.1 for kernel 64c1c652-7f23-4a15-8075-6ffe005c11e6
[I 13:21:41.681 ServicesTestApp] Adapting to protocol v5.1 for kernel 64c1c652-7f23-4a15-8075-6ffe005c11e6
Kernel: connected (64c1c652-7f23-4a15-8075-6ffe005c11e6)
Kernel: connected (64c1c652-7f23-4a15-8075-6ffe005c11e6)
[I 13:21:41.998 ServicesTestApp] Kernel shutdown: 592bb082-c7eb-4769-b209-cbec806f6cf3
✓ should shut down a kernel by id (1681ms)
[I 13:21:42.038 ServicesTestApp] Kernel started: 6fccc59e-6acd-4b7e-a98e-f46f0e24ef88
Starting WebSocket: ws://localhost:8888/api/kernels/6fccc59e-6acd-4b7e-a98e-f46f0e24ef88
[I 13:21:42.859 ServicesTestApp] Kernel shutdown: 6fccc59e-6acd-4b7e-a98e-f46f0e24ef88
✓ should emit a runningChanged signal (839ms)
[I 13:21:43.172 ServicesTestApp] Kernel shutdown: 7c1669cc-a94c-49ea-98d4-3101e3ba8c0e
[I 13:21:43.476 ServicesTestApp] Kernel shutdown: 4703a72a-5f08-4e44-844d-f2c281676a42
[I 13:21:43.781 ServicesTestApp] Kernel shutdown: 755f97f4-f2ef-45d6-8831-c7a946b35a26
[I 13:21:43.985 ServicesTestApp] Kernel shutdown: 67bb0ff6-8a2b-4d7e-ac7c-f152758845d0
Starting WebSocket: ws://localhost:8081/api/kernels/259bc90d-1b0f-48e0-889c-636a3af58e69
Connection lost, reconnecting in 8 seconds.
[I 13:21:44.188 ServicesTestApp] Kernel shutdown: 64c1c652-7f23-4a15-8075-6ffe005c11e6
kernel/messages
KernelMessage.isStreamMsg()
✓ should check for a stream message type
KernelMessage.isDisplayDataMsg()
✓ should check for a display data message type
KernelMessage.isExecuteInputMsg()
✓ should check for a execute input message type
KernelMessage.isExecuteResultMsg()
✓ should check for an execute result message type
KernelMessage.isStatusMsg()
✓ should check for a status message type
KernelMessage.isClearOutputMsg()
✓ should check for a clear output message type
KernelMessage.isCommOpenMsg()
✓ should check for a comm open message type
KernelMessage.isErrorMsg()
✓ should check for an message type
KernelMessage.isInputRequestMsg()
✓ should check for an input_request message type
kernel/validate
validateMessage
✓ should pass a valid message
✓ should throw if missing a field
✓ should throw if a field is invalid
✓ should throw if the parent header is given an invalid
✓ should throw if the channel is not a string
✓ should validate an iopub message
✓ should ignore on an unknown iopub message type
✓ should throw on missing iopub message content
✓ should throw on invalid iopub message content
✓ should handle no buffers field
#validateModel()
✓ should pass a valid id
#validateSpecModel
✓ should pass with valid data
✓ should fail on missing data
✓ should fail on incorrect data
#validateSpecModel
✓ should pass with valid data
✓ should fail on missing data
manager
ServiceManager
#constructor()
✓ should create a new service manager
#sessions
✓ should be the sessions manager instance
#contents
✓ should be the contents manager instance
#terminals
✓ should be the terminal manager instance
#isReady
✓ should test whether the manager is ready
@jupyterlab/services
ServerConnection
.makeRequest()
✓ should make a request to the server
.makeSettings()
✓ should use default settings
✓ should use baseUrl for wsUrl
✓ should handle overrides
.makeError()
✓ should create a server error from a server response
session/manager
[I 13:21:44.341 ServicesTestApp] Kernel started: 06cdb295-b76d-477a-9abe-a4d28ce59621
Starting WebSocket: ws://localhost:8888/api/kernels/06cdb295-b76d-477a-9abe-a4d28ce59621
[I 13:21:44.889 ServicesTestApp] Adapting to protocol v5.1 for kernel 06cdb295-b76d-477a-9abe-a4d28ce59621
Kernel: connected (06cdb295-b76d-477a-9abe-a4d28ce59621)
SessionManager
#constructor()
✓ should create a new session manager
#serverSettings
✓ should get the server settings
#specs
✓ should be the kernel specs
#isReady
✓ should test whether the manager is ready
#ready
✓ should resolve when the manager is ready
#running()
✓ should get the running sessions
#specsChanged
✓ should be emitted when the specs change
#runningChanged
[I 13:21:45.033 ServicesTestApp] Kernel started: cdcf5c55-4de7-4df0-8a59-62f603995426
Starting WebSocket: ws://localhost:8888/api/kernels/cdcf5c55-4de7-4df0-8a59-62f603995426
✓ should be emitted when the running sessions changed
[I 13:21:45.089 ServicesTestApp] Kernel started: 64c329e8-c2b4-4ac6-8cdf-42a4201b2d98
Starting WebSocket: ws://localhost:8888/api/kernels/64c329e8-c2b4-4ac6-8cdf-42a4201b2d98
[I 13:21:46.035 ServicesTestApp] Kernel shutdown: 64c329e8-c2b4-4ac6-8cdf-42a4201b2d98
✓ should be emitted when a session is shut down (997ms)
[W 13:21:46.038 ServicesTestApp] Timeout waiting for kernel_info reply from cf8888e8-a1bf-42fa-b0c3-7d25e0190934
[I 13:21:46.044 ServicesTestApp] Adapting to protocol v5.1 for kernel cdcf5c55-4de7-4df0-8a59-62f603995426
[E 13:21:46.046 ServicesTestApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: cf8888e8-a1bf-42fa-b0c3-7d25e0190934)
Kernel: connected (cdcf5c55-4de7-4df0-8a59-62f603995426)
✓ should be emitted when a session is renamed
[I 13:21:46.085 ServicesTestApp] Kernel started: f0d04dcf-ab8f-4703-b4b2-4d396cfec391
[I 13:21:46.388 ServicesTestApp] Kernel shutdown: 06cdb295-b76d-477a-9abe-a4d28ce59621
Starting WebSocket: ws://localhost:8888/api/kernels/f0d04dcf-ab8f-4703-b4b2-4d396cfec391
✓ should be emitted when a session changes kernels (342ms)
#refreshRunning()
✓ should refresh the list of session ids
#refreshSpecs()
✓ should refresh the specs
#startNew()
[I 13:21:46.472 ServicesTestApp] Kernel started: 80cd4c1f-f8d4-4fe3-8ced-08cf385dad19
Starting WebSocket: ws://localhost:8888/api/kernels/80cd4c1f-f8d4-4fe3-8ced-08cf385dad19
[W 13:21:46.515 ServicesTestApp] Timeout waiting for kernel_info reply from 5f7f155b-f281-4e32-a82c-483bd6b41cf0
[W 13:21:46.519 ServicesTestApp] zmq message arrived on closed channel
[E 13:21:46.525 ServicesTestApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 5f7f155b-f281-4e32-a82c-483bd6b41cf0)
[I 13:21:46.839 ServicesTestApp] Adapting to protocol v5.1 for kernel f0d04dcf-ab8f-4703-b4b2-4d396cfec391
Kernel: connected (f0d04dcf-ab8f-4703-b4b2-4d396cfec391)
[I 13:21:47.018 ServicesTestApp] Adapting to protocol v5.1 for kernel 80cd4c1f-f8d4-4fe3-8ced-08cf385dad19
Kernel: connected (80cd4c1f-f8d4-4fe3-8ced-08cf385dad19)
[I 13:21:47.368 ServicesTestApp] Kernel shutdown: 80cd4c1f-f8d4-4fe3-8ced-08cf385dad19
✓ should start a session (945ms)
[W 13:21:47.371 ServicesTestApp] Timeout waiting for kernel_info reply from 4411eefb-5f27-4abb-b4cd-a6684dd21bd5
[I 13:21:47.393 ServicesTestApp] Kernel started: 41570832-a6bf-41ef-a645-280abe0ebdc6
Starting WebSocket: ws://localhost:8888/api/kernels/41570832-a6bf-41ef-a645-280abe0ebdc6
[E 13:21:47.410 ServicesTestApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 4411eefb-5f27-4abb-b4cd-a6684dd21bd5)
[I 13:21:47.911 ServicesTestApp] Adapting to protocol v5.1 for kernel 41570832-a6bf-41ef-a645-280abe0ebdc6
Kernel: connected (41570832-a6bf-41ef-a645-280abe0ebdc6)
✓ should emit a runningChanged signal (585ms)
#findByPath()
✓ should find an existing session by path
#findById()
✓ should find an existing session by id
#connectTo()
Starting WebSocket: ws://localhost:8888/api/kernels/f0d04dcf-ab8f-4703-b4b2-4d396cfec391
✓ should connect to a running session
shutdown()
[I 13:21:47.996 ServicesTestApp] Kernel started: 92e393f7-3ce1-44b6-bd20-fad6c89a5fcf
Starting WebSocket: ws://localhost:8888/api/kernels/92e393f7-3ce1-44b6-bd20-fad6c89a5fcf
[I 13:21:48.012 ServicesTestApp] Adapting to protocol v5.1 for kernel f0d04dcf-ab8f-4703-b4b2-4d396cfec391
Kernel: connected (f0d04dcf-ab8f-4703-b4b2-4d396cfec391)
[I 13:21:48.623 ServicesTestApp] Adapting to protocol v5.1 for kernel 92e393f7-3ce1-44b6-bd20-fad6c89a5fcf
Kernel: connected (92e393f7-3ce1-44b6-bd20-fad6c89a5fcf)
[I 13:21:48.876 ServicesTestApp] Kernel shutdown: 92e393f7-3ce1-44b6-bd20-fad6c89a5fcf
✓ should shut down a session by id (908ms)
[I 13:21:48.900 ServicesTestApp] Kernel started: 6d7556cd-c03b-46d8-866f-cce89c1ed586
Starting WebSocket: ws://localhost:8888/api/kernels/6d7556cd-c03b-46d8-866f-cce89c1ed586
[W 13:21:48.916 ServicesTestApp] Timeout waiting for kernel_info reply from 0de5c05c-cb90-49a0-8ba3-0680d68ecc15
[E 13:21:48.918 ServicesTestApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 0de5c05c-cb90-49a0-8ba3-0680d68ecc15)
[I 13:21:49.379 ServicesTestApp] Adapting to protocol v5.1 for kernel 6d7556cd-c03b-46d8-866f-cce89c1ed586
Kernel: connected (6d7556cd-c03b-46d8-866f-cce89c1ed586)
[I 13:21:49.728 ServicesTestApp] Kernel shutdown: 6d7556cd-c03b-46d8-866f-cce89c1ed586
✓ should emit a runningChanged signal (851ms)
session
[I 13:21:49.950 ServicesTestApp] Kernel shutdown: f0d04dcf-ab8f-4703-b4b2-4d396cfec391
[I 13:21:50.255 ServicesTestApp] Kernel shutdown: cdcf5c55-4de7-4df0-8a59-62f603995426
[I 13:21:50.459 ServicesTestApp] Kernel shutdown: 41570832-a6bf-41ef-a645-280abe0ebdc6
[I 13:21:50.475 ServicesTestApp] Kernel started: 9c557d87-83d5-4bf9-962b-eb8daa53eec2
Starting WebSocket: ws://localhost:8888/api/kernels/9c557d87-83d5-4bf9-962b-eb8daa53eec2
[I 13:21:51.029 ServicesTestApp] Adapting to protocol v5.1 for kernel 9c557d87-83d5-4bf9-962b-eb8daa53eec2
Kernel: connected (9c557d87-83d5-4bf9-962b-eb8daa53eec2)
Session.listRunning()
✓ should yield a list of valid session models
✓ should throw an error for an invalid model
✓ should throw an error for another invalid model
✓ should fail for wrong response status
✓ should fail for error response status
Session.startNew
[I 13:21:51.101 ServicesTestApp] Kernel started: 7eaf5722-649b-4291-ac7b-af72b7a15501
Starting WebSocket: ws://localhost:8888/api/kernels/7eaf5722-649b-4291-ac7b-af72b7a15501
✓ should start a session
[I 13:21:51.645 ServicesTestApp] Adapting to protocol v5.1 for kernel 7eaf5722-649b-4291-ac7b-af72b7a15501
Kernel: connected (7eaf5722-649b-4291-ac7b-af72b7a15501)
[I 13:21:51.996 ServicesTestApp] Kernel shutdown: 7eaf5722-649b-4291-ac7b-af72b7a15501
[I 13:21:52.016 ServicesTestApp] Kernel started: d364cec2-5306-4434-98bc-7b9e8e84b758
Starting WebSocket: ws://localhost:8888/api/kernels/d364cec2-5306-4434-98bc-7b9e8e84b758
✓ should accept ajax options
[W 13:21:52.055 ServicesTestApp] Timeout waiting for kernel_info reply from 6fccc59e-6acd-4b7e-a98e-f46f0e24ef88
[E 13:21:52.057 ServicesTestApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 6fccc59e-6acd-4b7e-a98e-f46f0e24ef88)
Starting WebSocket: ws://localhost:8081/api/kernels/259bc90d-1b0f-48e0-889c-636a3af58e69
Connection lost, reconnecting in 16 seconds.
[I 13:21:52.560 ServicesTestApp] Adapting to protocol v5.1 for kernel d364cec2-5306-4434-98bc-7b9e8e84b758
Kernel: connected (d364cec2-5306-4434-98bc-7b9e8e84b758)
[I 13:21:52.913 ServicesTestApp] Kernel shutdown: d364cec2-5306-4434-98bc-7b9e8e84b758
Starting WebSocket: ws://localhost:8081/api/kernels/2ee06203-4225-4ae8-8364-5ed1e01bb071
Kernel: connected (2ee06203-4225-4ae8-8364-5ed1e01bb071)
✓ should start even if the websocket fails
✓ should fail for wrong response status
✓ should fail for error response status
✓ should fail for wrong response model
Starting WebSocket: ws://localhost:8888/api/kernels/617c0d01-bbc6-4bbc-85c1-d6ef9b0cc5c6
✓ should handle a deprecated response model
Session.findByPath()
✓ should find an existing session by path
Session.findById()
✓ should find an existing session by id
Session.connectTo()
Starting WebSocket: ws://localhost:8888/api/kernels/9c557d87-83d5-4bf9-962b-eb8daa53eec2
✓ should connect to a running session
Starting WebSocket: ws://localhost:8888/api/kernels/9c557d87-83d5-4bf9-962b-eb8daa53eec2
✓ should accept server settings
Session.shutdown()
[W 13:21:52.936 ServicesTestApp] 404 GET /api/kernels/617c0d01-bbc6-4bbc-85c1-d6ef9b0cc5c6/channels?session_id=90f38a51-ed88-4b1f-9825-ad51d023598b&token=b6533c70c3d44b57288dce271d3f989b6358ac7b414f5506 (127.0.0.1): Kernel does not exist: 617c0d01-bbc6-4bbc-85c1-d6ef9b0cc5c6
[W 13:21:52.972 ServicesTestApp] 404 GET /api/kernels/617c0d01-bbc6-4bbc-85c1-d6ef9b0cc5c6/channels?session_id=90f38a51-ed88-4b1f-9825-ad51d023598b&token=b6533c70c3d44b57288dce271d3f989b6358ac7b414f5506 (127.0.0.1) 41.78ms referer=None
Kernel: reconnecting (617c0d01-bbc6-4bbc-85c1-d6ef9b0cc5c6)
Connection lost, reconnecting in 1 seconds.
[I 13:21:52.994 ServicesTestApp] Kernel started: c2abd568-d574-47d2-afa7-ef7452891088
Starting WebSocket: ws://localhost:8888/api/kernels/c2abd568-d574-47d2-afa7-ef7452891088
[I 13:21:53.006 ServicesTestApp] Adapting to protocol v5.1 for kernel 9c557d87-83d5-4bf9-962b-eb8daa53eec2
[I 13:21:53.007 ServicesTestApp] Adapting to protocol v5.1 for kernel 9c557d87-83d5-4bf9-962b-eb8daa53eec2
Kernel: connected (9c557d87-83d5-4bf9-962b-eb8daa53eec2)
Kernel: connected (9c557d87-83d5-4bf9-962b-eb8daa53eec2)
[I 13:21:53.486 ServicesTestApp] Adapting to protocol v5.1 for kernel c2abd568-d574-47d2-afa7-ef7452891088
Kernel: connected (c2abd568-d574-47d2-afa7-ef7452891088)
[I 13:21:53.836 ServicesTestApp] Kernel shutdown: c2abd568-d574-47d2-afa7-ef7452891088
✓ should shut down a kernel by id (904ms)
[W 13:21:53.842 ServicesTestApp] 404 DELETE /api/sessions/079a8280-7998-45dc-8ab0-69290c960c04?1530796913838 (127.0.0.1): Session not found: session_id='079a8280-7998-45dc-8ab0-69290c960c04'
[W 13:21:53.842 ServicesTestApp] Session not found: session_id='079a8280-7998-45dc-8ab0-69290c960c04'
[W 13:21:53.842 ServicesTestApp] 404 DELETE /api/sessions/079a8280-7998-45dc-8ab0-69290c960c04?1530796913838 (127.0.0.1) 1.57ms referer=None
✓ should handle a 404 status
Session not found: session_id='079a8280-7998-45dc-8ab0-69290c960c04'
Session.ISession
#terminated
[I 13:21:53.861 ServicesTestApp] Kernel started: 79c0d60b-4180-452f-9ffd-74b969c221c1
Starting WebSocket: ws://localhost:8888/api/kernels/79c0d60b-4180-452f-9ffd-74b969c221c1
Starting WebSocket: ws://localhost:8888/api/kernels/617c0d01-bbc6-4bbc-85c1-d6ef9b0cc5c6
[W 13:21:53.980 ServicesTestApp] Replacing stale connection: 617c0d01-bbc6-4bbc-85c1-d6ef9b0cc5c6:90f38a51-ed88-4b1f-9825-ad51d023598b
[I 13:21:54.341 ServicesTestApp] Adapting to protocol v5.1 for kernel 79c0d60b-4180-452f-9ffd-74b969c221c1
Kernel: connected (79c0d60b-4180-452f-9ffd-74b969c221c1)
[I 13:21:54.692 ServicesTestApp] Kernel shutdown: 79c0d60b-4180-452f-9ffd-74b969c221c1
✓ should emit when the session is shut down (849ms)
#kernelChanged
[I 13:21:54.713 ServicesTestApp] Kernel started: b0ba0574-7119-4cfe-b6fc-a0b048d63230
[I 13:21:55.024 ServicesTestApp] Kernel shutdown: 9c557d87-83d5-4bf9-962b-eb8daa53eec2
Starting WebSocket: ws://localhost:8888/api/kernels/b0ba0574-7119-4cfe-b6fc-a0b048d63230
Starting WebSocket: ws://localhost:8888/api/kernels/b0ba0574-7119-4cfe-b6fc-a0b048d63230
Starting WebSocket: ws://localhost:8888/api/kernels/b0ba0574-7119-4cfe-b6fc-a0b048d63230
[W 13:21:55.033 ServicesTestApp] zmq message arrived on closed channel
[W 13:21:55.051 ServicesTestApp] Got events for closed stream None
[W 13:21:55.122 ServicesTestApp] Timeout waiting for kernel_info reply from 64c329e8-c2b4-4ac6-8cdf-42a4201b2d98
[E 13:21:55.124 ServicesTestApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 64c329e8-c2b4-4ac6-8cdf-42a4201b2d98)
[I 13:21:55.345 ServicesTestApp] Adapting to protocol v5.1 for kernel b0ba0574-7119-4cfe-b6fc-a0b048d63230
[I 13:21:55.346 ServicesTestApp] Adapting to protocol v5.1 for kernel b0ba0574-7119-4cfe-b6fc-a0b048d63230
[I 13:21:55.346 ServicesTestApp] Adapting to protocol v5.1 for kernel b0ba0574-7119-4cfe-b6fc-a0b048d63230
Kernel: connected (b0ba0574-7119-4cfe-b6fc-a0b048d63230)
Kernel: connected (b0ba0574-7119-4cfe-b6fc-a0b048d63230)
Kernel: connected (b0ba0574-7119-4cfe-b6fc-a0b048d63230)
✓ should emit when the kernel changes (707ms)
#statusChanged
✓ should emit when the kernel status changes (46ms)
#iopubMessage
✓ should be emitted for an iopub message (48ms)
#unhandledMessage
Starting WebSocket: ws://localhost:8081/api/kernels/8c5fdc0f-974a-42f5-ae68-02d3df7f8ab0
Kernel: connected (8c5fdc0f-974a-42f5-ae68-02d3df7f8ab0)
✓ should be emitted for an unhandled message
#propertyChanged
✓ should be emitted when the session path changes
#id
✓ should be a string
#path
✓ should be a string
#name
✓ should be a string
#type
✓ should be a string
#model
✓ should be an IModel
#kernel
✓ should be an IKernel object
#kernel
✓ should be a delegate to the kernel status
#serverSettings
✓ should be the serverSettings
#isDisposed
Starting WebSocket: ws://localhost:8888/api/kernels/b0ba0574-7119-4cfe-b6fc-a0b048d63230
✓ should be true after we dispose of the session
Starting WebSocket: ws://localhost:8888/api/kernels/b0ba0574-7119-4cfe-b6fc-a0b048d63230
✓ should be safe to call multiple times
#dispose()
Starting WebSocket: ws://localhost:8888/api/kernels/b0ba0574-7119-4cfe-b6fc-a0b048d63230
✓ should dispose of the resources held by the session
Starting WebSocket: ws://localhost:8888/api/kernels/b0ba0574-7119-4cfe-b6fc-a0b048d63230
✓ should be safe to call twice
Starting WebSocket: ws://localhost:8888/api/kernels/b0ba0574-7119-4cfe-b6fc-a0b048d63230
✓ should be safe to call if the kernel is disposed
#setPath()
[I 13:21:55.538 ServicesTestApp] Adapting to protocol v5.1 for kernel b0ba0574-7119-4cfe-b6fc-a0b048d63230
[I 13:21:55.538 ServicesTestApp] Adapting to protocol v5.1 for kernel b0ba0574-7119-4cfe-b6fc-a0b048d63230
[I 13:21:55.538 ServicesTestApp] Adapting to protocol v5.1 for kernel b0ba0574-7119-4cfe-b6fc-a0b048d63230
[I 13:21:55.538 ServicesTestApp] Adapting to protocol v5.1 for kernel b0ba0574-7119-4cfe-b6fc-a0b048d63230
[I 13:21:55.538 ServicesTestApp] Adapting to protocol v5.1 for kernel b0ba0574-7119-4cfe-b6fc-a0b048d63230
✓ should set the path of the session
✓ should fail for improper response status
✓ should fail for error response status
✓ should fail for improper model
Starting WebSocket: ws://localhost:8888/api/kernels/b0ba0574-7119-4cfe-b6fc-a0b048d63230
✓ should fail if the session is disposed
#setType()
[I 13:21:55.564 ServicesTestApp] Adapting to protocol v5.1 for kernel b0ba0574-7119-4cfe-b6fc-a0b048d63230
✓ should set the type of the session
✓ should fail for improper response status
✓ should fail for error response status
✓ should fail for improper model
Starting WebSocket: ws://localhost:8888/api/kernels/b0ba0574-7119-4cfe-b6fc-a0b048d63230
✓ should fail if the session is disposed
#setName()
[I 13:21:55.577 ServicesTestApp] Adapting to protocol v5.1 for kernel b0ba0574-7119-4cfe-b6fc-a0b048d63230
✓ should set the name of the session
✓ should fail for improper response status
✓ should fail for error response status
✓ should fail for improper model
Starting WebSocket: ws://localhost:8888/api/kernels/b0ba0574-7119-4cfe-b6fc-a0b048d63230
✓ should fail if the session is disposed
#changeKernel()
[I 13:21:55.602 ServicesTestApp] Kernel started: b776c57e-e66f-454a-9c96-12758d5ddbf7
Starting WebSocket: ws://localhost:8888/api/kernels/b776c57e-e66f-454a-9c96-12758d5ddbf7
[I 13:21:55.613 ServicesTestApp] Adapting to protocol v5.1 for kernel b0ba0574-7119-4cfe-b6fc-a0b048d63230
[I 13:21:56.089 ServicesTestApp] Adapting to protocol v5.1 for kernel b776c57e-e66f-454a-9c96-12758d5ddbf7
Kernel: connected (b776c57e-e66f-454a-9c96-12758d5ddbf7)
[I 13:21:56.137 ServicesTestApp] Starting buffering for b776c57e-e66f-454a-9c96-12758d5ddbf7:3f06221f-956c-4667-b37c-192ba1d6aefe
[I 13:21:56.153 ServicesTestApp] Kernel started: e24fbdbd-9c3c-45cb-b271-fe0a2f0b0e23
[I 13:21:56.456 ServicesTestApp] Kernel shutdown: b776c57e-e66f-454a-9c96-12758d5ddbf7
Starting WebSocket: ws://localhost:8888/api/kernels/e24fbdbd-9c3c-45cb-b271-fe0a2f0b0e23
[I 13:21:56.808 ServicesTestApp] Adapting to protocol v5.1 for kernel e24fbdbd-9c3c-45cb-b271-fe0a2f0b0e23
Kernel: connected (e24fbdbd-9c3c-45cb-b271-fe0a2f0b0e23)
✓ should create a new kernel with the new name (1272ms)
[I 13:21:57.060 ServicesTestApp] Kernel shutdown: e24fbdbd-9c3c-45cb-b271-fe0a2f0b0e23
[I 13:21:57.079 ServicesTestApp] Kernel started: d4281387-ccb8-4ceb-9c09-065be7936c75
Starting WebSocket: ws://localhost:8888/api/kernels/d4281387-ccb8-4ceb-9c09-065be7936c75
[I 13:21:57.555 ServicesTestApp] Adapting to protocol v5.1 for kernel d4281387-ccb8-4ceb-9c09-065be7936c75
Kernel: connected (d4281387-ccb8-4ceb-9c09-065be7936c75)
[I 13:21:57.615 ServicesTestApp] Kernel started: da8a5334-9744-4af3-8a01-7b15893acb5e
Starting WebSocket: ws://localhost:8888/api/kernels/da8a5334-9744-4af3-8a01-7b15893acb5e
[I 13:21:58.100 ServicesTestApp] Adapting to protocol v5.1 for kernel da8a5334-9744-4af3-8a01-7b15893acb5e
Kernel: connected (da8a5334-9744-4af3-8a01-7b15893acb5e)
[I 13:21:58.153 ServicesTestApp] Starting buffering for d4281387-ccb8-4ceb-9c09-065be7936c75:5de21484-ed8c-435a-aaba-0e1a180f70b6
[I 13:21:58.356 ServicesTestApp] Kernel shutdown: d4281387-ccb8-4ceb-9c09-065be7936c75
Starting WebSocket: ws://localhost:8888/api/kernels/da8a5334-9744-4af3-8a01-7b15893acb5e
[I 13:21:58.361 ServicesTestApp] Adapting to protocol v5.1 for kernel da8a5334-9744-4af3-8a01-7b15893acb5e
Kernel: connected (da8a5334-9744-4af3-8a01-7b15893acb5e)
✓ should accept the id of the new kernel (1346ms)
[I 13:21:58.612 ServicesTestApp] Kernel shutdown: da8a5334-9744-4af3-8a01-7b15893acb5e
[I 13:21:58.631 ServicesTestApp] Kernel started: c9888dd7-7151-42a0-a642-076ab70ddbd7
Starting WebSocket: ws://localhost:8888/api/kernels/c9888dd7-7151-42a0-a642-076ab70ddbd7
[I 13:21:59.139 ServicesTestApp] Adapting to protocol v5.1 for kernel c9888dd7-7151-42a0-a642-076ab70ddbd7
Kernel: connected (c9888dd7-7151-42a0-a642-076ab70ddbd7)
Starting WebSocket: ws://localhost:8888/api/kernels/c9888dd7-7151-42a0-a642-076ab70ddbd7
[I 13:21:59.189 ServicesTestApp] Starting buffering for c9888dd7-7151-42a0-a642-076ab70ddbd7:0f43b9f9-b315-49ce-a2a3-6b91eb14a1ee
[I 13:21:59.193 ServicesTestApp] Adapting to protocol v5.1 for kernel c9888dd7-7151-42a0-a642-076ab70ddbd7
Kernel: connected (c9888dd7-7151-42a0-a642-076ab70ddbd7)
✓ should update the session path if it has changed (627ms)
[I 13:21:59.546 ServicesTestApp] Kernel shutdown: c9888dd7-7151-42a0-a642-076ab70ddbd7
#shutdown()
[I 13:21:59.563 ServicesTestApp] Kernel started: f7098f4c-ee50-4373-a6c8-3cfc4ec79387
Starting WebSocket: ws://localhost:8888/api/kernels/f7098f4c-ee50-4373-a6c8-3cfc4ec79387
[I 13:22:00.377 ServicesTestApp] Kernel shutdown: f7098f4c-ee50-4373-a6c8-3cfc4ec79387
✓ should shut down properly (831ms)
[I 13:22:00.397 ServicesTestApp] Kernel started: b9a9350c-40c9-41b6-9300-afb1312fa9ea
Starting WebSocket: ws://localhost:8888/api/kernels/b9a9350c-40c9-41b6-9300-afb1312fa9ea
[I 13:22:01.211 ServicesTestApp] Kernel shutdown: b9a9350c-40c9-41b6-9300-afb1312fa9ea
✓ should emit a terminated signal (834ms)
✓ should fail for an incorrect response status
[I 13:22:01.230 ServicesTestApp] Kernel started: 9401adbd-b852-49dc-9e77-04550d7ed18c
Starting WebSocket: ws://localhost:8888/api/kernels/9401adbd-b852-49dc-9e77-04550d7ed18c
The session "f624a862-bf5b-457d-aec7-e319cb8e2dfe"" does not exist on the server
✓ should handle a 404 status
✓ should handle a specific error status
✓ should fail for an error response status
Starting WebSocket: ws://localhost:8888/api/kernels/b0ba0574-7119-4cfe-b6fc-a0b048d63230
✓ should fail if the session is disposed
[I 13:22:01.276 ServicesTestApp] Kernel started: f4f62dc4-70b7-4deb-886a-6e73bff9eb54
Starting WebSocket: ws://localhost:8888/api/kernels/f4f62dc4-70b7-4deb-886a-6e73bff9eb54
Starting WebSocket: ws://localhost:8888/api/kernels/f4f62dc4-70b7-4deb-886a-6e73bff9eb54
[I 13:22:01.291 ServicesTestApp] Adapting to protocol v5.1 for kernel b0ba0574-7119-4cfe-b6fc-a0b048d63230
[I 13:22:02.223 ServicesTestApp] Kernel shutdown: f4f62dc4-70b7-4deb-886a-6e73bff9eb54
✓ should dispose of all session instances (987ms)
[I 13:22:02.226 ServicesTestApp] Adapting to protocol v5.1 for kernel 9401adbd-b852-49dc-9e77-04550d7ed18c
[I 13:22:02.433 ServicesTestApp] Kernel shutdown: b0ba0574-7119-4cfe-b6fc-a0b048d63230
session/validate
[E 13:22:02.434 ServicesTestApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: b0ba0574-7119-4cfe-b6fc-a0b048d63230)
#validateModel()
✓ should pass a valid model
✓ should pass a deprecated model
✓ should fail on missing data
setting
SettingManager
#constructor()
✓ should accept no options
✓ should accept options
[I 13:22:02.448 ServicesTestApp] Starting buffering for 9401adbd-b852-49dc-9e77-04550d7ed18c:08640c0d-9073-4d45-bd12-abeec72e0718
#serverSettings
✓ should be the server settings
terminal
[I 13:22:02.459 ServicesTestApp] New terminal with automatic name: 1
TerminalManager
#constructor()
TermSocket.open: 1
TermSocket.open: Opened 1
✓ should accept no options
✓ should accept options
#serverSettings
✓ should get the server settings
#isReady
✓ should test whether the manager is ready
#ready
✓ should resolve when the manager is ready
#isAvailable()
✓ should test whether terminal sessions are available
#running()
✓ should give an iterator over the list of running models
#startNew()
[I 13:22:02.525 ServicesTestApp] New terminal with automatic name: 2
✓ should startNew a new terminal session
TermSocket.open: 2
TermSocket.open: Opened 2
[I 13:22:02.554 ServicesTestApp] New terminal with automatic name: 3
✓ should emit a runningChanged signal
#connectTo()
TermSocket.open: 3
TermSocket.open: Opened 3
✓ should connect to an existing session
#shutdown()
TermSocket.open: 1
TermSocket.open: Opened 1
[I 13:22:02.589 ServicesTestApp] New terminal with automatic name: 4
TermSocket.open: 4
TermSocket.open: Opened 4
[I 13:22:02.609 ServicesTestApp] EOF on FD 49; stopping reading
[I 13:22:02.711 ServicesTestApp] Terminal 4 closed
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
Websocket closed
✓ should shut down a session by id (137ms)
[I 13:22:02.732 ServicesTestApp] New terminal with automatic name: 4
TermSocket.open: 4
TermSocket.open: Opened 4
[I 13:22:02.746 ServicesTestApp] EOF on FD 49; stopping reading
[I 13:22:02.846 ServicesTestApp] Terminal 4 closed
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
Websocket closed
✓ should emit a runningChanged signal (131ms)
#runningChanged
[I 13:22:02.870 ServicesTestApp] New terminal with automatic name: 4
✓ should be emitted when the running terminals changed
#refreshRunning()
TermSocket.open: 4
TermSocket.open: Opened 4
[I 13:22:02.907 ServicesTestApp] New terminal with automatic name: 5
TermSocket.open: 5
TermSocket.open: Opened 5
✓ should update the running session models
terminal
TerminalSession
.isAvailable()
✓ should test whether terminal sessions are available
.startNew()
[I 13:22:02.964 ServicesTestApp] New terminal with automatic name: 6
[I 13:22:02.983 ServicesTestApp] New terminal with automatic name: 7
✓ should startNew a terminal session (51ms)
TermSocket.open: 6
TermSocket.open: Opened 6
TermSocket.open: 7
TermSocket.open: Opened 7
[I 13:22:03.006 ServicesTestApp] EOF on FD 36; stopping reading
[I 13:22:03.107 ServicesTestApp] Terminal 1 closed
[I 13:22:03.108 ServicesTestApp] EOF on FD 42; stopping reading
[I 13:22:03.209 ServicesTestApp] Terminal 2 closed
[I 13:22:03.209 ServicesTestApp] EOF on FD 49; stopping reading
[I 13:22:03.310 ServicesTestApp] Terminal 4 closed
[I 13:22:03.311 ServicesTestApp] EOF on FD 55; stopping reading
[I 13:22:03.411 ServicesTestApp] Terminal 5 closed
[I 13:22:03.412 ServicesTestApp] EOF on FD 45; stopping reading
[I 13:22:03.513 ServicesTestApp] Terminal 3 closed
[I 13:22:03.514 ServicesTestApp] EOF on FD 80; stopping reading
[I 13:22:03.614 ServicesTestApp] Terminal 7 closed
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
Websocket closed
Websocket closed
Websocket closed
Websocket closed
Websocket closed
Websocket closed
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
Websocket closed
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
.connectTo
✓ should give back an existing session
TermSocket.open: 6
TermSocket.open: Opened 6
[W 13:22:03.631 ServicesTestApp] 404 DELETE /api/terminals/7?1530796923626 (127.0.0.1): Terminal not found: '7'
[W 13:22:03.631 ServicesTestApp] Terminal not found: '7'
[W 13:22:03.632 ServicesTestApp] 404 DELETE /api/terminals/7?1530796923626 (127.0.0.1) 1.37ms referer=None
Terminal not found: '7'
✓ should reject if the session does not exist on the server
[W 13:22:03.638 ServicesTestApp] 404 DELETE /api/terminals/7?1530796923636 (127.0.0.1): Terminal not found: '7'
[W 13:22:03.638 ServicesTestApp] Terminal not found: '7'
[W 13:22:03.639 ServicesTestApp] 404 DELETE /api/terminals/7?1530796923636 (127.0.0.1) 1.34ms referer=None
Terminal not found: '7'
.shutdown()
[I 13:22:03.651 ServicesTestApp] New terminal with automatic name: 1
TermSocket.open: 1
TermSocket.open: Opened 1
[I 13:22:03.663 ServicesTestApp] EOF on FD 33; stopping reading
[I 13:22:03.763 ServicesTestApp] Terminal 1 closed
TermSocket.open: 4
[I 13:22:03.766 ServicesTestApp] New terminal with specified name: 4
TermSocket.open: Opened 4
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
Websocket closed
✓ should shut down a terminal session by name (141ms)
[W 13:22:03.784 ServicesTestApp] 404 DELETE /api/terminals/1?1530796923781 (127.0.0.1): Terminal not found: '1'
[W 13:22:03.785 ServicesTestApp] Terminal not found: '1'
Terminal not found: '1'
[W 13:22:03.788 ServicesTestApp] 404 DELETE /api/terminals/1?1530796923781 (127.0.0.1) 4.34ms referer=None
[W 13:22:03.790 ServicesTestApp] 404 DELETE /api/terminals/ThisTerminalDoesNotExist?1530796923787 (127.0.0.1): Terminal not found: 'ThisTerminalDoesNotExist'
[W 13:22:03.790 ServicesTestApp] Terminal not found: 'ThisTerminalDoesNotExist'
Terminal not found: 'ThisTerminalDoesNotExist'
✓ should handle a 404 status
[W 13:22:03.793 ServicesTestApp] 404 DELETE /api/terminals/ThisTerminalDoesNotExist?1530796923787 (127.0.0.1) 4.42ms referer=None
[W 13:22:03.795 ServicesTestApp] 404 DELETE /api/terminals/1?1530796923792 (127.0.0.1): Terminal not found: '1'
[W 13:22:03.796 ServicesTestApp] Terminal not found: '1'
Terminal not found: '1'
.listRunning()
[W 13:22:03.799 ServicesTestApp] 404 DELETE /api/terminals/1?1530796923792 (127.0.0.1) 4.35ms referer=None
✓ should list the running session models
[W 13:22:03.806 ServicesTestApp] 404 DELETE /api/terminals/1?1530796923803 (127.0.0.1): Terminal not found: '1'
[W 13:22:03.806 ServicesTestApp] Terminal not found: '1'
Terminal not found: '1'
.ISession
#terminated
[W 13:22:03.809 ServicesTestApp] 404 DELETE /api/terminals/1?1530796923803 (127.0.0.1) 4.32ms referer=None
[I 13:22:03.822 ServicesTestApp] New terminal with automatic name: 1
TermSocket.open: 1
TermSocket.open: Opened 1
[I 13:22:03.836 ServicesTestApp] EOF on FD 36; stopping reading
[I 13:22:03.936 ServicesTestApp] Terminal 1 closed
TermSocket.open: 4
TermSocket.open: Opened 4
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
Websocket closed
✓ should be emitted when the session is shut down (138ms)
[W 13:22:03.950 ServicesTestApp] 404 DELETE /api/terminals/1?1530796923946 (127.0.0.1): Terminal not found: '1'
[W 13:22:03.950 ServicesTestApp] Terminal not found: '1'
Terminal not found: '1'
#messageReceived
[W 13:22:03.953 ServicesTestApp] 404 DELETE /api/terminals/1?1530796923946 (127.0.0.1) 4.64ms referer=None
[I 13:22:03.965 ServicesTestApp] New terminal with automatic name: 1
TermSocket.open: 1
TermSocket.open: Opened 1
✓ should be emitted when a message is received (490ms)
[I 13:22:04.446 ServicesTestApp] EOF on FD 42; stopping reading
[I 13:22:04.546 ServicesTestApp] Terminal 1 closed
Terminal websocket closed: 1000
Websocket closed
Terminal will attempt to reconnect in 1s
#name
✓ should be the name of the session
[W 13:22:04.552 ServicesTestApp] 404 DELETE /api/terminals/1?1530796924550 (127.0.0.1): Terminal not found: '1'
[W 13:22:04.552 ServicesTestApp] Terminal not found: '1'
[W 13:22:04.552 ServicesTestApp] 404 DELETE /api/terminals/1?1530796924550 (127.0.0.1) 1.48ms referer=None
Terminal not found: '1'
#serverSettings
✓ should be the server settings of the server
[W 13:22:04.556 ServicesTestApp] 404 DELETE /api/terminals/1?1530796924554 (127.0.0.1): Terminal not found: '1'
[W 13:22:04.556 ServicesTestApp] Terminal not found: '1'
[W 13:22:04.556 ServicesTestApp] 404 DELETE /api/terminals/1?1530796924554 (127.0.0.1) 1.50ms referer=None
Terminal not found: '1'
#isDisposed
[I 13:22:04.567 ServicesTestApp] New terminal with automatic name: 1
Terminal websocket closed: undefined
TermSocket.open: 1
TermSocket.open: Opened 1
Websocket closed
[I 13:22:04.579 ServicesTestApp] EOF on FD 42; stopping reading
[I 13:22:04.680 ServicesTestApp] Terminal 1 closed
TermSocket.open: 1
[I 13:22:04.683 ServicesTestApp] New terminal with specified name: 1
Terminal reconnected
TermSocket.open: Opened 1
TermSocket.open: 1
TermSocket.open: Opened 1
TermSocket.open: 2
[I 13:22:04.701 ServicesTestApp] New terminal with specified name: 2
TermSocket.open: Opened 2
TermSocket.open: 4
TermSocket.open: Opened 4
TermSocket.open: 5
[I 13:22:04.726 ServicesTestApp] New terminal with specified name: 5
TermSocket.open: Opened 5
TermSocket.open: 3
[I 13:22:04.753 ServicesTestApp] New terminal with specified name: 3
TermSocket.open: Opened 3
TermSocket.open: 7
[I 13:22:04.779 ServicesTestApp] New terminal with specified name: 7
TermSocket.open: Opened 7
TermSocket.open: 1
TermSocket.open: Opened 1
✓ should test whether the object is disposed (291ms)
[I 13:22:04.860 ServicesTestApp] EOF on FD 44; stopping reading
[I 13:22:04.961 ServicesTestApp] Terminal 1 closed
TermSocket.open: 1
[I 13:22:04.967 ServicesTestApp] New terminal with specified name: 1
TermSocket.open: Opened 1
Websocket closed
Websocket closed
Websocket closed
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
Terminal websocket closed: 1000
Terminal websocket closed: 1000
#dispose()
✓ should dispose of the resources used by the session
[I 13:22:05.031 ServicesTestApp] New terminal with automatic name: 8
[I 13:22:05.053 ServicesTestApp] EOF on FD 74; stopping reading
[I 13:22:05.160 ServicesTestApp] Terminal 1 closed
Terminal websocket closed: undefined
TermSocket.open: 8
TermSocket.open: Opened 8
Websocket closed
Terminal websocket closed: 1000
Websocket closed
✓ should be safe to call more than once
[I 13:22:05.175 ServicesTestApp] EOF on FD 54; stopping reading
[I 13:22:05.276 ServicesTestApp] Terminal 8 closed
[I 13:22:05.289 ServicesTestApp] New terminal with automatic name: 1
TermSocket.open: 1
TermSocket.open: Opened 1
[I 13:22:05.314 ServicesTestApp] EOF on FD 54; stopping reading
[I 13:22:05.418 ServicesTestApp] Terminal 1 closed
Websocket closed
Terminal websocket closed: 1000
#isReady
[I 13:22:05.448 ServicesTestApp] New terminal with automatic name: 1
✓ should test whether the terminal is ready
TermSocket.open: 1
TermSocket.open: Opened 1
[I 13:22:05.484 ServicesTestApp] EOF on FD 44; stopping reading
[I 13:22:05.584 ServicesTestApp] Terminal 1 closed
TermSocket.open: 1
[I 13:22:05.589 ServicesTestApp] New terminal with specified name: 1
TermSocket.open: Opened 1
Websocket closed
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
#ready
✓ should resolve when the terminal is ready
[I 13:22:05.621 ServicesTestApp] EOF on FD 58; stopping reading
[I 13:22:05.722 ServicesTestApp] Terminal 1 closed
Terminal websocket closed: 1000
Websocket closed
#send()
✓ should send a message to the socket
(node:4746) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 7): Error: not opened
[W 13:22:05.729 ServicesTestApp] 404 DELETE /api/terminals/1?1530796925726 (127.0.0.1): Terminal not found: '1'
[W 13:22:05.730 ServicesTestApp] Terminal not found: '1'
[W 13:22:05.730 ServicesTestApp] 404 DELETE /api/terminals/1?1530796925726 (127.0.0.1) 2.41ms referer=None
Terminal not found: '1'
#reconnect()
[I 13:22:05.759 ServicesTestApp] New terminal with automatic name: 1
TermSocket.open: 1
TermSocket.open: Opened 1
✓ should reconnect to the socket (70ms)
TermSocket.open: 1
TermSocket.open: Opened 1
Websocket closed
[I 13:22:05.827 ServicesTestApp] EOF on FD 44; stopping reading
[I 13:22:05.928 ServicesTestApp] Terminal 1 closed
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
Websocket closed
#shutdown()
✓ should shut down the terminal session
[I 13:22:05.955 ServicesTestApp] New terminal with automatic name: 1
TermSocket.open: 1
TermSocket.open: Opened 1
Terminal websocket closed: undefined
TermSocket.open: 1
TermSocket.open: Opened 1
Websocket closed
[I 13:22:06.031 ServicesTestApp] EOF on FD 44; stopping reading
[I 13:22:06.140 ServicesTestApp] Terminal 1 closed
Websocket closed
Terminal websocket closed: 1000
Terminal will attempt to reconnect in 1s
undefined
✓ should handle a 404 status
Websocket closed
Terminal websocket closed: 1000
[W 13:22:06.149 ServicesTestApp] 404 DELETE /api/terminals/1?1530796926146 (127.0.0.1): Terminal not found: '1'
[W 13:22:06.149 ServicesTestApp] Terminal not found: '1'
[W 13:22:06.149 ServicesTestApp] 404 DELETE /api/terminals/1?1530796926146 (127.0.0.1) 1.56ms referer=None
Terminal not found: '1'
test/utils
testEmission
✓ should resolve to the given value
✓ should find the given emission
✓ should reject if the test throws an error
✓ should resolve if the test succeeds
isFulfilled
✓ should resolve to true only after a promise is fulfilled
✓ should resolve to true even if the promise is rejected
407 passing (1m)
1 pending
1 failing
1) Kernel.IKernel "before each" hook for "should be safe to call multiple times":
Error: Timeout of 20000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
Websocket closed
Websocket closed
Websocket closed
Websocket closed
Websocket closed
Websocket closed
Websocket closed
Websocket closed
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The command "bash ./scripts/travis_script.sh" exited with 1.
cache.2
store build cache
0.00s
20.50schange detected (content changed, file is created, or file is deleted):
/home/travis/.cache/pip/http/0/2/e/a/3/02ea3a40bec709fb2e3011abf56d9ff0e8a057e522b64b520bfc74fe
/home/travis/.cache/pip/http/0/6/a/1/0/06a10a01993b98a46b24126de4370c3ed430c734a40d6ac34065ddcf
/home/travis/.cache/pip/http/1/a/a/f/1/1aaf12502d9d2700532b5c7786558a9bfb4d409422398ffa270ae51d
/home/travis/.cache/pip/http/1/f/3/a/0/1f3a010a7cc3ca64eac10d62d9f15870c702fc5a0cf7712c5ae43c10
/home/travis/.cache/pip/http/2/4/9/9/6/249966c7f1e7970eeae0088cdcd48fa18209582a788c44b34dc549ce
/home/travis/.cache/pip/http/3/1/5/b/d/315bd5994915d999cc934902f11d8d89b7bce4fc77ed43b9a66f4aad
/home/travis/.cache/pip/http/3/e/9/a/4/3e9a4e7f56493e9f06407dbc32afae529f65c7ec2e8742451dcc4271
/home/travis/.cache/pip/http/4/0/0/3/2/40032a90db54f8ff245e06dca3cddd678eebbb4ff268aabed4b22291
/home/travis/.cache/pip/http/4/1/a/4/a/41a4a5b4d08d682c256c42188a3386c88748bf23a52b7c7ccc3a01f0
/home/travis/.cache/pip/http/4/5/9/7/6/45976c194ebb9180bf7410d422bcad653ce13bcb64dda0d07d72b09d
/home/travis/.cache/pip/http/4/b/a/b/f/4b
...
changes detected, packing new archive
.
.
.
uploading archive
Done. Your build exited with 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment