Skip to content

Move reference results metadata into each archive#882

Open
PranjalManhgaye wants to merge 6 commits into
precice:developfrom
PranjalManhgaye:issue-811-embed-reference-metadata
Open

Move reference results metadata into each archive#882
PranjalManhgaye wants to merge 6 commits into
precice:developfrom
PranjalManhgaye:issue-811-embed-reference-metadata

Conversation

@PranjalManhgaye

@PranjalManhgaye PranjalManhgaye commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Store reference-results-metadata.txt inside each archive's case directory

  • Stop writing one shared metadata file per tutorial

  • Drop the SHA256 checksum from the metadata (it described the outer .tar.gz, which no longer makes sense once the file lives inside that archive)

  • Ignore the embedded metadata during field comparison

  • Rename the metadata file to reference-results-metadata.txt so editors open it as plain text

  • Update the system-test documentation

Closes #811

Test Plan

Packed sample archives locally and verified reference-results-metadata.txt ends up inside each case folder, with exports and iteration logs unchanged, and no shared metadata file written anymore. Also verified fieldcompare ignores the metadata file, and ran pre-commit on the changed files. Full regeneration of reference archives happens after merge, as discussed.

Store generation metadata inside each archive's case directory instead
of writing one shared file per tutorial.
@PranjalManhgaye PranjalManhgaye changed the title Embed metadata in each reference results archive Move reference results metadata into each archive Jul 17, 2026
Comment thread tools/tests/docker-compose.field_compare.template.yaml Outdated
Comment thread tools/tests/reference-results-metadata.txt.template
Comment thread tools/tests/generate_reference_results.py
Rename the per-archive metadata file to reference-results-metadata.txt
and add --ignore-missing-source-files so fieldcompare does not fail on
the metadata when comparing against regenerated archives.
@PranjalManhgaye
PranjalManhgaye requested a review from MakisH July 18, 2026 08:48
MakisH and others added 2 commits July 18, 2026 20:58
Replace --ignore-missing-source-files with --exclude-files
reference-results-metadata.txt so only the embedded metadata is
skipped and missing timesteps still fail comparison.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Needs review

Development

Successfully merging this pull request may close these issues.

reference_results.metadata is outside the respective archive

2 participants