Skip to content

Comments

Allow checks to use results from other checks#8

Merged
lukpueh merged 7 commits intoeclipse-csi:mainfrom
lukpueh:global-ctx
Feb 5, 2026
Merged

Allow checks to use results from other checks#8
lukpueh merged 7 commits intoeclipse-csi:mainfrom
lukpueh:global-ctx

Conversation

@lukpueh
Copy link
Contributor

@lukpueh lukpueh commented Feb 4, 2026

fixes #5

Change details

  • Write check results into global context
  • Relax check result format to allow storing richer data (e.g. full API responses) and not just scalar values
  • Allow checks to define dependencies on other checks
  • Update check runner to run dependencies before their dependents
  • Change cli output to print full result data in JSON format

Review commit by commit is recommended

Signed-off-by: Lukas Puehringer <lukas.puehringer@eclipse-foundation.org>
The Config class, currently used to provide cli args to Checks, becomes
the Context class, used for this purpose, but also to gather all Check
results. See subsequent commits for the latter.

Signed-off-by: Lukas Puehringer <lukas.puehringer@eclipse-foundation.org>
Write the result to the Context.data dictionary, using the check id as
dictionary key.

Signed-off-by: Lukas Puehringer <lukas.puehringer@eclipse-foundation.org>
Allow any result from Check.run, instead of just a scalar
value, to allow the collection of rich data, for later analysis.

Signed-off-by: Lukas Puehringer <lukas.puehringer@eclipse-foundation.org>
Now that we can return rich results from a check, we use the whole API
response, and change the name accordingly.

Signed-off-by: Lukas Puehringer <lukas.puehringer@eclipse-foundation.org>
This allows checks to use results from other checks

**Details**

* Add depends_on field to check base class, to define dependencies on
  other checks. Checks are identified by their check id (i.e. module
  name).

* Update run_checks to run checks in waves. Start with checks that don't
  have dependencies, then run checks, whose dependencies have completed,
  and repeat until no checks are left to run.

Signed-off-by: Lukas Puehringer <lukas.puehringer@eclipse-foundation.org>
Print all check results in context.data to stdout eventually, and use
logging module to give feedback about failed checks.

Also remove the now obsolete formatter module and the CheckResult class.

Signed-off-by: Lukas Puehringer <lukas.puehringer@eclipse-foundation.org>
@lukpueh lukpueh marked this pull request as ready for review February 5, 2026 08:49
@lukpueh lukpueh merged commit d63b6a3 into eclipse-csi:main Feb 5, 2026
1 check passed
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.

support feeding check results as inputs to other checks

3 participants