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

Use current time when overwriting model configuration. #6727

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

whoisj
Copy link
Contributor

@whoisj whoisj commented Dec 20, 2023

This validates the change This validates the change made to ../core wrt how model configuration mtime is handled.

MR to ../core

Copy link
Contributor

@GuanLuo GuanLuo left a comment

Choose a reason for hiding this comment

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

You may also want to address the Python style issue raised by CodeQL

@@ -3254,6 +3255,83 @@ def test_concurrent_model_instance_load_sanity(self):
)
self.assertTrue(triton_client.is_server_ready())

def test_ensemble_config_overwite(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see the test case is doing anything with ensemble, should probably change the name of the test case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 good call, updated.

@whoisj whoisj force-pushed the jwyman/ensemble-config-mtime branch from e339e59 to b82b401 Compare January 8, 2024 20:05
@whoisj whoisj requested a review from GuanLuo January 8, 2024 20:05

# Touch the local config.pbtxt and reload the file to ensure the local config
# is preferred because it has a more recent mtime.
Path(model_name + "/config.pbtxt").touch()
Copy link
Contributor

Choose a reason for hiding this comment

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

probably better to use os.path.join to compose the file path

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good call, updated

fi

set +e
python $LC_TEST LifeCycleTest.test_ensemble_config_overwite >>$CLIENT_LOG 2>&1
Copy link
Contributor

Choose a reason for hiding this comment

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

reflect the new test case name

@@ -1947,3 +1947,38 @@ else
fi

exit $RET

# LifeCycleTest.test_ensemble_config_overwite
Copy link
Contributor

Choose a reason for hiding this comment

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

reflect the new test case name

@whoisj whoisj force-pushed the jwyman/ensemble-config-mtime branch from b82b401 to 94a7b7f Compare January 9, 2024 20:17
@whoisj whoisj requested a review from GuanLuo January 9, 2024 20:18
GuanLuo
GuanLuo previously approved these changes Jan 10, 2024
@whoisj whoisj force-pushed the jwyman/ensemble-config-mtime branch 3 times, most recently from 601c3e5 to 31ebb73 Compare January 10, 2024 22:17
@Tabrizian
Copy link
Member

@whoisj you might need to resolve conflicts on this branch.

@whoisj whoisj force-pushed the jwyman/ensemble-config-mtime branch 6 times, most recently from e668f6e to 919417e Compare January 17, 2024 20:02
@whoisj whoisj requested a review from GuanLuo January 17, 2024 20:04
This validates the change made to ../core wrt how model configuration mtime is handled.
@whoisj whoisj force-pushed the jwyman/ensemble-config-mtime branch from 919417e to 271848e Compare January 17, 2024 21:35
@whoisj whoisj merged commit 7d9f6cd into main Jan 17, 2024
3 checks passed
whoisj added a commit that referenced this pull request Jan 17, 2024
This validates the change made to ../core wrt how model configuration mtime is handled.
mc-nv pushed a commit that referenced this pull request Jan 17, 2024
This validates the change made to ../core wrt how model configuration mtime is handled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants