Skip to content

feat(systemtests): add per-test max_time override for precice-config closes#402#738

Open
PranjalManhgaye wants to merge 5 commits intoprecice:developfrom
PranjalManhgaye:issue-402-max-time-override
Open

feat(systemtests): add per-test max_time override for precice-config closes#402#738
PranjalManhgaye wants to merge 5 commits intoprecice:developfrom
PranjalManhgaye:issue-402-max-time-override

Conversation

@PranjalManhgaye
Copy link
Contributor

@PranjalManhgaye PranjalManhgaye commented Mar 2, 2026

This PR adds support for an optional max_time field per tutorial entry in tools/tests/tests.yaml.
TestSuite parses max_time and passes it to each Systemtest instance as max_time.
Before running a test, Systemtest now optionally overrides in the copied precice-config.xml, if max_time is set and exists.
No existing tutorials or reference results are modified; the PR only adds the override mechanism, so behavior is unchanged unless a max_time entry is added in tests.yaml.
This is complementary to PR #734, which adds a wall‑clock --timeout for the systemtest subprocess; this PR implements the config‑level restriction requested in #402.

Checklist:

  • I added a summary of any user-facing changes (compared to the last release) in the changelog-entries/<PRnumber>.md.
  • I will remember to squash-and-merge, providing a useful summary of the changes of this PR.

@MakisH MakisH added GSoC Contributed in the context of the Google Summer of Code systemtests labels Mar 6, 2026
@precice-bot
Copy link
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

@PranjalManhgaye PranjalManhgaye force-pushed the issue-402-max-time-override branch from 9da11ce to fb5ba1c Compare March 8, 2026 17:11
…ix precice#402)

- TestSuite parses max_time from tests.yaml
- Systemtest applies override to <max-time> in precice-config.xml
- Applies to both test runs and reference result generation
- Validate positive max_time; handle multiple tags with warning
- Use regex targeting <max-time> only
@PranjalManhgaye PranjalManhgaye force-pushed the issue-402-max-time-override branch from a9e37e0 to 7a35f7b Compare March 8, 2026 17:21
@PranjalManhgaye
Copy link
Contributor Author

this version adds validation for max_time and a regex that only touches (not other attributes) , thanks

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.

3 participants