Cancellation cleanup for analytics fragments: cooperative scan + parent-deregister cascade #6926
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sandbox Check | |
| on: | |
| push: | |
| paths: | |
| - 'sandbox/**' | |
| pull_request: | |
| paths: | |
| - 'sandbox/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| sandbox-check: | |
| if: github.repository == 'opensearch-project/OpenSearch' | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| timeout-minutes: 90 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Remove unnecessary files | |
| run: | | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 | |
| with: | |
| java-version: 25 | |
| distribution: temurin | |
| cache: gradle | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable | |
| - name: Install protobuf compiler | |
| run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | |
| - name: Cache Cargo registry | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 #v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('sandbox/**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo- | |
| - name: Set Cargo build jobs | |
| run: echo "CARGO_BUILD_JOBS=$(nproc)" >> $GITHUB_ENV | |
| - name: Run sandbox check | |
| run: ./gradlew check -p sandbox -Dsandbox.enabled=true -PrustDebug | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: sandbox-test-results | |
| path: sandbox/**/build/reports/tests/ | |
| retention-days: 7 |