Skip to content

Treat undetermined file stages as a soft error - #103

Merged
maxkarlsson merged 3 commits into
mainfrom
cursor/pna-3333-soft-unknown-stage-2a26
Sep 10, 2026
Merged

maxkarlsson merged 3 commits into
mainfrom
cursor/pna-3333-soft-unknown-stage-2a26

Conversation

@maxkarlsson

@maxkarlsson maxkarlsson commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Description

Experiment Summary ingestion no longer aborts when a .json or .pxl file 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 a file_discovery diagnostic. Recognised files continue to load as before.

Standalone get_file_paths() still errors by default. Pass on_unknown_stage = "omit" to skip unknown files; Experiment Summary builds use that mode automatically.

file_discovery diagnostics 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

  • Bug fix

How Has This Been Tested?

Unit tests cover:

  • get_file_paths() still errors on unknown stages by default, and omits them when requested
  • build_es_data() continues when extra unknown-stage files are present and records file_discovery diagnostics
  • file_discovery diagnostics appear in the Samples page callout and the diagnostics table without marking samples

R-CMD-check passes on ubuntu-latest, macos-latest, and windows-latest.

PR checklist:

  • I have run R CMD check on the package and it passes.
  • I have made changes to the documentation.
  • I have added tests.
  • I have documented any significant changes in CHANGELOG.md
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 4, 2026 15:22
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
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>
@maxkarlsson
maxkarlsson requested a review from Aratz September 7, 2026 09:10

@Aratz Aratz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good in principle 👍 Some R idioms are still a bit hard to digest for me, but it gets a little easier each time :)

@maxkarlsson
maxkarlsson merged commit 7af55a8 into main Sep 10, 2026
7 checks passed
@maxkarlsson
maxkarlsson deleted the cursor/pna-3333-soft-unknown-stage-2a26 branch September 10, 2026 13:25
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