add custom user plugin support
cover add custom user plugin support
This adds custom user plugin support to kdevops, so that users can define their own workflows without having to upstream the solution to kdevops. This lets anyone benefit from kdevops without having to contribute to it. These custom workflows can be simply silly R&D or proprietary workflows.
I provide one public workflow example, my knlp project as an AI R&D project which hast custom training innovations being evaluated. To add my plugin I just do:
make kdevops-plugin-add https://github.com/mcgrof/knlp
And it unpacks the inferred .kdevops*.xz tarball to the user's ~/.config/kdevops/plugins/knlp/ directory in this example. To list installed plugins:
make kdevops-plugin-list
Installed plugins:
NAME VERSION SOURCE ---- ------- ------ knlp 1.0.0 https://github.com/mcgrof/knlp
While at it also update our image of what kdevops as we had not updated it for along time. Add an svg image we can later use to enhance this further as we evolve. we can use it as input with generative AI as the project adds new fautures.
Luis Chamberlain (2):
kdevops: Add versioned plugin system for workflows
images: Update kdevops diagram with new design
Kconfig | 4 + Makefile | 1 + Makefile.plugins | 66 ++ docs/kdevops-terraform.md | 62 +- docs/plugins.md | 407 ++++++++ docs/user-workflows/README.md | 148 +++ docs/user-workflows/example-knlp/Kconfig | 10 + docs/user-workflows/example-knlp/Makefile | 14 + .../defconfigs/configs/knlp.config | 11 + .../example-knlp/playbooks/knlp.yml | 10 + .../playbooks/roles/devconfig/tasks/knlp.yml | 27 + .../playbooks/roles/devconfig/tasks/main.yml | 14 + .../playbooks/roles/gen_hosts/tasks/main.yml | 17 + .../roles/gen_hosts/templates/knlp.j2 | 33 + .../playbooks/roles/gen_nodes/tasks/main.yml | 36 + .../playbooks/roles/knlp/defaults/main.yml | 8 + .../playbooks/roles/knlp/tasks/main.yml | 30 + .../example-knlp/workflows/knlp/Kconfig | 44 + .../example-knlp/workflows/knlp/Makefile | 28 + images/kdevops-diagram.png | Bin 72760 -> 813420 bytes images/kdevops-diagram.svg | 398 ++++++++ kconfigs/Kconfig.plugins_stub | 8 + kconfigs/Kconfig.user_stub | 5 + kconfigs/Kconfig.user_workflows | 90 ++ playbooks/roles/devconfig/tasks/main.yml | 19 + playbooks/roles/gen_hosts/tasks/main.yml | 19 + playbooks/roles/gen_nodes/tasks/main.yml | 19 + scripts/get_plugins_kconfig.sh | 18 + scripts/get_user_kconfig.sh | 18 + scripts/kconfig/kconfig.Makefile | 14 +- scripts/kdevops-plugin.sh | 918 ++++++++++++++++++ workflows/Makefile | 14 + 32 files changed, 2501 insertions(+), 9 deletions(-) create mode 100644 Makefile.plugins create mode 100644 docs/plugins.md create mode 100644 docs/user-workflows/README.md create mode 100644 docs/user-workflows/example-knlp/Kconfig create mode 100644 docs/user-workflows/example-knlp/Makefile create mode 100644 docs/user-workflows/example-knlp/defconfigs/configs/knlp.config create mode 100644 docs/user-workflows/example-knlp/playbooks/knlp.yml create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/devconfig/tasks/knlp.yml create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/devconfig/tasks/main.yml create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/gen_hosts/tasks/main.yml create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/gen_hosts/templates/knlp.j2 create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/gen_nodes/tasks/main.yml create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/knlp/defaults/main.yml create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/knlp/tasks/main.yml create mode 100644 docs/user-workflows/example-knlp/workflows/knlp/Kconfig create mode 100644 docs/user-workflows/example-knlp/workflows/knlp/Makefile create mode 100644 images/kdevops-diagram.svg create mode 100644 kconfigs/Kconfig.plugins_stub create mode 100644 kconfigs/Kconfig.user_stub create mode 100644 kconfigs/Kconfig.user_workflows create mode 100755 scripts/get_plugins_kconfig.sh create mode 100755 scripts/get_user_kconfig.sh create mode 100755 scripts/kdevops-plugin.sh
Signature · 1 line
2.51.0
PATCH 1/2 kdevops: Add versioned plugin system for workflows
This extends the user-private workflows infrastructure to support a versioned plugin system that allows workflows to be distributed from external repositories, tarballs, or local directories.
Plugins are installed to ~/.config/kdevops/plugins/<name>/ and are automatically integrated into the kdevops build system through generated Kconfig.plugins and Makefile.plugins files. Configuration using plugins is marked as tainted to indicate externally-maintained content.
The plugin management commands support positional arguments for ease of use. GitHub repositories are fetched via curl as tarballs for speed. Local directories with a .kdevops/ subdirectory and compressed tarballs are also supported as plugin sources.
The User-private workflows menu is placed at the top level of menuconfig rather than nested under Kdevops configuration for better visibility.
--- Kconfig | 4 + Makefile | 1 + Makefile.plugins | 66 ++ docs/kdevops-terraform.md | 62 +- docs/plugins.md | 407 ++++++++ docs/user-workflows/README.md | 148 +++ docs/user-workflows/example-knlp/Kconfig | 10 + docs/user-workflows/example-knlp/Makefile | 14 + .../defconfigs/configs/knlp.config | 11 + .../example-knlp/playbooks/knlp.yml | 10 + .../playbooks/roles/devconfig/tasks/knlp.yml | 27 + .../playbooks/roles/devconfig/tasks/main.yml | 14 + .../playbooks/roles/gen_hosts/tasks/main.yml | 17 + .../roles/gen_hosts/templates/knlp.j2 | 33 + .../playbooks/roles/gen_nodes/tasks/main.yml | 36 + .../playbooks/roles/knlp/defaults/main.yml | 8 + .../playbooks/roles/knlp/tasks/main.yml | 30 + .../example-knlp/workflows/knlp/Kconfig | 44 + .../example-knlp/workflows/knlp/Makefile | 28 + images/kdevops-diagram.png | Bin 72760 -> 813420 bytes kconfigs/Kconfig.plugins_stub | 8 + kconfigs/Kconfig.user_stub | 5 + kconfigs/Kconfig.user_workflows | 90 ++ playbooks/roles/devconfig/tasks/main.yml | 19 + playbooks/roles/gen_hosts/tasks/main.yml | 19 + playbooks/roles/gen_nodes/tasks/main.yml | 19 + scripts/get_plugins_kconfig.sh | 18 + scripts/get_user_kconfig.sh | 18 + scripts/kconfig/kconfig.Makefile | 14 +- scripts/kdevops-plugin.sh | 918 ++++++++++++++++++ workflows/Makefile | 14 + 31 files changed, 2103 insertions(+), 9 deletions(-) create mode 100644 Makefile.plugins create mode 100644 docs/plugins.md create mode 100644 docs/user-workflows/README.md create mode 100644 docs/user-workflows/example-knlp/Kconfig create mode 100644 docs/user-workflows/example-knlp/Makefile create mode 100644 docs/user-workflows/example-knlp/defconfigs/configs/knlp.config create mode 100644 docs/user-workflows/example-knlp/playbooks/knlp.yml create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/devconfig/tasks/knlp.yml create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/devconfig/tasks/main.yml create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/gen_hosts/tasks/main.yml create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/gen_hosts/templates/knlp.j2 create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/gen_nodes/tasks/main.yml create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/knlp/defaults/main.yml create mode 100644 docs/user-workflows/example-knlp/playbooks/roles/knlp/tasks/main.yml create mode 100644 docs/user-workflows/example-knlp/workflows/knlp/Kconfig create mode 100644 docs/user-workflows/example-knlp/workflows/knlp/Makefile create mode 100644 kconfigs/Kconfig.plugins_stub create mode 100644 kconfigs/Kconfig.user_stub create mode 100644 kconfigs/Kconfig.user_workflows create mode 100755 scripts/get_plugins_kconfig.sh create mode 100755 scripts/get_user_kconfig.sh create mode 100755 scripts/kdevops-plugin.sh
Kconfig +4 -0
@@ -71,3 +71,7 @@ endmenu menu "Kdevops configuration" source "kconfigs/Kconfig.kdevops" endmenu + +menu "User-private workflows" +source "kconfigs/Kconfig.user_workflows" +endmenu
Makefile +1 -0
@@ -101,6 +101,7 @@ ANSIBLE_EXTRA_ARGS_DIRECT := include Makefile.extra_vars include scripts/ansible.Makefile +include Makefile.plugins LIMIT_HOSTS := ifneq (,$(HOSTS))
Makefile.plugins new file +66 -0
66 lines not on this page · raw message
docs/kdevops-terraform.md +55 -7
89 lines not on this page · raw message
docs/plugins.md new file +407 -0
407 lines not on this page · raw message
docs/user-workflows/README.md new file +148 -0
148 lines not on this page · raw message
docs/user-workflows/example-knlp/Kconfig new file +10 -0
@@ -0,0 +1,10 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# User-private Kconfig for kdevops workflows +# +# This file is sourced by kdevops when KDEVOPS_USER_CONFIG_ENABLE=y +# and placed at ~/.config/kdevops/Kconfig +# +# Source your workflow Kconfigs here: + +source "$(shell, echo $HOME/.config/kdevops/workflows/knlp/Kconfig)"
docs/user-workflows/example-knlp/Makefile new file +14 -0
@@ -0,0 +1,14 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# User-private Makefile for kdevops workflows +# +# This file is included by kdevops when KDEVOPS_USER_CONFIG_ENABLE=y +# and placed at ~/.config/kdevops/Makefile +# +# Include your workflow Makefiles here: + +USER_CONFIG_DIR := $(CONFIG_KDEVOPS_USER_CONFIG_DIR_EXPANDED) + +ifeq (y,$(CONFIG_KDEVOPS_USER_WORKFLOW_KNLP)) +include $(USER_CONFIG_DIR)/workflows/knlp/Makefile +endif
docs/user-workflows/example-knlp/defconfigs/configs/knlp.config new file +11 -0
@@ -0,0 +1,11 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# KNLP user-private workflow fragment +# +# This fragment enables user-private workflows, which will source +# your ~/.config/kdevops/Kconfig and enable the KNLP workflow. +# +# Usage: make defconfig-<base>+knlp +# Example: make defconfig-datacrunch-b200-or-less+knlp + +CONFIG_KDEVOPS_USER_CONFIG_ENABLE=y
docs/user-workflows/example-knlp/playbooks/knlp.yml new file +10 -0
@@ -0,0 +1,10 @@ +--- +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# User-private KNLP playbook + +- name: Setup knlp ML research workflow + hosts: all + gather_facts: yes + roles: + - role: "{{ kdevops_user_config_dir_expanded }}/playbooks/roles/knlp"
docs/user-workflows/example-knlp/playbooks/roles/devconfig/tasks/knlp.yml new file +27 -0
@@ -0,0 +1,27 @@ +--- +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# KNLP ML research workflow setup tasks + +- name: Create knlp data directory + become: true + become_flags: "su - -c" + become_method: sudo + ansible.builtin.file: + path: "{{ workflow_knlp_data_path }}" + state: directory + owner: "{{ ansible_user_id }}" + group: "{{ ansible_user_id }}" + mode: "0755" + +- name: Clone knlp repository + ansible.builtin.git: + repo: "{{ workflow_knlp_git_url }}" + dest: "{{ workflow_knlp_data_path }}" + version: "{{ workflow_knlp_git_ref }}" + update: yes + +- name: Install knlp Python requirements + ansible.builtin.pip: + requirements: "{{ workflow_knlp_data_path }}/requirements.txt" + virtualenv: "{{ ansible_env.HOME }}/.venv"
docs/user-workflows/example-knlp/playbooks/roles/devconfig/tasks/main.yml new file +14 -0
@@ -0,0 +1,14 @@ +--- +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# User-private devconfig tasks +# +# These tasks are included by kdevops devconfig role when +# KDEVOPS_USER_CONFIG_ENABLE=y + +- name: Setup KNLP ML research workflow + ansible.builtin.include_tasks: knlp.yml + when: + - kdevops_user_workflow_knlp is defined + - kdevops_user_workflow_knlp|bool + tags: ["knlp", "ml"]
docs/user-workflows/example-knlp/playbooks/roles/gen_hosts/tasks/main.yml new file +17 -0
@@ -0,0 +1,17 @@ +--- +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# User-private gen_hosts tasks for KNLP workflow + +- name: Generate the Ansible hosts file for user-private KNLP setup + tags: ['hosts'] + ansible.builtin.template: + src: "{{ kdevops_user_config_dir_expanded }}/playbooks/roles/gen_hosts/templates/knlp.j2" + dest: "{{ ansible_cfg_inventory }}" + force: true + trim_blocks: True + lstrip_blocks: True + mode: '0644' + when: + - kdevops_user_workflow_knlp|default(false)|bool + - not kdevops_use_declared_hosts|default(false)|bool
docs/user-workflows/example-knlp/playbooks/roles/gen_hosts/templates/knlp.j2 new file +33 -0
@@ -0,0 +1,33 @@ +{# User-private workflow template for knlp ML research #} +[all] +localhost ansible_connection=local +{{ kdevops_host_prefix }}-knlp +{% if kdevops_baseline_and_dev %} +{{ kdevops_host_prefix }}-knlp-dev +{% endif %} + +[all:vars] +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" + +[baseline] +{{ kdevops_host_prefix }}-knlp + +[baseline:vars] +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" + +{% if kdevops_baseline_and_dev %} +[dev] +{{ kdevops_host_prefix }}-knlp-dev + +[dev:vars] +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" + +{% endif %} +[knlp] +{{ kdevops_host_prefix }}-knlp +{% if kdevops_baseline_and_dev %} +{{ kdevops_host_prefix }}-knlp-dev +{% endif %} + +[knlp:vars] +ansible_python_interpreter = "{{ kdevops_python_interpreter }}"
docs/user-workflows/example-knlp/playbooks/roles/gen_nodes/tasks/main.yml new file +36 -0
@@ -0,0 +1,36 @@ +--- +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# User-private gen_nodes tasks for KNLP workflow + +- name: Generate the KNLP kdevops nodes file + tags: ['hosts'] + vars: + node_template: "{{ kdevops_nodes_template | basename }}" + nodes: "{{ [kdevops_host_prefix + '-knlp'] }}" + all_generic_nodes: "{{ [kdevops_host_prefix + '-knlp'] }}" + ansible.builtin.template: + src: "{{ node_template }}" + dest: "{{ topdir_path }}/{{ kdevops_nodes }}" + force: true + mode: "0644" + when: + - kdevops_user_workflow_knlp|default(false)|bool + - ansible_nodes_template.stat.exists + - not kdevops_baseline_and_dev + +- name: Generate the KNLP kdevops nodes file with dev hosts + tags: ['hosts'] + vars: + node_template: "{{ kdevops_nodes_template | basename }}" + nodes: "{{ [kdevops_host_prefix + '-knlp', kdevops_host_prefix + '-knlp-dev'] }}" + all_generic_nodes: "{{ [kdevops_host_prefix + '-knlp', kdevops_host_prefix + '-knlp-dev'] }}" + ansible.builtin.template: + src: "{{ node_template }}" + dest: "{{ topdir_path }}/{{ kdevops_nodes }}" + force: true + mode: "0644" + when: + - kdevops_user_workflow_knlp|default(false)|bool + - ansible_nodes_template.stat.exists + - kdevops_baseline_and_dev
docs/user-workflows/example-knlp/playbooks/roles/knlp/defaults/main.yml new file +8 -0
@@ -0,0 +1,8 @@ +--- +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# User-private KNLP role defaults + +knlp_git_url: "https://github.com/mcgrof/knlp.git" +knlp_git_ref: "main" +knlp_data_path: "/data/knlp"
docs/user-workflows/example-knlp/playbooks/roles/knlp/tasks/main.yml new file +30 -0
@@ -0,0 +1,30 @@ +--- +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# User-private KNLP role tasks + +- name: Ensure parent directory exists for knlp + ansible.builtin.file: + path: "{{ knlp_data_path | dirname }}" + state: directory + mode: '0755' + become: yes + tags: + - knlp + +- name: Clone knlp repository + ansible.builtin.git: + repo: "{{ workflow_knlp_git_url | default(knlp_git_url) }}" + dest: "{{ workflow_knlp_data | default(knlp_data_path) }}" + version: "{{ workflow_knlp_git_ref | default(knlp_git_ref) }}" + update: yes + tags: + - knlp + +- name: Install knlp Python requirements + ansible.builtin.pip: + requirements: "{{ workflow_knlp_data | default(knlp_data_path) }}/requirements.txt" + virtualenv: "{{ ansible_env.HOME }}/.venv" + virtualenv_command: python3 -m venv + tags: + - knlp
docs/user-workflows/example-knlp/workflows/knlp/Kconfig new file +44 -0
44 lines not on this page · raw message
docs/user-workflows/example-knlp/workflows/knlp/Makefile new file +28 -0
@@ -0,0 +1,28 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# User-private KNLP workflow Makefile + +ifeq (y,$(CONFIG_KDEVOPS_USER_WORKFLOW_KNLP)) + +USER_CONFIG_DIR := $(CONFIG_KDEVOPS_USER_CONFIG_DIR_EXPANDED) +KNLP_ARGS := + +export KNLP_DATA := $(subst ",,$(CONFIG_WORKFLOW_KNLP_DATA_PATH)) + +WORKFLOW_ARGS += workflow_knlp_data='$(KNLP_DATA)' + +knlp: + $(Q)ansible-playbook $(ANSIBLE_VERBOSE) \ + -f 30 -i hosts -l all \ + $(USER_CONFIG_DIR)/playbooks/knlp.yml \ + --extra-vars=@./extra_vars.yaml $(KNLP_ARGS) + +knlp-help-menu: + @echo "knlp workflow targets:" + @echo "knlp - Setup knlp on target systems" + +HELP_TARGETS += knlp-help-menu + +PHONY += knlp + +endif # CONFIG_KDEVOPS_USER_WORKFLOW_KNLP
images/kdevops-diagram.png binary +0 -0
kconfigs/Kconfig.plugins_stub new file +8 -0
@@ -0,0 +1,8 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# Stub file for when no kdevops plugins are installed. +# +# This file is sourced when ~/.config/kdevops/Kconfig.plugins does not exist. +# Install plugins using: make kdevops-plugin-add URL=<git-url> + +# No plugins installed - this is a placeholder
kconfigs/Kconfig.user_stub new file +5 -0
@@ -0,0 +1,5 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# Stub file for user Kconfig when no user configuration exists. +# This file is intentionally empty and is only sourced when the +# user's ~/.config/kdevops/Kconfig does not exist.
kconfigs/Kconfig.user_workflows new file +90 -0
90 lines not on this page · raw message
playbooks/roles/devconfig/tasks/main.yml +19 -0
@@ -746,3 +746,22 @@ when: - devconfig_enable_kotd|bool tags: ["kotd"] + +- name: Check if user-private devconfig tasks exist + delegate_to: localhost + run_once: true + ansible.builtin.stat: + path: "{{ kdevops_user_config_dir_expanded }}/playbooks/roles/devconfig/tasks/main.yml" + register: user_devconfig_tasks + when: + - kdevops_user_config_enable is defined + - kdevops_user_config_enable|bool + +- name: Include user-private devconfig tasks + ansible.builtin.include_tasks: "{{ kdevops_user_config_dir_expanded }}/playbooks/roles/devconfig/tasks/main.yml" + when: + - kdevops_user_config_enable is defined + - kdevops_user_config_enable|bool + - user_devconfig_tasks.stat is defined + - user_devconfig_tasks.stat.exists + tags: ["user-workflows"]
playbooks/roles/gen_hosts/tasks/main.yml +19 -0
@@ -345,6 +345,25 @@ - ansible_hosts_template.stat.exists - not kdevops_use_declared_hosts|default(false)|bool +# User-private workflow hosts +# Allows users to define custom host generation tasks in their private config directory + +- name: Check for user-private gen_hosts tasks + ansible.builtin.stat: + path: "{{ kdevops_user_config_dir_expanded }}/playbooks/roles/gen_hosts/tasks/main.yml" + register: user_gen_hosts_tasks + when: + - kdevops_user_config_enable|default(false)|bool + - kdevops_user_config_dir_expanded is defined + +- name: Include user-private gen_hosts tasks + ansible.builtin.include_tasks: + file: "{{ kdevops_user_config_dir_expanded }}/playbooks/roles/gen_hosts/tasks/main.yml" + when: + - kdevops_user_config_enable|default(false)|bool + - kdevops_user_config_dir_expanded is defined + - user_gen_hosts_tasks.stat.exists|default(false) + - name: Verify if final host file exists ansible.builtin.stat: path: "{{ ansible_cfg_inventory }}"
playbooks/roles/gen_nodes/tasks/main.yml +19 -0
@@ -1247,3 +1247,22 @@ index_var: idx when: - kdevops_enable_guestfs|bool + +# User-private workflow nodes +# Allows users to define custom node generation tasks in their private config directory + +- name: Check for user-private gen_nodes tasks + ansible.builtin.stat: + path: "{{ kdevops_user_config_dir_expanded }}/playbooks/roles/gen_nodes/tasks/main.yml" + register: user_gen_nodes_tasks + when: + - kdevops_user_config_enable|default(false)|bool + - kdevops_user_config_dir_expanded is defined + +- name: Include user-private gen_nodes tasks + ansible.builtin.include_tasks: + file: "{{ kdevops_user_config_dir_expanded }}/playbooks/roles/gen_nodes/tasks/main.yml" + when: + - kdevops_user_config_enable|default(false)|bool + - kdevops_user_config_dir_expanded is defined + - user_gen_nodes_tasks.stat.exists|default(false)
scripts/get_plugins_kconfig.sh new file +18 -0
@@ -0,0 +1,18 @@ +#!/bin/bash +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# Returns the path to the plugins Kconfig file if it exists, +# otherwise returns the path to the stub file. +# +# This script is called by Kconfig's $(shell, ...) syntax to +# dynamically source installed plugin configurations. + +PLUGINS_DIR="${HOME}/.config/kdevops/plugins" +PLUGINS_KCONFIG="${HOME}/.config/kdevops/Kconfig.plugins" +STUB_KCONFIG="kconfigs/Kconfig.plugins_stub" + +if [ -f "${PLUGINS_KCONFIG}" ]; then + echo "${PLUGINS_KCONFIG}" +else + echo "${STUB_KCONFIG}" +fi
scripts/get_user_kconfig.sh new file +18 -0
@@ -0,0 +1,18 @@ +#!/bin/bash +# SPDX-License-Identifier: copyleft-next-0.3.1 +# +# Returns the path to the user's Kconfig file if it exists, +# otherwise returns the path to the stub file. +# +# This script is called by Kconfig's $(shell, ...) syntax to +# dynamically source user-private workflow configurations. + +USER_CONFIG_DIR="${HOME}/.config/kdevops" +USER_KCONFIG="${USER_CONFIG_DIR}/Kconfig" +STUB_KCONFIG="kconfigs/Kconfig.user_stub" + +if [ -f "${USER_KCONFIG}" ]; then + echo "${USER_KCONFIG}" +else + echo "${STUB_KCONFIG}" +fi
scripts/kconfig/kconfig.Makefile +12 -2
@@ -61,7 +61,9 @@ $(simple-targets): $(KCONFIG_DIR)/conf Kconfig # Usage: make defconfig-<base>+<fragment> # Example: make defconfig-datacrunch-b200-or-less+myworkflow # -# The fragment is looked up in defconfigs/configs/<fragment>.config +# Fragments are looked up in order: +# 1. ~/.config/kdevops/defconfigs/configs/<fragment>.config (user-private) +# 2. defconfigs/configs/<fragment>.config (repository) # Multiple fragments can be chained: make defconfig-base+frag1+frag2 defconfig-%:: $(KCONFIG_DIR)/conf include/config/project.release Kconfig @STEM="$(@:defconfig-%=%)"; \
@@ -69,8 +71,16 @@ defconfig-%:: $(KCONFIG_DIR)/conf include/config/project.release Kconfig BASE=$$(echo "$$STEM" | cut -d'+' -f1); \ FRAGS=$$(echo "$$STEM" | cut -d'+' -f2- | tr '+' ' '); \ FRAG_FILES=""; \ + USER_CFG_DIR="$$HOME/.config/kdevops"; \ for f in $$FRAGS; do \ - FRAG_FILES="$$FRAG_FILES defconfigs/configs/$$f.config"; \ + if [ -f "$$USER_CFG_DIR/defconfigs/configs/$$f.config" ]; then \ + FRAG_FILES="$$FRAG_FILES $$USER_CFG_DIR/defconfigs/configs/$$f.config"; \ + elif [ -f "defconfigs/configs/$$f.config" ]; then \ + FRAG_FILES="$$FRAG_FILES defconfigs/configs/$$f.config"; \ + else \ + echo "Error: Fragment '$$f' not found in user or repo configs" >&2; \ + exit 1; \ + fi; \ done; \ $(KCONFIG_DIR)/merge_config.sh -m -Q defconfigs/$$BASE $$FRAG_FILES && \ $< --defconfig=.config Kconfig; \
scripts/kdevops-plugin.sh new file +918 -0
918 lines not on this page · raw message
workflows/Makefile +14 -0
@@ -86,6 +86,20 @@ ifeq (y,$(CONFIG_KDEVOPS_WORKFLOW_ENABLE_BUILD_LINUX)) include workflows/build-linux/Makefile endif # CONFIG_KDEVOPS_WORKFLOW_ENABLE_BUILD_LINUX == y +# User-private workflows support +ifeq (y,$(CONFIG_KDEVOPS_USER_CONFIG_ENABLE)) +USER_MAKEFILE := $(CONFIG_KDEVOPS_USER_CONFIG_DIR_EXPANDED)/Makefile +ifneq ($(wildcard $(USER_MAKEFILE)),) +include $(USER_MAKEFILE) +endif +endif # CONFIG_KDEVOPS_USER_CONFIG_ENABLE == y + +# Plugin system support - include plugin Makefiles if available +PLUGINS_MAKEFILE := $(HOME)/.config/kdevops/Makefile.plugins +ifneq ($(wildcard $(PLUGINS_MAKEFILE)),) +include $(PLUGINS_MAKEFILE) +endif + ANSIBLE_EXTRA_ARGS += $(WORKFLOW_ARGS) ANSIBLE_EXTRA_ARGS_SEPARATED += $(WORKFLOW_ARGS_SEPARATED) ANSIBLE_EXTRA_ARGS_DIRECT += $(WORKFLOW_ARGS_DIRECT)
Signature · 1 line
2.51.0
PATCH 2/2 images: Update kdevops diagram with new design
In reply to Luis ChamberlainReplace the existing kdevops diagram with an updated version that reflects the current architecture. The SVG source file is now also included in the repository for future editing.
--- images/kdevops-diagram.svg | 398 +++++++++++++++++++++++++++++++++++++ 1 file changed, 398 insertions(+) create mode 100644 images/kdevops-diagram.svg
images/kdevops-diagram.svg new file +398 -0
@@ -0,0 +1,398 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 1050"> + <defs> + <!-- Gradients --> + <linearGradient id="bgGrad" x1="0%" y1="0%" x2="100%" y2="100%"> + <stop offset="0%" style="stop-color:#0a0e14;stop-opacity:1" /> + <stop offset="100%" style="stop-color:#1a1f2e;stop-opacity:1" /> + </linearGradient> + + <linearGradient id="headerGrad" x1="0%" y1="0%" x2="100%" y2="0%"> + <stop offset="0%" style="stop-color:#ff6b35" /> + <stop offset="50%" style="stop-color:#f7931a" /> + <stop offset="100%" style="stop-color:#ffcc00" /> + </linearGradient> + + <linearGradient id="infraGrad" x1="0%" y1="0%" x2="0%" y2="100%"> + <stop offset="0%" style="stop-color:#3b82f6" /> + <stop offset="100%" style="stop-color:#1d4ed8" /> + </linearGradient> + + <linearGradient id="neocloudGrad" x1="0%" y1="0%" x2="0%" y2="100%"> + <stop offset="0%" style="stop-color:#ec4899" /> + <stop offset="100%" style="stop-color:#be185d" /> + </linearGradient> + + <linearGradient id="kernelGrad" x1="0%" y1="0%" x2="0%" y2="100%"> + <stop offset="0%" style="stop-color:#22c55e" /> + <stop offset="100%" style="stop-color:#16a34a" /> + </linearGradient> + + <linearGradient id="storageGrad" x1="0%" y1="0%" x2="0%" y2="100%"> + <stop offset="0%" style="stop-color:#a855f7" /> + <stop offset="100%" style="stop-color:#7c3aed" /> + </linearGradient> + + <linearGradient id="perfGrad" x1="0%" y1="0%" x2="0%" y2="100%"> + <stop offset="0%" style="stop-color:#06b6d4" /> + <stop offset="100%" style="stop-color:#0891b2" /> + </linearGradient> + + <linearGradient id="aiGrad" x1="0%" y1="0%" x2="0%" y2="100%"> + <stop offset="0%" style="stop-color:#f43f5e" /> + <stop offset="100%" style="stop-color:#e11d48" /> + </linearGradient> + + <linearGradient id="customGrad" x1="0%" y1="0%" x2="0%" y2="100%"> + <stop offset="0%" style="stop-color:#8b5cf6" /> + <stop offset="100%" style="stop-color:#6d28d9" /> + </linearGradient> + + <linearGradient id="ciGrad" x1="0%" y1="0%" x2="0%" y2="100%"> + <stop offset="0%" style="stop-color:#f59e0b" /> + <stop offset="100%" style="stop-color:#d97706" /> + </linearGradient> + + <!-- Glow filters --> + <filter id="glow"> + <feGaussianBlur stdDeviation="3" result="coloredBlur"/> + <feMerge> + <feMergeNode in="coloredBlur"/> + <feMergeNode in="SourceGraphic"/> + </feMerge> + </filter> + + <filter id="softGlow"> + <feGaussianBlur stdDeviation="2" result="coloredBlur"/> + <feMerge> + <feMergeNode in="coloredBlur"/> + <feMergeNode in="SourceGraphic"/> + </feMerge> + </filter> + + <!-- Pattern for subtle texture --> + <pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"> + <path d="M 40 0 L 0 0 0 40" fill="none" stroke="#ffffff" stroke-width="0.3" opacity="0.05"/> + </pattern> + </defs> + + <!-- Background --> + <rect width="100%" height="100%" fill="url(#bgGrad)"/> + <rect width="100%" height="100%" fill="url(#grid)"/> + + <!-- Title --> + <text x="600" y="50" text-anchor="middle" fill="url(#headerGrad)" font-family="'Segoe UI', system-ui, sans-serif" font-size="42" font-weight="700" filter="url(#glow)">kdevops</text> + <text x="600" y="78" text-anchor="middle" fill="#94a3b8" font-family="'Segoe UI', system-ui, sans-serif" font-size="16" font-weight="400">Linux Kernel Development & AI/ML Infrastructure Automation</text> + + <!-- Tagline --> + <text x="600" y="100" text-anchor="middle" fill="#64748b" font-family="'Segoe UI', system-ui, sans-serif" font-size="12" font-style="italic">Software 3.0 Enabler • Kconfig Variability • Ansible Automation • GenAI Ready</text> + + <!-- ==================== INFRASTRUCTURE TARGETS (Top Left) ==================== --> + <g transform="translate(30, 125)"> + <rect x="0" y="0" width="270" height="175" rx="12" fill="#0f172a" stroke="#3b82f6" stroke-width="2" opacity="0.9"/> + <rect x="0" y="0" width="270" height="38" rx="12" fill="url(#infraGrad)" opacity="0.9"/> + <rect x="0" y="26" width="270" height="12" fill="url(#infraGrad)" opacity="0.9"/> + + <text x="135" y="26" text-anchor="middle" fill="#ffffff" font-family="'Segoe UI', system-ui, sans-serif" font-size="14" font-weight="600">🖥️ Traditional Infrastructure</text> + + <g fill="#e2e8f0" font-family="'Segoe UI', system-ui, sans-serif" font-size="12"> + <text x="18" y="60"><tspan fill="#60a5fa">▸</tspan> Bare Metal Hosts</text> + <text x="18" y="82"><tspan fill="#60a5fa">▸</tspan> libguestfs / libvirt VMs</text> + <text x="18" y="104"><tspan fill="#60a5fa">▸</tspan> AWS / GCP / Azure</text> + <text x="18" y="126"><tspan fill="#60a5fa">▸</tspan> Oracle Cloud (OCI)</text> + <text x="18" y="148"><tspan fill="#60a5fa">▸</tspan> OpenStack</text> + <text x="18" y="170"><tspan fill="#60a5fa">▸</tspan> PCIe Passthrough</text> + </g> + </g> + + <!-- ==================== NEOCLOUDS (Top Left-Center) ==================== --> + <g transform="translate(320, 125)"> + <rect x="-2" y="-2" width="204" height="179" rx="13" fill="none" stroke="#ec4899" stroke-width="1" opacity="0.3"/> + <rect x="0" y="0" width="200" height="175" rx="12" fill="#0f172a" stroke="#ec4899" stroke-width="2" opacity="0.95"/> + <rect x="0" y="0" width="200" height="38" rx="12" fill="url(#neocloudGrad)" opacity="0.95"/> + <rect x="0" y="26" width="200" height="12" fill="url(#neocloudGrad)" opacity="0.95"/> + + <text x="185" y="26" text-anchor="end" fill="#fef3c7" font-family="'Segoe UI', system-ui, sans-serif" font-size="8" font-weight="600">NEW</text> + + <text x="90" y="26" text-anchor="middle" fill="#ffffff" font-family="'Segoe UI', system-ui, sans-serif" font-size="14" font-weight="600">🚀 Neoclouds</text> + + <g fill="#e2e8f0" font-family="'Segoe UI', system-ui, sans-serif" font-size="12"> + <text x="18" y="60"><tspan fill="#f472b6">▸</tspan> Lambda Labs</text> + <text x="18" y="82"><tspan fill="#f472b6">▸</tspan> DataCrunch</text> + <text x="18" y="104" fill="#a1a1aa" font-size="11">(more coming...)</text> + </g> + + <g transform="translate(15, 115)"> + <rect x="0" y="0" width="170" height="50" rx="6" fill="#1e1b2e" stroke="#ec4899" stroke-width="1" opacity="0.7"/> + <text x="85" y="16" text-anchor="middle" fill="#f9a8d4" font-family="'Segoe UI', system-ui, sans-serif" font-size="9" font-weight="500">GPU-Ready Instances</text> + <text x="85" y="32" text-anchor="middle" fill="#d1d5db" font-family="monospace" font-size="8">H100 • A100 • GH200</text> + <text x="85" y="45" text-anchor="middle" fill="#d1d5db" font-family="monospace" font-size="8">B200 • B300 • RTX 4090</text> + </g> + </g> + + <!-- ==================== KERNEL TESTING (Top Center) ==================== --> + <g transform="translate(540, 125)"> + <rect x="0" y="0" width="210" height="175" rx="12" fill="#0f172a" stroke="#22c55e" stroke-width="2" opacity="0.9"/> + <rect x="0" y="0" width="210" height="38" rx="12" fill="url(#kernelGrad)" opacity="0.9"/> + <rect x="0" y="26" width="210" height="12" fill="url(#kernelGrad)" opacity="0.9"/> + + <text x="105" y="26" text-anchor="middle" fill="#ffffff" font-family="'Segoe UI', system-ui, sans-serif" font-size="14" font-weight="600">🐧 Kernel Testing</text> + + <g fill="#e2e8f0" font-family="'Segoe UI', system-ui, sans-serif" font-size="12"> + <text x="18" y="60"><tspan fill="#4ade80">▸</tspan> Linux Build & Deploy</text> + <text x="18" y="82"><tspan fill="#4ade80">▸</tspan> selftests (parallel)</text> + <text x="18" y="104"><tspan fill="#4ade80">▸</tspan> LTP Suite</text> + <text x="18" y="126"><tspan fill="#4ade80">▸</tspan> mmtests (A/B)</text> + <text x="18" y="148"><tspan fill="#4ade80">▸</tspan> reboot-limit</text> + <text x="18" y="170"><tspan fill="#4ade80">▸</tspan> gitr</text> + </g> + </g> + + <!-- ==================== FILESYSTEM TESTING (Top Center-Right) ==================== --> + <g transform="translate(770, 125)"> + <rect x="0" y="0" width="200" height="175" rx="12" fill="#0f172a" stroke="#a855f7" stroke-width="2" opacity="0.9"/> + <rect x="0" y="0" width="200" height="38" rx="12" fill="url(#storageGrad)" opacity="0.9"/> + <rect x="0" y="26" width="200" height="12" fill="url(#storageGrad)" opacity="0.9"/> + + <text x="100" y="26" text-anchor="middle" fill="#ffffff" font-family="'Segoe UI', system-ui, sans-serif" font-size="14" font-weight="600">📁 Storage Testing</text> + + <g fill="#e2e8f0" font-family="'Segoe UI', system-ui, sans-serif" font-size="12"> + <text x="18" y="60"><tspan fill="#c084fc">▸</tspan> fstests</text> + <text x="18" y="82"><tspan fill="#c084fc">▸</tspan> blktests</text> + <text x="18" y="104"><tspan fill="#c084fc">▸</tspan> NFS / pynfs</text> + <text x="18" y="126"><tspan fill="#c084fc">▸</tspan> LBS / CXL</text> + <text x="18" y="148"><tspan fill="#c084fc">▸</tspan> Zoned Storage</text> + <text x="18" y="170"><tspan fill="#c084fc">▸</tspan> MinIO Warp</text> + </g> + </g> + + <!-- ==================== PERFORMANCE (Top Right) ==================== --> + <g transform="translate(990, 125)"> + <rect x="0" y="0" width="180" height="175" rx="12" fill="#0f172a" stroke="#06b6d4" stroke-width="2" opacity="0.9"/> + <rect x="0" y="0" width="180" height="38" rx="12" fill="url(#perfGrad)" opacity="0.9"/> + <rect x="0" y="26" width="180" height="12" fill="url(#perfGrad)" opacity="0.9"/> + + <text x="90" y="26" text-anchor="middle" fill="#ffffff" font-family="'Segoe UI', system-ui, sans-serif" font-size="14" font-weight="600">⚡ Performance</text> + + <g fill="#e2e8f0" font-family="'Segoe UI', system-ui, sans-serif" font-size="12"> + <text x="18" y="60"><tspan fill="#22d3ee">▸</tspan> fio-tests (blk/fs)</text> + <text x="18" y="82"><tspan fill="#22d3ee">▸</tspan> sysbench</text> + <text x="18" y="104"><tspan fill="#22d3ee">▸</tspan> mmtests</text> + <text x="18" y="126"><tspan fill="#22d3ee">▸</tspan> A/B Comparison</text> + <text x="18" y="148"><tspan fill="#22d3ee">▸</tspan> HTML Reports</text> + <text x="18" y="170"><tspan fill="#22d3ee">▸</tspan> Statistics</text> + </g> + </g> + + <!-- ==================== CENTRAL kdevops CORE ==================== --> + <g transform="translate(400, 330)"> + <path d="M200,0 L380,50 L380,150 L200,200 L20,150 L20,50 Z" + fill="#1e293b" stroke="url(#headerGrad)" stroke-width="3" opacity="0.95"/> + + <text x="200" y="45" text-anchor="middle" fill="url(#headerGrad)" font-family="'Segoe UI', system-ui, sans-serif" font-size="26" font-weight="700" filter="url(#softGlow)">kdevops Core</text> + + <!-- Console-style command box --> + <g transform="translate(40, 60)"> + <rect x="0" y="0" width="320" height="40" rx="4" fill="#000000" stroke="#333333" stroke-width="1"/> + <text x="8" y="16" fill="#4ade80" font-family="'Courier New', monospace" font-size="9">$</text> + <text x="20" y="16" fill="#e2e8f0" font-family="'Courier New', monospace" font-size="9">make menuconfig; make; make bringup</text> + <text x="8" y="32" fill="#4ade80" font-family="'Courier New', monospace" font-size="9">$</text> + <text x="20" y="32" fill="#e2e8f0" font-family="'Courier New', monospace" font-size="9">make linux; make fstests</text> + </g> + + <g fill="#cbd5e1" font-family="'Segoe UI', system-ui, sans-serif" font-size="11" text-anchor="middle"> + <text x="200" y="120" fill="#94a3b8">─────────────────────────</text> + <text x="200" y="140" fill="#f8fafc" font-size="12">Kconfig • Ansible • Terraform/OpenTofu</text> + <text x="200" y="160" fill="#f8fafc" font-size="12">libguestfs • YAML Variables</text> + </g> + </g> + + <!-- ==================== CUSTOM WORKFLOWS (Middle Right) ==================== --> + <g transform="translate(820, 340)"> + <rect x="-2" y="-2" width="354" height="194" rx="13" fill="none" stroke="#8b5cf6" stroke-width="1" opacity="0.3"/> + <rect x="0" y="0" width="350" height="190" rx="12" fill="#0f172a" stroke="#8b5cf6" stroke-width="2" opacity="0.95"/> + <rect x="0" y="0" width="350" height="40" rx="12" fill="url(#customGrad)" opacity="0.95"/> + <rect x="0" y="28" width="350" height="12" fill="url(#customGrad)" opacity="0.95"/> + + <text x="335" y="28" text-anchor="end" fill="#fef3c7" font-family="'Segoe UI', system-ui, sans-serif" font-size="8" font-weight="600">NEW</text> + + <text x="165" y="28" text-anchor="middle" fill="#ffffff" font-family="'Segoe UI', system-ui, sans-serif" font-size="15" font-weight="600">🔧 Workflow Merging with +</text> + + <!-- Two columns: Supported vs Private --> + <g transform="translate(15, 50)"> + <!-- Supported workflows --> + <rect x="0" y="0" width="155" height="75" rx="6" fill="#1e1b2e" stroke="#4ade80" stroke-width="1"/> + <g fill="#cbd5e1" font-family="'Segoe UI', system-ui, sans-serif" font-size="10"> + <text x="10" y="20"><tspan fill="#4ade80">+</tspan>vllm-production-stack</text> + <text x="10" y="40"><tspan fill="#4ade80">+</tspan>fstests</text> + <text x="10" y="60"><tspan fill="#4ade80">+</tspan>blktests</text> + </g> + + <!-- Private workflows --> + <rect x="165" y="0" width="155" height="75" rx="6" fill="#1e1b2e" stroke="#a78bfa" stroke-width="1" stroke-dasharray="4,2"/> + <g fill="#9ca3af" font-family="'Segoe UI', system-ui, sans-serif" font-size="10"> + <text x="175" y="20"><tspan fill="#a78bfa">+</tspan>myresearch</text> + <text x="175" y="40"><tspan fill="#a78bfa">+</tspan>proprietary-ml</text> + <text x="175" y="60"><tspan fill="#a78bfa">+</tspan>internal-tests</text> + </g> + </g> + + <g fill="#e2e8f0" font-family="'Segoe UI', system-ui, sans-serif" font-size="11"> + <text x="18" y="145"><tspan fill="#a78bfa">▸</tspan> No upstream requirement for private</text> + <text x="18" y="163"><tspan fill="#a78bfa">▸</tspan> Custom host prefixes</text> + <text x="18" y="181"><tspan fill="#a78bfa">▸</tspan> Mix and match freely</text> + </g> + </g> + + <!-- ==================== AI/ML WORKFLOWS (Bottom Center, Prominent) ==================== --> + <g transform="translate(30, 565)"> + <rect x="-3" y="-3" width="766" height="201" rx="15" fill="none" stroke="#f43f5e" stroke-width="1" opacity="0.25"/> + + <rect x="0" y="0" width="760" height="195" rx="14" fill="#0f172a" stroke="#f43f5e" stroke-width="2" opacity="0.95"/> + <rect x="0" y="0" width="760" height="44" rx="14" fill="url(#aiGrad)" opacity="0.95"/> + <rect x="0" y="32" width="760" height="12" fill="url(#aiGrad)" opacity="0.95"/> + + <text x="740" y="30" text-anchor="end" fill="#fef3c7" font-family="'Segoe UI', system-ui, sans-serif" font-size="8" font-weight="600">NEW</text> + + <text x="380" y="30" text-anchor="middle" fill="#ffffff" font-family="'Segoe UI', system-ui, sans-serif" font-size="17" font-weight="600">🧠 AI/ML Infrastructure Workflows</text> + + <!-- vLLM --> + <g transform="translate(20, 55)"> + <rect x="0" y="0" width="170" height="125" rx="8" fill="#1e1b2e" stroke="#818cf8" stroke-width="1.5"/> + <text x="85" y="22" text-anchor="middle" fill="#a5b4fc" font-family="'Segoe UI', system-ui, sans-serif" font-size="13" font-weight="600">vLLM</text> + <g fill="#cbd5e1" font-family="'Segoe UI', system-ui, sans-serif" font-size="11"> + <text x="12" y="44"><tspan fill="#fb7185">•</tspan> LLM inference server</text> + <text x="12" y="62"><tspan fill="#fb7185">•</tspan> PagedAttention</text> + <text x="12" y="80"><tspan fill="#fb7185">•</tspan> Continuous batching</text> + <text x="12" y="98"><tspan fill="#fb7185">•</tspan> OpenAI-compatible</text> + <text x="12" y="116"><tspan fill="#fb7185">•</tspan> Multi-GPU support</text> + </g> + </g> + + <!-- vLLM Production Stack --> + <g transform="translate(205, 55)"> + <rect x="0" y="0" width="170" height="125" rx="8" fill="#1e1b2e" stroke="#818cf8" stroke-width="1.5"/> + <text x="85" y="22" text-anchor="middle" fill="#a5b4fc" font-family="'Segoe UI', system-ui, sans-serif" font-size="12" font-weight="600">vLLM Production Stack</text> + <g fill="#cbd5e1" font-family="'Segoe UI', system-ui, sans-serif" font-size="11"> + <text x="12" y="44"><tspan fill="#fb7185">•</tspan> Kubernetes + Helm</text> + <text x="12" y="62"><tspan fill="#fb7185">•</tspan> Request routing</text> + <text x="12" y="80"><tspan fill="#fb7185">•</tspan> Prometheus metrics</text> + <text x="12" y="98"><tspan fill="#fb7185">•</tspan> Grafana dashboards</text> + <text x="12" y="116"><tspan fill="#fb7185">•</tspan> KV cache offload</text> + </g> + </g> + + <!-- Milvus --> + <g transform="translate(390, 55)"> + <rect x="0" y="0" width="170" height="125" rx="8" fill="#1e1b2e" stroke="#818cf8" stroke-width="1.5"/> + <text x="85" y="22" text-anchor="middle" fill="#a5b4fc" font-family="'Segoe UI', system-ui, sans-serif" font-size="13" font-weight="600">Milvus Vector DB</text> + <g fill="#cbd5e1" font-family="'Segoe UI', system-ui, sans-serif" font-size="11"> + <text x="12" y="44"><tspan fill="#fb7185">•</tspan> Vector benchmarks</text> + <text x="12" y="62"><tspan fill="#fb7185">•</tspan> A/B FS comparison</text> + <text x="12" y="80"><tspan fill="#fb7185">•</tspan> HTML visualizations</text> + <text x="12" y="98"><tspan fill="#fb7185">•</tspan> Real workload tests</text> + <text x="12" y="116"><tspan fill="#fb7185">•</tspan> Docker / K8s deploy</text> + </g> + </g> + + <!-- Your Custom AI Workflow --> + <g transform="translate(575, 55)"> + <rect x="0" y="0" width="170" height="125" rx="8" fill="#1e1b2e" stroke="#a78bfa" stroke-width="1.5" stroke-dasharray="5,3"/> + <text x="85" y="22" text-anchor="middle" fill="#c4b5fd" font-family="'Segoe UI', system-ui, sans-serif" font-size="13" font-weight="600">Your Workflow</text> + <g fill="#9ca3af" font-family="'Segoe UI', system-ui, sans-serif" font-size="11"> + <text x="12" y="44"><tspan fill="#a78bfa">+</tspan> PyTorch / JAX</text> + <text x="12" y="62"><tspan fill="#a78bfa">+</tspan> Custom training</text> + <text x="12" y="80"><tspan fill="#a78bfa">+</tspan> Private experiments</text> + <text x="12" y="98"><tspan fill="#a78bfa">+</tspan> Proprietary models</text> + <text x="12" y="116"><tspan fill="#a78bfa">+</tspan> Research R&D</text> + </g> + </g> + </g> + + <!-- ==================== EXAMPLE COMMANDS (Console Style) ==================== --> + <g transform="translate(30, 780)"> + <rect x="0" y="0" width="760" height="95" rx="8" fill="#000000" stroke="#333333" stroke-width="2"/> + + <text x="20" y="20" fill="#6b7280" font-family="'Segoe UI', system-ui, sans-serif" font-size="10"># Merge supported workflow with neocloud tiering</text> + <text x="20" y="38" fill="#4ade80" font-family="'Courier New', monospace" font-size="11">$</text> + <text x="35" y="38" fill="#e2e8f0" font-family="'Courier New', monospace" font-size="11">make defconfig-lambdalabs-h100-or-less<tspan fill="#fbbf24">+vllm-production-stack-gpu</tspan></text> + + <text x="20" y="58" fill="#6b7280" font-family="'Segoe UI', system-ui, sans-serif" font-size="10"># Or DataCrunch with private workflow</text> + <text x="20" y="76" fill="#4ade80" font-family="'Courier New', monospace" font-size="11">$</text> + <text x="35" y="76" fill="#e2e8f0" font-family="'Courier New', monospace" font-size="11">make defconfig-datacrunch-h100-or-less<tspan fill="#a78bfa">+myresearch</tspan> KDEVOPS_HOSTS_PREFIX=<tspan fill="#22d3ee">"dev"</tspan></text> + + <text x="740" y="88" text-anchor="end" fill="#6b7280" font-family="'Segoe UI', system-ui, sans-serif" font-size="9">→ dev-myresearch</text> + </g> + + <!-- ==================== CI/CD (Bottom Right Upper) ==================== --> + <g transform="translate(820, 565)"> + <rect x="-2" y="-2" width="354" height="154" rx="13" fill="none" stroke="#f59e0b" stroke-width="1" opacity="0.3"/> + <rect x="0" y="0" width="350" height="150" rx="12" fill="#0f172a" stroke="#f59e0b" stroke-width="2" opacity="0.9"/> + <rect x="0" y="0" width="350" height="38" rx="12" fill="url(#ciGrad)" opacity="0.9"/> + <rect x="0" y="26" width="350" height="12" fill="url(#ciGrad)" opacity="0.9"/> + + <text x="175" y="26" text-anchor="middle" fill="#ffffff" font-family="'Segoe UI', system-ui, sans-serif" font-size="14" font-weight="600">🔄 CI/CD Integration</text> + + <g fill="#e2e8f0" font-family="'Segoe UI', system-ui, sans-serif" font-size="12"> + <text x="18" y="58"><tspan fill="#fbbf24">▸</tspan> GitHub Actions / GitLab Pipelines</text> + <text x="18" y="80"><tspan fill="#fbbf24">▸</tspan> kpd (kernel patches daemon)</text> + <text x="18" y="102"><tspan fill="#fbbf24">▸</tspan> Baseline Regression Detection</text> + <text x="18" y="124"><tspan fill="#fbbf24">▸</tspan> Web UI: test any kernel tag <tspan fill="#fbbf24" font-size="8">NEW</tspan></text> + <text x="18" y="146"><tspan fill="#fbbf24">▸</tspan> kdevops.org Auto-Dashboard</text> + </g> + </g> + + <!-- ==================== Reproducibility callout ==================== --> + <g transform="translate(820, 735)"> + <rect x="0" y="0" width="350" height="140" rx="12" fill="#0f172a" stroke="#10b981" stroke-width="2" opacity="0.9"/> + <rect x="0" y="0" width="350" height="38" rx="12" fill="#10b981" opacity="0.9"/> + <rect x="0" y="26" width="350" height="12" fill="#10b981" opacity="0.9"/> + + <text x="175" y="26" text-anchor="middle" fill="#ffffff" font-family="'Segoe UI', system-ui, sans-serif" font-size="14" font-weight="600">🔬 Reproducibility</text> + + <g fill="#e2e8f0" font-family="'Segoe UI', system-ui, sans-serif" font-size="12"> + <text x="18" y="58"><tspan fill="#34d399">▸</tspan> Identical environments every time</text> + <text x="18" y="80"><tspan fill="#34d399">▸</tspan> Share defconfigs with team</text> + <text x="18" y="102"><tspan fill="#34d399">▸</tspan> Version-controlled workflows</text> + <text x="18" y="124"><tspan fill="#34d399">▸</tspan> Archive results to git</text> + </g> + </g> + + <!-- ==================== CONNECTION LINES ==================== --> + <g stroke="#475569" stroke-width="1.5" fill="none" opacity="0.5"> + <!-- Top boxes to center --> + <path d="M165,300 Q200,340 400,380" stroke-dasharray="5,3"/> + <path d="M420,300 Q450,330 480,350" stroke-dasharray="5,3"/> + <path d="M645,300 Q620,340 600,360" stroke-dasharray="5,3"/> + <path d="M870,300 Q800,340 780,380" stroke-dasharray="5,3"/> + + <!-- Center to bottom sections --> + <path d="M500,530 Q400,550 400,565" stroke-dasharray="5,3"/> + <path d="M700,530 Q750,545 820,565" stroke-dasharray="5,3"/> + + <!-- Custom workflows connection --> + <path d="M820,440 Q790,460 780,490" stroke-dasharray="5,3"/> + </g> + + <!-- ==================== SUPPORTED DISTROS (Footer) ==================== --> + <g transform="translate(0, 900)"> + <rect x="0" y="0" width="1200" height="150" fill="#0f172a" opacity="0.8"/> + + <text x="600" y="30" text-anchor="middle" fill="#64748b" font-family="'Segoe UI', system-ui, sans-serif" font-size="11" font-weight="500">SUPPORTED DISTRIBUTIONS</text> + <g fill="#94a3b8" font-family="'Segoe UI', system-ui, sans-serif" font-size="13" text-anchor="middle"> + <text x="600" y="55">Debian • Ubuntu • Fedora • openSUSE • RHEL • Oracle Linux • Amazon Linux</text> + </g> + + <line x1="200" y1="75" x2="1000" y2="75" stroke="#334155" stroke-width="1"/> + + <text x="600" y="100" text-anchor="middle" fill="#64748b" font-family="'Segoe UI', system-ui, sans-serif" font-size="11" font-weight="500">LINKS</text> + <g fill="#60a5fa" font-family="'Segoe UI', system-ui, sans-serif" font-size="12" text-anchor="middle"> + <text x="600" y="125">github.com/linux-kdevops/kdevops • kdevops.org • Discord • IRC #kdevops</text> + </g> + </g> + + <!-- Decorative corner accents --> + <path d="M0,0 L60,0 L0,60 Z" fill="url(#headerGrad)" opacity="0.15"/> + <path d="M1200,0 L1140,0 L1200,60 Z" fill="url(#headerGrad)" opacity="0.15"/> + <path d="M0,1050 L60,1050 L0,990 Z" fill="url(#headerGrad)" opacity="0.15"/> + <path d="M1200,1050 L1140,1050 L1200,990 Z" fill="url(#headerGrad)" opacity="0.15"/> +</svg>
Signature · 1 line
2.51.0