File tree Expand file tree Collapse file tree 6 files changed +26
-11
lines changed
cursorless-vscode-e2e/src
vscode-common/src/testUtil Expand file tree Collapse file tree 6 files changed +26
-11
lines changed Original file line number Diff line number Diff line change @@ -100,13 +100,15 @@ jobs:
100100 env :
101101 NEOVIM_PATH : ${{ steps.vim.outputs.executable }}
102102
103- - name : Run neovim lua tests (Linux)
104- uses : ./.github/actions/test-neovim-lua/
105- if : runner.os == 'Linux' && matrix.app_version == 'stable'
106-
107- - name : Run neovim lua lint (Linux)
108- uses : ./.github/actions/lint-lua-ls/
109- if : runner.os == 'Linux' && matrix.app_version == 'stable'
103+ # FIXME: Re-enable neovim lua tests
104+ # https://github.com/cursorless-dev/cursorless/issues/2946
105+ # - name: Run neovim lua tests (Linux)
106+ # uses: ./.github/actions/test-neovim-lua/
107+ # if: runner.os == 'Linux' && matrix.app_version == 'stable'
108+
109+ # - name: Run neovim lua lint (Linux)
110+ # uses: ./.github/actions/lint-lua-ls/
111+ # if: runner.os == 'Linux' && matrix.app_version == 'stable'
110112
111113 - name : Create vscode dist that can be installed locally
112114 run : pnpm -F @cursorless/cursorless-vscode populate-dist --local-install
Original file line number Diff line number Diff line change 1+ export function isCI ( ) {
2+ return "CI" in process . env ;
3+ }
Original file line number Diff line number Diff line change 1+ import { isLinux } from "@cursorless/node-common" ;
12import {
23 getCursorlessApi ,
34 openNewNotebookEditor ,
@@ -6,9 +7,15 @@ import {
67import assert from "assert" ;
78import { window } from "vscode" ;
89import { endToEndTestSetup } from "../endToEndTestSetup" ;
10+ import { isCI } from "../isCI" ;
911
1012// Check that setSelection is able to focus the correct cell
1113suite ( "Cross-cell set selection" , async function ( ) {
14+ // FIXME: This test is flaky on Linux CI, so we skip it there for now
15+ if ( isCI ( ) && isLinux ( ) ) {
16+ this . ctx . skip ( ) ;
17+ }
18+
1219 endToEndTestSetup ( this ) ;
1320
1421 test ( "Cross-cell set selection" , runTest ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export * from "./FileSystemTutorialContentProvider";
55export * from "./getCursorlessRepoRoot" ;
66export * from "./getFixturePaths" ;
77export * from "./getScopeTestPathsRecursively" ;
8- export * from "./isWindows " ;
8+ export * from "./isOS " ;
99export * from "./loadFixture" ;
1010export * from "./nodeGetRunMode" ;
1111export * from "./runRecordedTest" ;
Original file line number Diff line number Diff line change @@ -3,3 +3,7 @@ import * as os from "node:os";
33export function isWindows ( ) {
44 return os . platform ( ) === "win32" ;
55}
6+
7+ export function isLinux ( ) {
8+ return os . platform ( ) === "linux" ;
9+ }
Original file line number Diff line number Diff line change @@ -103,14 +103,13 @@ export async function openNewNotebookEditor(
103103 return document ;
104104}
105105
106- function waitForEditorToOpen ( ) {
106+ function waitForEditorToOpen ( ) : Promise < void > {
107107 return new Promise < void > ( ( resolve , reject ) => {
108108 let count = 0 ;
109109 const interval = setInterval ( ( ) => {
110110 if ( vscode . window . activeTextEditor != null ) {
111111 clearInterval ( interval ) ;
112- // Give it a moment to settle
113- setTimeout ( resolve , 100 ) ;
112+ resolve ( ) ;
114113 } else {
115114 count ++ ;
116115 if ( count === 20 ) {
You can’t perform that action at this time.
0 commit comments