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

@PranjalManhgaye PranjalManhgaye commented Mar 1, 2026

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/...

Checklist:

  • I added a summary of any user-facing changes (compared to the last release) in changelog-entries/682.md.
  • I will remember to squash-and-merge, providing a useful summary of the changes 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 .

@MakisH MakisH added systemtests GSoC Contributed in the context of the Google Summer of Code labels Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GSoC Contributed in the context of the Google Summer of Code systemtests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Source test cases from other repositories

2 participants