-
Notifications
You must be signed in to change notification settings - Fork 3
Issue #33: add executable onboarding and smoke-test scripts for the core repo #34
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Script to run a GORILLA example | ||
| # Usage: ./run_example.sh <example_number> | ||
|
|
||
| if [ -z "$1" ]; then | ||
| echo "Usage: $0 <example_number>" | ||
| echo "Example: $0 1" | ||
| exit 1 | ||
| fi | ||
|
|
||
| EXAMPLE_NUM=$1 | ||
| EXAMPLE_DIR="EXAMPLES/example_$EXAMPLE_NUM" | ||
|
|
||
| # Check if example directory exists | ||
| if [ ! -d "$EXAMPLE_DIR" ]; then | ||
| echo "Error: $EXAMPLE_DIR does not exist" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Check if executable exists | ||
| if [ ! -f "BUILD/test_gorilla_main.x" ]; then | ||
| echo "Error: Executable BUILD/SRC/test_gorilla_main.x not found. Please run 'make build' first." | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Running example $EXAMPLE_NUM from $EXAMPLE_DIR" | ||
| cd "$EXAMPLE_DIR" | ||
| ./test_gorilla_main.x | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. run_example.sh runs wrong binary The script checks for BUILD/test_gorilla_main.x but then executes ./test_gorilla_main.x inside the example directory without creating/linking it, so the documented make example EXAMPLE=<n> bootstrap is likely to fail from a clean checkout. This violates the requirement that the single entrypoint builds and runs an example to completion. Agent Prompt
|
||
| if [ $? -eq 0 ]; then | ||
| echo "Example $EXAMPLE_NUM completed successfully" | ||
| else | ||
| echo "Error: Example $EXAMPLE_NUM failed" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Plotting results for example $EXAMPLE_NUM from $EXAMPLE_DIR" | ||
| cd ../../PYTHON | ||
| python3 plot_example_$EXAMPLE_NUM.py | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2. No expected-output validation run_example.sh does not check for expected orbit/output artifacts after the example run (or after plotting), so it can report success without verifying outputs exist. This violates the requirement that onboarding/smoke-test entrypoints explicitly detect missing outputs and fail nonzero. Agent Prompt
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3. Runner not under scripts/
📎 Requirement gap⚙ MaintainabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools