Skip to content

ci: Update result tracking with new golden format#2706

Open
rjodinchr wants to merge 1 commit into
KhronosGroup:mainfrom
rjodinchr:ci
Open

ci: Update result tracking with new golden format#2706
rjodinchr wants to merge 1 commit into
KhronosGroup:mainfrom
rjodinchr:ci

Conversation

@rjodinchr
Copy link
Copy Markdown
Collaborator

@rjodinchr rjodinchr commented May 27, 2026

The primary goal of this commit is to improve CI tracking by
introducing a new golden format that can differentiate test results
based on command-line arguments. To cleanly extract and pass these
arguments into the JSON result outputs, the command-line parsing
infrastructure across the CTS required a significant refactoring.

Key changes include:

  • Enhanced CI Tracking: Updates ci/compare_results.py,
    ci/pocl/golden.json, and saveResultsToJson to include and evaluate
    an args key. The golden JSON now uses a nested format mapping
    specific argument strings (e.g., --wimpy -1) to their expected
    results, allowing the CI to validate the same binary run under
    different parameters.
  • Centralized Parsing Infrastructure: Introduces the ParseArgsFn
    callback and runTestHarnessWithCheckAndParse. This offloads custom
    argument parsing from individual test main() functions and safely
    extracts the arguments used so they can be logged by the test harness.
  • Help Text Consolidation: Replaces fragmented printUsage()
    functions with unified help string references populated directly by
    the standard parsing callbacks.

[run-test: test_computeinfo]
[run-test: test_bruteforce -1 -w]
[run-test: test_cl_copy_images small_images --num-worker-threads 2 1D]
[run-test: test_image_streams 1D --num-worker-threads 2 CL_R CL_FILTER_NEAREST]

@rjodinchr rjodinchr force-pushed the ci branch 3 times, most recently from cf68937 to d773d37 Compare May 28, 2026 13:48
@rjodinchr rjodinchr changed the title ci: restructure golden.json to use nested command arguments ci: Update result tracking with new golden format May 28, 2026
The primary goal of this commit is to improve CI tracking by
introducing a new golden format that can differentiate test results
based on command-line arguments. To cleanly extract and pass these
arguments into the JSON result outputs, the command-line parsing
infrastructure across the CTS required a significant refactoring.

Key changes include:
* Enhanced CI Tracking: Updates `ci/compare_results.py`,
`ci/pocl/golden.json`, and `saveResultsToJson` to include and evaluate
an `args` key. The golden JSON now uses a nested format mapping
specific argument strings (e.g., `--wimpy -1`) to their expected
results, allowing the CI to validate the same binary run under
different parameters.
* Centralized Parsing Infrastructure: Introduces the `ParseArgsFn`
callback and `runTestHarnessWithCheckAndParse`. This offloads custom
argument parsing from individual test `main()` functions and safely
extracts the arguments used so they can be logged by the test harness.
* Help Text Consolidation: Replaces fragmented `printUsage()`
functions with unified `help` string references populated directly by
the standard parsing callbacks.

[run-test: test_computeinfo]
[run-test: test_bruteforce -1 -w]
[run-test: test_cl_copy_images small_images --num-worker-threads 2 1D]
[run-test: test_image_streams 1D --num-worker-threads 2 CL_R CL_FILTER_NEAREST]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant