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

test: Improve L0_logging stability #7486

Merged
merged 3 commits into from
Jul 31, 2024
Merged

test: Improve L0_logging stability #7486

merged 3 commits into from
Jul 31, 2024

Conversation

rmccorm4
Copy link
Contributor

@rmccorm4 rmccorm4 commented Jul 30, 2024

What does the PR do?

Adds more graceful handling to server startup given the way it's launched in the L0_logging test.

Current test is failing intermittently with call to client.is_server_ready() raising an Exception on a failed connection. This can happen if the frontends aren't ready and accepting requests yet while server is still starting up.

This PR:

  1. Gives more time for natural server startup
  2. Adds better handling for exceptions raised by client on failing to connect
  3. Exits early if DATADIR isn't set correctly to smooth local testing

Checklist

  • PR title reflects the change and is of format <commit_type>: <Title>
  • Changes are described in the pull request.
  • Related issues are referenced.
  • Populated github labels field
  • Added test plan and verified test passes.
  • Verified that the PR passes existing CI.
  • Verified copyright is correct on all changed files.
  • Added succinct git squash message before merging ref.
  • All template sections are filled out.
  • Optional: Additional screenshots for behavior/output changes with before/after.

Commit Type:

Check the conventional commit type
box here and add the label to the github PR.

  • build
  • ci
  • docs
  • feat
  • fix
  • perf
  • refactor
  • revert
  • style
  • test

Test plan:

  • L0_logging

@rmccorm4 rmccorm4 changed the title Improve L0_logging stability test: Improve L0_logging stability Jul 30, 2024
@rmccorm4 rmccorm4 added the PR: test Adding missing tests or correcting existing test label Jul 30, 2024
@rmccorm4 rmccorm4 requested review from fpetrini15 and krishung5 July 30, 2024 22:13
@@ -60,6 +60,11 @@ source ../common/util.sh
rm -f *.log
rm -fr $MODELSDIR && mkdir -p $MODELSDIR

if [ ! -d ${DATADIR} ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this check added just to let us know if the model repository in the dlcluster is not setup correctly? or if there's other cases that we want to catch?

Copy link
Contributor Author

@rmccorm4 rmccorm4 Jul 31, 2024

Choose a reason for hiding this comment

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

I ran the test locally with a non-existing datadir and the test ran and failed much later with obscure errors, but was actually missing one of the models -- so just to catch low hanging fruit later on for future debuggers

@rmccorm4 rmccorm4 merged commit 41844a8 into main Jul 31, 2024
3 checks passed
@rmccorm4 rmccorm4 deleted the rmccormick-l0-logging branch July 31, 2024 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: test Adding missing tests or correcting existing test
Development

Successfully merging this pull request may close these issues.

2 participants