File tree Expand file tree Collapse file tree 2 files changed +52
-1
lines changed Expand file tree Collapse file tree 2 files changed +52
-1
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change 4
4
import yaml
5
5
import os
6
6
from test_results .submit .submitters .tests_submitter import KSelftestsResultsSubmitter
7
- from kci .node import get_node , create_node , update_node
8
7
9
8
logger = logging .getLogger (__name__ )
10
9
You can’t perform that action at this time.
0 commit comments