Skip to content

Commit 7985fbc

Browse files
committed
KCIDB Workflow submitter
Signed-off-by: Camila Alvarez <cam.alvarez.i@gmail.com>
1 parent 86e8929 commit 7985fbc

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

.github/workflows/submit-kcidb.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Submit to KCIDB
2+
3+
defaults:
4+
run:
5+
shell: bash -leo pipefail {0}
6+
7+
on:
8+
workflow_call:
9+
inputs:
10+
build-id:
11+
description: "KernelCI build id"
12+
required: true
13+
type: string
14+
logs-dir:
15+
description: "Path to the logs directory"
16+
required: true
17+
type: string
18+
workflow_dispatch:
19+
inputs:
20+
build-id:
21+
description: "KernelCI build id"
22+
required: true
23+
type: string
24+
logs-dir:
25+
description: "Path to the logs directory"
26+
required: true
27+
type: string
28+
jobs:
29+
submit-results:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
- name: Install poetry
35+
run: |
36+
apt update -y
37+
apt install -y python-dev-is-python3
38+
curl -sSL https://install.python-poetry.org | python3 -
39+
- name: Install dependencies
40+
run: |
41+
export PATH="/root/.local/bin:$PATH"
42+
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
43+
- name: Run submit
44+
with:
45+
kcidb_token: ${{ secrets.KCIDB_CREDENTIALS }}
46+
run: |
47+
cd riscvlab
48+
echo "${{ inputs.kcidb_token }}" > kcidb.json
49+
export GOOGLE_APPLICATION_CREDENTIALS=kcidb.json
50+
./submit_results.py --build-id "${{ inputs.build-id }}" --logs-dir "${{ inputs.logs-dir }}" --submit-as-collections --only-print
51+
52+

riscvlab/kci/kci_submitter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import yaml
55
import os
66
from test_results.submit.submitters.tests_submitter import KSelftestsResultsSubmitter
7-
from kci.node import get_node, create_node, update_node
87

98
logger = logging.getLogger(__name__)
109

0 commit comments

Comments
 (0)