forked from jupyterlab/jupyterlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix circular dependencies that pollutes version bump (jupyterlab#12495)
* Create @jupyterlab/testing Move tests from codeeditor to codemirror This is needed to respect package hierarchy Refactor test to have logical dependencies graph * Add all test dependencies for coreutils * Internalize retry setup and server start up * Remove testutils from new files * Restore the testutils API as much as possible * Fix tests * Fix debugger tests * Update timeout for flaky test * Fix setup/teardown * Advice to use `runInBand` when running locally * Fix running all tests at once locally * [skip ci] Update docs/source/extension/extension_migration.rst Co-authored-by: Jeremy Tuloup <[email protected]> * Increase timeout for last timed out test Locally all tests are passing (thanks to the --runInBand option) Hopefully this one can pass on the CI too. * Automatic application of license header * Undo custom timeout setting * Apply changes to @jupyterlab/metadataform Co-authored-by: Jeremy Tuloup <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
92f5734
commit 1d36ce5
Showing
295 changed files
with
2,779 additions
and
2,427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
"path": "." | ||
}, | ||
{ | ||
"path": "../../testutils" | ||
"path": "../../packages/testing" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
"path": "." | ||
}, | ||
{ | ||
"path": "../../testutils" | ||
"path": "../testing" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright (c) Jupyter Development Team. | ||
* Distributed under the terms of the Modified BSD License. | ||
*/ | ||
|
||
import { ServiceManager } from '@jupyterlab/services'; | ||
import { UUID } from '@lumino/coreutils'; | ||
import { SessionContext } from './sessioncontext'; | ||
|
||
/** | ||
* Create a client session object. | ||
*/ | ||
export async function createSessionContext( | ||
options: Partial<SessionContext.IOptions> = {} | ||
): Promise<SessionContext> { | ||
const manager = options.sessionManager ?? Private.getManager().sessions; | ||
const specsManager = options.specsManager ?? Private.getManager().kernelspecs; | ||
|
||
await Promise.all([manager.ready, specsManager.ready]); | ||
return new SessionContext({ | ||
sessionManager: manager, | ||
specsManager, | ||
path: options.path ?? UUID.uuid4(), | ||
name: options.name, | ||
type: options.type, | ||
kernelPreference: options.kernelPreference ?? { | ||
shouldStart: true, | ||
canStart: true, | ||
name: specsManager.specs?.default | ||
} | ||
}); | ||
} | ||
|
||
/** | ||
* A namespace for private data. | ||
*/ | ||
namespace Private { | ||
let manager: ServiceManager; | ||
|
||
/** | ||
* Get or create the service manager singleton. | ||
*/ | ||
export function getManager(): ServiceManager { | ||
if (!manager) { | ||
manager = new ServiceManager({ standby: 'never' }); | ||
} | ||
return manager; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.