Skip to content

Commit 4eed4b6

Browse files
Merge branch 'add-nipa-runtime' of https://github.com/nuclearcat/kernelci-pipeline into HEAD
2 parents 78cfcd7 + 54ef1aa commit 4eed4b6

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

config/pipeline.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ _anchors:
103103
result: pass
104104
kind: kbuild
105105

106+
job-event: &job-event
107+
channel: node
108+
state: done
109+
kind: job
110+
106111
### Frequently used rules
107112

108113
build-only-trees-rules: &build-only-trees-rules
@@ -2071,6 +2076,13 @@ jobs:
20712076
- mainline
20722077
- stable-rc
20732078
kcidb_test_suite: kernelci_wifi_basic
2079+
2080+
nipa-update:
2081+
template: nipa-update.jinja2
2082+
kind: test
2083+
image: kernelci/{image_prefix}kernelci
2084+
kcidb_test_suite: kernelci_nipa-update
2085+
20742086

20752087
trees:
20762088

@@ -3682,6 +3694,17 @@ scheduler:
36823694
- rk3399-gru-kevin
36833695
- rk3399-rock-pi-4b
36843696

3697+
# Execute nipa-update on the blktests-ddp-x86 node
3698+
# complete with the blktests-ddp-x86 event
3699+
- job: nipa-update
3700+
event:
3701+
<<: *job-event
3702+
name: blktests-ddp-x86
3703+
runtime:
3704+
type: shell
3705+
name: nipa-update
3706+
3707+
36853708
# -----------------------------------------------------------------------------
36863709
# Legacy configuration data (still used by trigger service)
36873710
#

config/runtime/nipa-update.jinja2

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{# -*- mode: Python -*- -#}
2+
{# SPDX-License-Identifier: LGPL-2.1-or-later -#}
3+
4+
{%- extends 'base/python.jinja2' %}
5+
6+
{%- block python_imports %}
7+
{{ super() }}
8+
import json
9+
import subprocess
10+
{%- endblock %}
11+
12+
{%- block python_local_imports %}
13+
{{ super() }}
14+
import kernelci.api.helper
15+
import kernelci.runtime
16+
{%- endblock %}
17+
18+
{%- block python_globals %}
19+
{{ super() }}
20+
REVISION = {{ node.data.kernel_revision }}
21+
NODEID = {{ node.id }}
22+
{% endblock %}
23+
24+
{% block python_job_constr -%}
25+
REVISION, NODEID, {{ super() }}
26+
{%- endblock %}
27+
28+
{% block python_job -%}
29+
class Job(BaseJob):
30+
31+
def __init__(self, revision, nodeid, *args, **kwargs):
32+
super().__init__(*args, **kwargs)
33+
self._revision = revision
34+
self._nodeid = nodeid
35+
36+
def _run(self, src_path):
37+
print("Executing nipa-update")
38+
# TODO: Implement nipa-update
39+
40+
return 'pass'
41+
{% endblock %}

0 commit comments

Comments
 (0)