Skip to content

ci(language_server): improve test build time #10064

@Sysix

Description

@Sysix

Currently the CI use the release build for testing, which takes almost 3min.
We can use the debug build and cut the time in half.
Somehow need to tell the test setup to use another path then the default one.

Relvanted Code snippets:

CI:

name: Test
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
- uses: ./.github/actions/pnpm
- name: Build Language Server
working-directory: editors/vscode
run: pnpm run server:build:release

Debug Build:

"server:build:debug": "cargo build -p oxc_language_server",

Default Path:

// NOTE: The `./target/release` path is aligned with the path defined in .github/workflows/release_vscode.yml
return (
process.env.SERVER_PATH_DEV ??
join(context.extensionPath, `./target/release/oxc_language_server${ext}`)
);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-editorArea - Editor and Language Server

    Type

    Priority

    None yet

    Effort

    None yet

    Start date

    None yet

    Target date

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions