Skip to content

Commit 71d3ba9

Browse files
committed
(lava_callback) Add nice index page
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 354a50f commit 71d3ba9

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

src/lava_callback.py

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,33 @@ def _upload_log(log_parser, job_node, storage):
210210
@app.get('/', response_class=HTMLResponse)
211211
async def read_root():
212212
page = '''
213-
<html>
213+
<!DOCTYPE html>
214+
<html lang="en">
214215
<head>
215-
<title>KernelCI Pipeline Callback</title>
216+
<meta charset="UTF-8">
217+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
218+
<title>KernelCI Pipeline endpoint</title>
219+
<style>
220+
body { font-family: Arial, sans-serif; background: #f8f9fa; color: #222; margin: 0; padding: 0; }
221+
.container { max-width: 600px; margin: 60px auto; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); padding: 32px; }
222+
h1 { color: #0057b7; }
223+
a { color: #0057b7; text-decoration: none; }
224+
a:hover { text-decoration: underline; }
225+
.logo { width: 120px; margin-bottom: 24px; }
226+
</style>
216227
</head>
217228
<body>
218-
<h1>KernelCI Pipeline Callback</h1>
219-
<p>This is a callback endpoint for the KernelCI pipeline.</p>
229+
<div class="container">
230+
<img src="https://kernelci.org/wp-content/uploads/sites/92/2019/10/kernelci-horizontal-color.svg" alt="KernelCI Logo" class="logo"/>
231+
<h1>KernelCI Pipeline endpoint</h1>
232+
<p>Welcome! This is the <b>KernelCI Pipeline endpoint</b> REST API endpoint.</p>
233+
<p>This service receives and processes callback data from LAVA and other test systems as part of the KernelCI continuous integration pipeline.</p>
234+
<p>Also, it is used by kci-dev to interact with the pipeline.</p>
235+
<p>For more information about KernelCI, please visit <a href="https://kernelci.org/" target="_blank">kernelci.org</a>.</p>
236+
<p>API usage and integration details can be found in the <a href="https://docs.kernelci.org/" target="_blank">KernelCI documentation</a>.</p>
237+
<hr/>
238+
<p style="font-size: 0.95em; color: #888;">&copy; 2025 KernelCI Project</p>
239+
</div>
220240
</body>
221241
</html>
222242
'''

0 commit comments

Comments
 (0)