Skip to content

Source test cases from other repositories (Closes #538)#732

Open
PranjalManhgaye wants to merge 1 commit intoprecice:developfrom
PranjalManhgaye:external-source-fix
Open

Source test cases from other repositories (Closes #538)#732
PranjalManhgaye wants to merge 1 commit intoprecice:developfrom
PranjalManhgaye:external-source-fix

Conversation

@PranjalManhgaye
Copy link
Contributor

Closes #538

Summary

adds support for sourcing systemtest tutorials from external git repositories and archives, instead of assuming all tutorials are in the local repo.

Changes

  • sources.py: New module with TutorialSource, resolve_tutorial_root, fetch_git_repo, and fetch_archive for git and archive sources
  • TestSuite.from_yaml: Parses optional source block per tutorial entry; fetches and loads external tutorials when not found locally
  • Tutorial.source: Added source field (default: local) and optional base_dir in Tutorial.from_yaml and ReferenceResult
  • Systemtest.__copy_tutorial_into_directory: Uses resolve_tutorial_root for all sources; PR/ref overrides only for local tutorials
  • fetch_git_repo: Fallback when --branch fails—clone without branch, then try maindevelopmaster

Usage (tests.yaml)

  • path: some-tutorial
    source:
    type: git
    url: https://github.com/precice/tutorials.git
    ref: develop
    subdir: tutorials # optional
    case_combination: [...]
    reference_result: ./some-tutorial/reference-results/...

For the checklist:

  1. Add a changelog entry at changelog-entries/<PRnumber>.md once you have the PR number.
  2. Use squash-and-merge with a short, clear summary when merging.

@PranjalManhgaye PranjalManhgaye changed the title Add external tutorial sources for systemtests (Closes #538) Source test cases from other repositories (Closes #538) Mar 1, 2026
@PranjalManhgaye
Copy link
Contributor Author

@MakisH , sir happy to update anything needed before review .

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.

Source test cases from other repositories

1 participant