Skip to content

Commit a4ad032

Browse files
committed
Move reference_results.metadata into reference-results directory
fixes #537 Moved reference_results.metadata from tutorial root into the reference-results/ directory to colocate it with the .tar.gz files it describes. Changes: - moved metadata files into reference-results/ for all tutorials - updated generate_reference_results.py to write to new location - updated gitHub workflow git add pattern to match new location
1 parent 863bb4d commit a4ad032

6 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/generate_reference_results_workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
git checkout ${{ inputs.from_ref }}
6565
git add ./*/*/*.tar.gz
6666
git add ./*/*.tar.gz
67-
git add ./*/*.metadata
67+
git add ./*/reference-results/*.metadata
6868
git commit -m "${{inputs.commit_msg}}"
6969
git push
7070
- name: Upload artifacts for debugging
File renamed without changes.

flow-over-heated-plate/reference_results.metadata renamed to flow-over-heated-plate/reference-results/reference_results.metadata

File renamed without changes.

multiple-perpendicular-flaps/reference_results.metadata renamed to multiple-perpendicular-flaps/reference-results/reference_results.metadata

File renamed without changes.

perpendicular-flap/reference_results.metadata renamed to perpendicular-flap/reference-results/reference_results.metadata

File renamed without changes.

tools/tests/generate_reference_results.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import argparse
32
from metadata_parser.metdata import Tutorials, ReferenceResult
43
from systemtests.TestSuite import TestSuites
@@ -142,7 +141,9 @@ def main():
142141

143142
# write readme
144143
for tutorial in reference_result_per_tutorial.keys():
145-
with open(tutorial.path / "reference_results.metadata", 'w') as file:
144+
reference_results_dir = tutorial.path / "reference-results"
145+
reference_results_dir.mkdir(parents=True, exist_ok=True)
146+
with open(reference_results_dir / "reference_results.metadata", 'w') as file:
146147
ref_results_info = render_reference_results_info(
147148
reference_result_per_tutorial[tutorial], build_args, current_time_string)
148149
logging.info(f"Writing results for {tutorial.name}")

0 commit comments

Comments
 (0)