Skip to content

Commit 7e02400

Browse files
Merge branch 'main' into csharpScopes2
2 parents f839241 + cffef99 commit 7e02400

File tree

5 files changed

+24
-11
lines changed

5 files changed

+24
-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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sleep } from "@cursorless/common";
1+
import { isLinux } from "@cursorless/node-common";
22
import {
33
getCursorlessApi,
44
openNewNotebookEditor,
@@ -7,9 +7,15 @@ import {
77
import assert from "assert";
88
import { window } from "vscode";
99
import { endToEndTestSetup } from "../endToEndTestSetup";
10+
import { isCI } from "../isCI";
1011

1112
// Check that setSelection is able to focus the correct cell
1213
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+
1319
endToEndTestSetup(this);
1420

1521
test("Cross-cell set selection", runTest);
@@ -20,8 +26,6 @@ async function runTest() {
2026

2127
await openNewNotebookEditor(['"hello"', '"world"']);
2228

23-
await sleep(200);
24-
2529
await hatTokenMap.allocateHats();
2630

2731
await runCursorlessCommand({

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+
}

0 commit comments

Comments
 (0)