-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
chore: improve smokeTests environment validation and logging #1046
chore: improve smokeTests environment validation and logging #1046
Conversation
- Add strict mode with error handling (set -euo pipefail) - Add process cleanup with trap command - Add timeout configuration for application startup - Add detailed logging of test output and termination status
done | ||
PROJECT_DIR="$(dirname "$PROJECT_DIR")/.." | ||
PROJECT_DIR="$(cd "$PROJECT_DIR"; pwd)" | ||
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" |
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.
The above code can deal with symbolic links, I've been using this template for years in my scripts.
( | ||
# Wait for the ready message | ||
# Wait for the ready message with timeout | ||
while true; do |
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.
IMO we shouldn't be using sleep here. We should fix whatever underlying problem is causing the test to fail without it.
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.
Agreed - arbitrary sleeps can make tests both slower than necessary and introduce flakiness in my experience. I can create an issue/brainstorm a better termination signal instead
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.
All good.
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.
Thanks so much for doing this - Looks like the integration and smoke test need to be fixed! As well as ci check
Gonna revert until we get a better understanding of test fixes. We have two test failures so far
and
@odilitime mentioned he may have submitted a PR that instituted a failing test and is talking a look. We don't currently have a rule that all tests must pass in the CI pipeline to be merged in yet although that will come soon |
to be clear, I'm not looking into it, I already tried to fix it. I'm just not trusting some of the CI tests until someone fixes them. This PR is fine. |
gotcha, my b, cancelling my reversion @odilitime #1051 (comment) apologies @monilpat @aramxc |
Relates to:
N/A
Risks
Low - Changes are isolated to the smoke test script and don't affect production code.
Background
What does this PR do?
Enhances the smoke test script with improved logging, error handling, and process management:
What kind of change is this?
Improvements (misc. changes to existing features)
Documentation changes needed?
My changes do not require a change to the project documentation.
Testing
Where should a reviewer start?
scripts/smokeTests.sh
Detailed testing steps
pnpm run smokeTests
Screenshots
N/A - Command line tool changes only
Deploy Notes
No special deployment steps required - changes only affect development/testing workflow.
@sol.kinetics