Skip to content

Source test cases from other repositories#732

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

Source test cases from other repositories#732
PranjalManhgaye wants to merge 1 commit into
precice:developfrom
PranjalManhgaye:external-source-fix

Conversation

@PranjalManhgaye
Copy link
Copy Markdown
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
Copy Markdown
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
@precice-bot
Copy link
Copy Markdown
Collaborator

This pull request has been mentioned on preCICE Forum on Discourse. There might be relevant details there:

https://precice.discourse.group/t/gsoc-2026-pranjal-manhgaye/2769/6

@MakisH
Copy link
Copy Markdown
Member

MakisH commented May 17, 2026

@PranjalManhgaye this seems quite long. Is it still intended for review in its current form?

In the PR description, I would expect some explanation of the whole concept.

Please also resolve the conflicts.

@MakisH MakisH changed the title Source test cases from other repositories (Closes #538) Source test cases from other repositories May 17, 2026
@PranjalManhgaye
Copy link
Copy Markdown
Contributor Author

thanks @MakisH , i will take an another look of this pr and will inform you if its indeed necessary to review it .

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

3 participants