Skip to content

Submit to KCIDB

Submit to KCIDB #3

Workflow file for this run

name: Submit to KCIDB
defaults:
run:
shell: bash -leo pipefail {0}
on:
workflow_call:
inputs:
build-id:
description: "KernelCI build id"
required: true
type: string
logs-dir:
description: "Path to the logs directory"
required: true
type: string
workflow_dispatch:
inputs:
build-id:
description: "KernelCI build id"
required: true
type: string
logs-dir:
description: "Path to the logs directory"
required: true
type: string
jobs:
submit-results:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install poetry
run: |
sudo apt update -y
sudo apt install -y python-dev-is-python3
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
export PATH="/root/.local/bin:$PATH"
POETRY_VIRTUALENVS_CREATE=false POETRY_CACHE_DIR='/var/cache/pypoetry' POETRY_HOME='/usr/local' POETRY_VERION=2.0.0 poetry install --only=main --no-interaction --no-ansi --no-root
- name: Run submit
env:
KCIDB_TOKEN: ${{ secrets.KCIDB_CREDENTIALS }}
run: |
cd riscvlab
echo "$KCIDB_TOKEN" > kcidb.json
export GOOGLE_APPLICATION_CREDENTIALS=kcidb.json
./submit_results.py --build-id "${{ inputs.build-id }}" --logs-dir "${{ inputs.logs-dir }}" --submit-as-collections --only-print