Submit to KCIDB #1
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: 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: | | ||
apt update -y | ||
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 | ||
with: | ||
kcidb_token: ${{ secrets.KCIDB_CREDENTIALS }} | ||
run: | | ||
Check failure on line 46 in .github/workflows/submit-kcidb.yml
|
||
cd riscvlab | ||
echo "${{ inputs.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 | ||