-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Use correct data directory for non-Jetson no model perf test #5894
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
May be it worth to look at
L0_infer
and reuse it's approach, to keep some sort of consistency:https://github.com/triton-inference-server/server/blob/main/qa/L0_infer/test.sh#L37-L39
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.
In that case, it's setting the REPO_VERSION based on whether you're on Jetson or not, then using it to set DATADIR if it's not set already. That approach wouldn't work here, because the non-Jetson benchmark tests don't set the DATADIR, which is why this previous PR change caused an issue (was trying to model it off the regular test we run, instead this returns to the previous style of check done).
There could be an argument made for consistency of Jetson checks, but I think that should be its own ticket because this is consistent with code in other perf tests like here and even L0_infer uses this type of check here. So if we want to standardize these checks, we'd need to pick one and make them all use that style in a ticket.
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.
I think it's the opposite. I think the x86 tests (infra/CI script) were setting the DATADIR, but to the wrong value for this test. In the non-benchmark tests, the env var gets lost when not passed to the docker container, so it is "unset" and the default value takes over. In the benchmark tests, they currently seem to propogate all env vars through.
Then adding the new behavior of "keep datadir if set, otherwise set it to this default" from your last PR kept it as the incorrect value for the test.
To summarize, I think your previous PR's logic of "keep datadir if set, otherwise set it to this test-specific default" is good and removes the need for ARCH checks in the tests. Instead, it's on us to set the right datadir in the CI scripts.
I'll share some links offline.
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.
Actually after looking through it, I think it'll be more trouble than its worth. It looks like we'd basically have to explicitly
unset DATADIR
in the benchmark test template which isn't very intuitive. Probably better to keep the logic in the test script for now.