Treat undetermined file stages as a soft error - #103
Merged
Merged
Conversation
Skip files whose pipeline stage cannot be determined, record them as file_discovery diagnostics, and continue building the Experiment Summary. Co-authored-by: max.karlsson <max.karlsson@pixelgen.com>
cli cannot pluralize a bullet that carries no quantity, which aborted the build with 'Cannot pluralize without a quantity'. Co-authored-by: max.karlsson <max.karlsson@pixelgen.com>
maxkarlsson
marked this pull request as ready for review
September 4, 2026 15:54
Unknown-stage files were recorded as diagnostics but filtered out of the report data issues callout, so the Samples page showed nothing for them. Co-authored-by: max.karlsson <max.karlsson@pixelgen.com>
Aratz
approved these changes
Sep 10, 2026
Aratz
left a comment
Contributor
There was a problem hiding this comment.
Looks good in principle 👍 Some R idioms are still a bit hard to digest for me, but it gets a little easier each time :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Experiment Summary ingestion no longer aborts when a
.jsonor.pxlfile in the data folder has a pipeline stage that is not in the workflow vocabulary. Those files are skipped, a warning is emitted per file, and each path is recorded as afile_discoverydiagnostic. Recognised files continue to load as before.Standalone
get_file_paths()still errors by default. Passon_unknown_stage = "omit"to skip unknown files; Experiment Summary builds use that mode automatically.file_discoverydiagnostics are reported in both places diagnostics surface: the "Report data issues" callout on the Samples page, and the Diagnostics section under Run info. They do not add a warning marker to any individual sample, since an unrecognised file is not attributable to a sample.Type of change
How Has This Been Tested?
Unit tests cover:
get_file_paths()still errors on unknown stages by default, and omits them when requestedbuild_es_data()continues when extra unknown-stage files are present and recordsfile_discoverydiagnosticsfile_discoverydiagnostics appear in the Samples page callout and the diagnostics table without marking samplesR-CMD-check passes on ubuntu-latest, macos-latest, and windows-latest.
PR checklist: