Introduce use_doc_values_sparse_index
for the elastic/logs
track
#2512
Workflow file for this run
This file contains 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: CI | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 14 * * *' | |
# Allows triggering the job manually | |
workflow_dispatch: | |
env: | |
DEFAULT_BRANCH: master | |
permissions: "read-all" | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: pip | |
cache-dependency-path: pyproject.toml | |
- name: "Install dependencies" | |
run: python -m pip install .[develop] | |
- uses: pre-commit/action@v3.0.0 | |
- uses: elastic/es-perf-github-status@v2 | |
if: ${{ failure() && ( github.event_name == 'schedule' || ( github.event_name == 'push' && github.ref_name == env.DEFAULT_BRANCH ) ) }} | |
with: | |
slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }} | |
slack_channel: ${{ secrets.SLACK_CHANNEL }} | |
status: FAILED | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
os: | |
- macos-13 | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
name: unit ${{ fromJson('{"macos-13":"macOS","ubuntu-latest":"Ubuntu"}')[matrix.os] }} ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
cache-dependency-path: pyproject.toml | |
- name: "Install dependencies" | |
run: python -m pip install .[develop] | |
- name: "Run tests" | |
run: hatch -v -e unit run test | |
- uses: elastic/es-perf-github-status@v2 | |
if: ${{ failure() && ( github.event_name == 'schedule' || ( github.event_name == 'push' && github.ref_name == env.DEFAULT_BRANCH ) ) }} | |
with: | |
slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }} | |
slack_channel: ${{ secrets.SLACK_CHANNEL }} | |
status: FAILED | |
rally-tracks-compat: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.12"] | |
runs-on: ubuntu-22.04 | |
name: rally-tracks-compat ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
cache-dependency-path: pyproject.toml | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: "21" | |
- run: echo "JAVA21_HOME=$JAVA_HOME_21_X64" >> $GITHUB_ENV | |
- run: echo "JAVA11_HOME=$JAVA_HOME_11_X64" >> $GITHUB_ENV | |
- name: "Install dependencies" | |
run: python -m pip install .[develop] | |
- name: "Run tests" | |
run: hatch -v -e it run test | |
timeout-minutes: 120 | |
env: | |
# elastic/endpoint fetches assets from GitHub, authenticate to avoid | |
# being rate limited | |
ASSETS_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: elastic/es-perf-github-status@v2 | |
if: ${{ failure() && ( github.event_name == 'schedule' || ( github.event_name == 'push' && github.ref_name == env.DEFAULT_BRANCH ) ) }} | |
with: | |
slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }} | |
slack_channel: ${{ secrets.SLACK_CHANNEL }} | |
status: FAILED | |
# Artifact will show up under "Artifacts" in the "Summary" page of runs | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: rally-tracks-compat-logs-${{ matrix.python-version }} | |
path: | | |
/home/runner/.rally/logs/ | |
/home/runner/.rally/benchmarks/races/**/*.log | |
if-no-files-found: error |