Skip to content

Commit 71ebf4f

Browse files
Merge branch 'main' into customCommandDocs
2 parents 038d999 + cffef99 commit 71ebf4f

File tree

6 files changed

+26
-11
lines changed

6 files changed

+26
-11
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff 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
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function isCI() {
2+
return "CI" in process.env;
3+
}

packages/cursorless-vscode-e2e/src/suite/crossCellsSetSelection.vscode.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { isLinux } from "@cursorless/node-common";
12
import {
23
getCursorlessApi,
34
openNewNotebookEditor,
@@ -6,9 +7,15 @@ import {
67
import assert from "assert";
78
import { window } from "vscode";
89
import { endToEndTestSetup } from "../endToEndTestSetup";
10+
import { isCI } from "../isCI";
911

1012
// Check that setSelection is able to focus the correct cell
1113
suite("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);

packages/node-common/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export * from "./FileSystemTutorialContentProvider";
55
export * from "./getCursorlessRepoRoot";
66
export * from "./getFixturePaths";
77
export * from "./getScopeTestPathsRecursively";
8-
export * from "./isWindows";
8+
export * from "./isOS";
99
export * from "./loadFixture";
1010
export * from "./nodeGetRunMode";
1111
export * from "./runRecordedTest";

packages/node-common/src/isWindows.ts renamed to packages/node-common/src/isOS.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ import * as os from "node:os";
33
export function isWindows() {
44
return os.platform() === "win32";
55
}
6+
7+
export function isLinux() {
8+
return os.platform() === "linux";
9+
}

packages/vscode-common/src/testUtil/openNewEditor.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)