Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix script to run examples locally #285

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

cniethammer
Copy link
Contributor

Fixes problems reported in #284 for the examples/run-examples.sh script and makes it work again.

Ignore comment lines and empty lines in the example lists file.

Signed-off-by: Christoph Niethammer <[email protected]>
@cniethammer cniethammer requested a review from HomesGH February 8, 2024 11:40
Copy link
Contributor

@HomesGH HomesGH left a comment

Choose a reason for hiding this comment

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

Thank you for updating the script!
There is a minor mess with those test scripts as they are all kind of duplicated:

  1. run-validation.sh
  2. run-examples.sh
  3. workflow / GitHub Actions

The workflow file differs a bit from the first two scripts but does basically the same (besides also comparing the results with the master branch).
However we can think of removing the run-validation.sh script since run-examples.sh is more sophisticated.

@cniethammer
Copy link
Contributor Author

Yes, it would be good to unify the script to reduce code maintenance and use this then in the GitHub workflow as well. I will check and come back with an update for this PR.

@cniethammer cniethammer added the WIP Work In Progress label Feb 11, 2024
- Added command line options
- Add one second timeout at end of test to easy interruption
- Updated default run parameters to match run-validation script

Signed-off-by: Christoph Niethammer <[email protected]>
@cniethammer
Copy link
Contributor Author

Improved the run-example script so it can be reused in the run-validation script.

The github workflow requires more logic than this simple local executor script as it checks for matching outputs from different branches. So I will not address this with this PR and I consider this to be ready for merging.

@cniethammer cniethammer removed the WIP Work In Progress label Dec 8, 2024
@cniethammer cniethammer requested a review from HomesGH December 8, 2024 18:36
examples/run-examples.sh Show resolved Hide resolved
examples/run-examples.sh Outdated Show resolved Hide resolved
examples/run-examples.sh Show resolved Hide resolved
examples/run-examples.sh Outdated Show resolved Hide resolved
checks/run-validation.sh Show resolved Hide resolved
examples/run-examples.sh Show resolved Hide resolved
examples/run-examples.sh Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants