Skip to content

Conversation

JenySadadia
Copy link
Collaborator

@JenySadadia JenySadadia commented Sep 30, 2025

Depends on kernelci/kernelci-core#3001

Implement a service to run a cron job in pipeline. This cron job will run kci-dev maestro validate
command to run validation for builds and boots results of maestro against webdashboard.
The cron job is scheduled to run every Sunday at 12:00 AM.
The report will be uploaded to storage. An email notification will be sent out with report URL.

@JenySadadia JenySadadia force-pushed the cron-service branch 2 times, most recently from a8ec0ac to 7503823 Compare October 1, 2025 07:01
@JenySadadia JenySadadia marked this pull request as ready for review October 1, 2025 07:02
@JenySadadia JenySadadia force-pushed the cron-service branch 7 times, most recently from 70d9705 to 3d375d2 Compare October 7, 2025 12:57
@aliceinwire
Copy link
Member

The code inside kernelci-pipeline should be only relevant to "Modular pipeline based on the KernelCI API"
This code, as is not part of "Modular pipeline based on the KernelCI API", but looks more like a system for getting reports, should be in an ad-hoc sysadmin repository for reports.

@JenySadadia JenySadadia force-pushed the cron-service branch 7 times, most recently from 5b0763c to 06be9a9 Compare October 13, 2025 11:29
#
# Copyright (C) 2025 Collabora Limited
# Author: Jeny Sadadia <[email protected]>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated it.

@@ -0,0 +1,9 @@
UPLOAD_PATH="kci-dev/report"
FILE_PATH="/home/kernelci/logs/"
STORAGE_URL="https://files-staging.kernelci.org/"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will restrict us only to use kernelci-storage and we will have to duplicate secret data that is already available for kernelci-pipeline services in kernelci-secrets.toml (default storage config, then [storage.name] section and storage_cred. Same for email, we was using email data in toml file, so better we keep using this config for such data.
Even if we can leave kernelci-storage only for now, we should use toml file as configuration, otherwise it will significantly complicate deployment procedure and multiply places where secrets kept.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you suggest to skip uploading report on the storage and directly send an email?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about I use the same pipeline .env that other services are already using?

@@ -0,0 +1,13 @@
default_instance="production"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's an example file. We need to create kci-dev.toml to make the command work.


cron:
container_name: 'kernelci-pipeline-cron'
build:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be used in production, we should specify image name in registry

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I'll work on that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed it.

@JenySadadia JenySadadia force-pushed the cron-service branch 3 times, most recently from a6551b8 to abca922 Compare October 17, 2025 07:12
Implement a service to run a cron job in pipeline.
This cron job will run `kci-dev maestro validate`
command to run validation for builds and boots
results of maestro against webdashboard.
The cron job is scheduled to run every Sunday
at 12:00 AM.
The report will be uploaded to storage.
An email notification will be sent out with
report URL and its content.

Signed-off-by: Jeny Sadadia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants