Skip to content

[FEATURE] Use SQL CLI tool from pipy in doctest gradle task #1281

Open
@Yury-Fridlyand

Description

@Yury-Fridlyand

Is your feature request related to a problem?

sql/doctest/build.gradle

Lines 22 to 33 in 9d4a841

task cloneSqlCli(type: Exec) {
// clone the sql-cli repo locally
commandLine 'git', 'clone', 'https://github.com/opensearch-project/sql-cli.git'
}
task bootstrap(type: Exec, dependsOn: ['cloneSqlCli']) {
inputs.file "$projectDir/bootstrap.sh"
outputs.dir "$projectDir/.venv"
commandLine 'sh', "$projectDir/bootstrap.sh"
}

Currently, doctest gradle task clones sql-cli repo.

What solution would you like?
Install sql cli tool from pipy using pip.

What alternatives have you considered?
N/A

Do you have any additional context?
Make doctest more robust too. It can't start if it crashed or interrupted by Ctrl+C without manual cleanup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    infrastructureChanges to infrastructure, testing, CI/CD, pipelines, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions