Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/sql-doctest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: SQL Doctest CI

on:
pull_request:
push:
branches-ignore:
- 'dependabot/**'
paths:
- '**/*.java'
- '**/*.g4'
- '!sql-jdbc/**'
- '**gradle*'
- '**/*.jar'
- '**/*.pom'
- 'doctest/**'
- 'docs/**'
- '.github/workflows/sql-doctest.yml'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Build with Gradle
run: ./gradlew :doctest:doctest
4 changes: 3 additions & 1 deletion doctest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ task stopOpenSearch(type: KillProcessTask)
doctest.dependsOn startOpenSearch
doctest.finalizedBy stopOpenSearch

build.dependsOn doctest
// Deactivate doctest in the main gradle workflow (./gradlew build), because doctest depends
// on ML plugin and it ruins SQL plugin build if ML plugin is not available (not released)
// build.dependsOn doctest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it's for CI only, maybe disable in workflow instead of removing doctest from build task?

But could you explain more on why? If ml-commons is missing and doctest cannot run, we should not merge in PR anyways since we don't know if the PR breaks other doctests

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should not merge in PR anyways

I agree. Unfortunately, gradle runs doctests before integration tests and before most of the unit tests. This results in a PR with failed SQL Java CI workflow, which crashed on doctests.
The proposed change unblocks UT and IT from doctest. The PR will remain blocked by a failing CI workflow - SQL Doctest CI. We will be able to identify that all tests really pass and we are waiting for ML release to complete the PR.

clean.dependsOn(cleanBootstrap)

// 2.0.0-alpha1-SNAPSHOT -> 2.0.0.0-alpha1-SNAPSHOT
Expand Down