Skip to content

Commit 1f54fc5

Browse files
Move reference_results.metadata into reference-results/ directory (#721)
fixes #537
1 parent 0ebc834 commit 1f54fc5

File tree

7 files changed

+5
-3
lines changed

7 files changed

+5
-3
lines changed

.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

changelog-entries/537.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Moved `reference_results.metadata` into the `reference-results/` directory for each tutorial, colocating it with the reference result archives it describes. #537
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)