-
Notifications
You must be signed in to change notification settings - Fork 179
Add workflow for SQL CLI integration tests #4770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add workflow for SQL CLI integration tests #4770
Conversation
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
| - 'api/**' | ||
| - 'sql/**' | ||
| - 'ppl/**' | ||
| - 'core/**' | ||
| - 'opensearch/**' | ||
| - 'common/**' | ||
| - 'protocol/**' | ||
| - '**/*.gradle' | ||
| - '.github/workflows/sql-cli-integration-test.yml' | ||
| push: | ||
| branches: | ||
| - main | ||
| - '[0-9]+.[0-9]+' | ||
| - '[0-9]+.x' | ||
| paths: | ||
| - 'api/**' | ||
| - 'sql/**' | ||
| - 'ppl/**' | ||
| - 'core/**' | ||
| - 'opensearch/**' | ||
| - 'common/**' | ||
| - 'protocol/**' | ||
| - '**/*.gradle' | ||
| - '.github/workflows/sql-cli-integration-test.yml' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious why do we need these paths, why shouldn't we run this for all updates (except docs)? can path-ignore be shorter here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just nice to have if we only match what we need, I updated these to match what we have for sql-test-and-build-workflow instead.
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
|
CLI tests passed |
|
This PR is stalled because it has been open for 2 weeks with no activity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you give an example what breaking change this PR try to capture? What should we do if this failed, e.g., revert my changes or go to CLI to change code accordingly? Is this required because CLI allow user to fetch dev branch like main?
|
e.g. the forceCleanup method being added to RestClient's interface: https://github.com/opensearch-project/sql-cli/pull/39/files#diff-2536e76d9e0730c06e4fd3954ee536137427d864e87357d9bf722c92740306b6R324 |
|
CI is broken after this PR merged @Swiddis |
* Add workflow for SQL CLI integration tests Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Switch SQL checkout path for CLI Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Tweak paths and mkdir for remote Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Fix filename Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Remove redundant verification Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Don't pull after clone Signed-off-by: Simeon Widdis <sawiddis@amazon.com> --------- Signed-off-by: Simeon Widdis <sawiddis@amazon.com> Signed-off-by: Asif Bashar <asif.bashar@gmail.com>
* Add workflow for SQL CLI integration tests Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Switch SQL checkout path for CLI Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Tweak paths and mkdir for remote Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Fix filename Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Remove redundant verification Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Don't pull after clone Signed-off-by: Simeon Widdis <sawiddis@amazon.com> --------- Signed-off-by: Simeon Widdis <sawiddis@amazon.com> Signed-off-by: Asif Bashar <asif.bashar@gmail.com>
* Add workflow for SQL CLI integration tests Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Switch SQL checkout path for CLI Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Tweak paths and mkdir for remote Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Fix filename Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Remove redundant verification Signed-off-by: Simeon Widdis <sawiddis@amazon.com> * Don't pull after clone Signed-off-by: Simeon Widdis <sawiddis@amazon.com> --------- Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Description
Companion to opensearch-project/sql-cli#42: Runs some tests & checks against basic compilation breakage for the SQL CLI.
The CLI tests aren't very robust. For better testing, I understand the plan is to wait for the PPL unification that @dai-chen is working on and write a suite around it.
At some point I'll need to make the
_shard_docchanges configurable and start testing on a compatibility matrix, but this at least should keep the live branches of each repo in sync for now.Related Issues
N/A
Check List
--signoffor-s.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.