Skip to content

Remove most old example code#470

Draft
PhilipFackler wants to merge 1 commit into
developfrom
PhilipFackler/example-tests
Draft

Remove most old example code#470
PhilipFackler wants to merge 1 commit into
developfrom
PhilipFackler/example-tests

Conversation

@PhilipFackler

Copy link
Copy Markdown
Collaborator

Description

Remove example code that duplicates what the DynamicSimulation app does

Closes #390 (indirectly)

Proposed changes

  • Add existing "tiny" cases to CaseFormatTests to check JSON parser
  • Remove example source code
  • Create ref.csv files for cases that were still using the .hpp data
  • Create .solver.json files where needed
  • Update tests and input/output files to use same naming conventions

Checklist

  • All tests pass.
  • Code compiles cleanly with flags -Wall -Wpedantic -Wconversion -Wextra.
  • [N/A] The new code follows GridKit™ style guidelines.
  • [N/A] There are unit tests for the new code.
  • [N/A] The new code is documented.
  • The feature branch is rebased with respect to the target branch.
  • [N/A] I have updated CHANGELOG.md to reflect the changes in this PR. If this is a minor PR that is part of a larger fix already included in the file, state so.

@PhilipFackler PhilipFackler force-pushed the PhilipFackler/example-tests branch 2 times, most recently from 2c5dda5 to 08f2c6f Compare June 26, 2026 20:57
@pelesh pelesh self-requested a review June 26, 2026 21:22
@nkoukpaizan nkoukpaizan self-requested a review June 27, 2026 21:28

@pelesh pelesh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Rather than removing examples, I would turn them into integration tests. Some of those examples set up GridKit apps without parser and thus verify that the system composer generates system models correctly and integrates well with solvers.

@PhilipFackler

Copy link
Copy Markdown
Collaborator Author

Rather than removing examples, I would turn them into integration tests. Some of those examples set up GridKit apps without parser and thus verify that the system composer generates system models correctly and integrates well with solvers.

I added them in CaseFormatTests to compare parsing results with the direct assignment that was in those examples. I thought this was what we had discussed before, but maybe I misunderstood. Do you want something more than that?

@PhilipFackler PhilipFackler force-pushed the PhilipFackler/example-tests branch 3 times, most recently from ed6087b to 91f8a14 Compare July 2, 2026 19:26
@PhilipFackler PhilipFackler force-pushed the PhilipFackler/example-tests branch from 91f8a14 to 5b2e2fd Compare July 2, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: mon.csv write race causes flaky parallel ctest failures

2 participants