Skip to content

Fix regression test setservices key and re-enable expdir cleanup - #414

Merged
pchakraborty merged 3 commits into
release/MAPL-v3from
bugfix/pchakrab/setservices-regression-key
Aug 10, 2026
Merged

Fix regression test setservices key and re-enable expdir cleanup#414
pchakraborty merged 3 commits into
release/MAPL-v3from
bugfix/pchakrab/setservices-regression-key

Conversation

@pchakraborty

Copy link
Copy Markdown
Collaborator

Summary

  • Fix regression test key: setservice -> setservices in the adv-dyn/dyn-sa regression yamls, matching MAPL's ComponentSpecParser now that Fix truncated length for 'SetServices' key in parse_child MAPL#5307 fixed a string-length bug that previously truncated the key.
  • Allow both the original (setservice) and new (setservices) key for backward compatibility.
  • Re-enable the rm -rf cleanup of the experiment directory in run_case() after regression comparison, which had been left disabled.

Test plan

  • Regression tests (adv-dyn, dyn-sa) pass with the corrected key

pchakraborty and others added 3 commits August 8, 2026 08:12
parse_child in MAPL's ComponentSpecParser previously matched a
truncated 'SetService' key due to a string-length bug (fixed in
GEOS-ESM/MAPL#5307). These regression yamls were written to match
that truncated key and need the trailing 's' restored now that the
parser correctly requires the full 'setservices' key.
Uncomments the rm -rf of the experiment directory in run_case(),
which had been disabled.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@pchakraborty
pchakraborty requested a review from a team as a code owner August 10, 2026 14:17
@pchakraborty pchakraborty self-assigned this Aug 10, 2026
@pchakraborty pchakraborty added 0 diff trivial The changes in this pull request are trivially zero-diff (documentation, build failure, &c.) MAPL3 MAPL 3 Related Skip Changelog labels Aug 10, 2026
Comment thread regression/run_case.cmake
# COMMAND ${CMAKE_COMMAND} -E rm -rf ${expdir}
# )
execute_process(
COMMAND ${CMAKE_COMMAND} -E rm -rf ${expdir}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eeeeeeee. Scary. You might want to go with file(REMOVE_RECURSE). That's probably safer.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh! I'll update my run_case files

@pchakraborty
pchakraborty merged commit 020fb7d into release/MAPL-v3 Aug 10, 2026
25 checks passed
@pchakraborty
pchakraborty deleted the bugfix/pchakrab/setservices-regression-key branch August 10, 2026 15:07
pchakraborty added a commit that referenced this pull request Aug 11, 2026
…ervice key (#415)

* run_case.cmake: replace execute_process(rm -rf) with file(REMOVE_RECURSE)

Use CMake's native recursive-remove command instead of shelling out to
rm -rf via execute_process.

* adv-dyn: drop the now-redundant setservice (singular) key

#414 added setservices (plural) as the correct key alongside the old
truncated setservice key for backward compatibility while the parser
fix rolled out. Only setservices is needed now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 diff trivial The changes in this pull request are trivially zero-diff (documentation, build failure, &c.) MAPL3 MAPL 3 Related Skip Changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants