Skip to content

[None][chore] gitignore .nfs* temporary NFS system files - #10

Closed
zhenhuaw-me wants to merge 1 commit into
mainfrom
ignore-nfs
Closed

zhenhuaw-me wants to merge 1 commit into
mainfrom
ignore-nfs

Conversation

@zhenhuaw-me

@zhenhuaw-me zhenhuaw-me commented May 17, 2026

Copy link
Copy Markdown
Owner

@coderabbitai summary

Description

Test Coverage

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • The reviewers assigned automatically/manually are appropriate for the PR.

  • Please check this after reviewing the above items as appropriate for this PR.

GitHub Bot Help

To see a list of available CI bot commands, please comment /bot help.

They are temporary NFS system files
zhenhuaw-me added a commit that referenced this pull request May 29, 2026
… use stock ValueError

Per self-review feedback on PR NVIDIA#14733: no custom exception layer on top
of Python's standard error types. Validation failures now raise plain
``ValueError`` with the same multi-line message; the structured
``reason`` / ``param`` / ``details`` fields are removed.

Core changes
- Remove ``VisualGenValidationError`` class and the ``Literal`` /
  ``field`` imports it required.
- Replace ``DiffusionResponse.error_reason`` / ``error_param`` /
  ``error_details`` with a single ``is_validation_error: bool``
  discriminator. Same on ``VisualGenOutput``. The coordinator-side
  awaiter uses it to re-raise as ``ValueError`` (-> HTTP 400) vs
  ``RuntimeError`` (-> HTTP 500); routes catch the standard types
  directly and no longer import the custom class.
- ``validate_visual_gen_params`` raises ``ValueError`` with the
  multi-line per-violation message. The per-category accumulator
  lists feeding into ``details`` are gone; the flat ``messages``
  list builds the same human-readable content. Fix the
  "silently ignored" wording on the universal-field branch since
  that branch does raise.
- READY signal now propagates ``pipeline_name`` so coordinator-side
  pre-validation uses the actual loaded pipeline's class name
  (was always "VisualGen"). Closes the worker/coordinator parity
  gap that CodeRabbit #10 flagged.

Cascade (all driven by the drop)
- Remove ``VisualGen.validate_request_params`` method. Async video
  route calls module-level ``validate_visual_gen_params`` directly
  with the propagated executor metadata.
- ``VisualGenResult._resolved_value`` dispatches on
  ``out.is_validation_error`` (ValueError vs RuntimeError).
- Sync image, sync video, and async video routes drop their
  ``except VisualGenValidationError`` arm; the existing
  ``except ValueError`` arm handles validation failures the same
  way (HTTP 400 + message).

Tests
- ``TestVisualGenValidationErrorStructured`` ->
  ``TestValidateVisualGenParamsMessages``: assert ``ValueError`` with
  expected substrings instead of structured fields.
- ``TestValidationErrorTransport`` switches to asserting
  ``is_validation_error``.
- ``TestRouteVisualGenValidationError`` -> ``TestRouteEngineValidationError``:
  sync routes inject a stock ``ValueError`` on the mock; async route
  triggers a real validator rejection by sending an unknown
  extra_params key against the mock's executor metadata.
- ``MockVisualGen`` gains an ``executor`` ``SimpleNamespace`` with
  ``pipeline_name`` / ``default_generation_params`` /
  ``extra_param_specs`` so the async pre-flight call works
  end-to-end.

Verified on GB200: full visual_gen unit subsystem 357 passed / 0
failed in 60.67s.

Signed-off-by: Zhenhua Wang <zhenhuaw@nvidia.com>
zhenhuaw-me added a commit that referenced this pull request May 29, 2026
… use stock ValueError

Per self-review feedback on PR NVIDIA#14733: no custom exception layer on top
of Python's standard error types. Validation failures now raise plain
``ValueError`` with the same multi-line message; the structured
``reason`` / ``param`` / ``details`` fields are removed.

Core changes
- Remove ``VisualGenValidationError`` class and the ``Literal`` /
  ``field`` imports it required.
- Replace ``DiffusionResponse.error_reason`` / ``error_param`` /
  ``error_details`` with a single ``is_validation_error: bool``
  discriminator. Same on ``VisualGenOutput``. The coordinator-side
  awaiter uses it to re-raise as ``ValueError`` (-> HTTP 400) vs
  ``RuntimeError`` (-> HTTP 500); routes catch the standard types
  directly and no longer import the custom class.
- ``validate_visual_gen_params`` raises ``ValueError`` with the
  multi-line per-violation message. The per-category accumulator
  lists feeding into ``details`` are gone; the flat ``messages``
  list builds the same human-readable content. Fix the
  "silently ignored" wording on the universal-field branch since
  that branch does raise.
- READY signal now propagates ``pipeline_name`` so coordinator-side
  pre-validation uses the actual loaded pipeline's class name
  (was always "VisualGen"). Closes the worker/coordinator parity
  gap that CodeRabbit #10 flagged.

Cascade (all driven by the drop)
- Remove ``VisualGen.validate_request_params`` method. Async video
  route calls module-level ``validate_visual_gen_params`` directly
  with the propagated executor metadata.
- ``VisualGenResult._resolved_value`` dispatches on
  ``out.is_validation_error`` (ValueError vs RuntimeError).
- Sync image, sync video, and async video routes drop their
  ``except VisualGenValidationError`` arm; the existing
  ``except ValueError`` arm handles validation failures the same
  way (HTTP 400 + message).

Tests
- ``TestVisualGenValidationErrorStructured`` ->
  ``TestValidateVisualGenParamsMessages``: assert ``ValueError`` with
  expected substrings instead of structured fields.
- ``TestValidationErrorTransport`` switches to asserting
  ``is_validation_error``.
- ``TestRouteVisualGenValidationError`` -> ``TestRouteEngineValidationError``:
  sync routes inject a stock ``ValueError`` on the mock; async route
  triggers a real validator rejection by sending an unknown
  extra_params key against the mock's executor metadata.
- ``MockVisualGen`` gains an ``executor`` ``SimpleNamespace`` with
  ``pipeline_name`` / ``default_generation_params`` /
  ``extra_param_specs`` so the async pre-flight call works
  end-to-end.

Verified on GB200: full visual_gen unit subsystem 357 passed / 0
failed in 60.67s.

Signed-off-by: Zhenhua Wang <zhenhuaw@nvidia.com>
zhenhuaw-me added a commit that referenced this pull request Jun 1, 2026
… use stock ValueError

Per self-review feedback on PR NVIDIA#14733: no custom exception layer on top
of Python's standard error types. Validation failures now raise plain
``ValueError`` with the same multi-line message; the structured
``reason`` / ``param`` / ``details`` fields are removed.

Core changes
- Remove ``VisualGenValidationError`` class and the ``Literal`` /
  ``field`` imports it required.
- Replace ``DiffusionResponse.error_reason`` / ``error_param`` /
  ``error_details`` with a single ``is_validation_error: bool``
  discriminator. Same on ``VisualGenOutput``. The coordinator-side
  awaiter uses it to re-raise as ``ValueError`` (-> HTTP 400) vs
  ``RuntimeError`` (-> HTTP 500); routes catch the standard types
  directly and no longer import the custom class.
- ``validate_visual_gen_params`` raises ``ValueError`` with the
  multi-line per-violation message. The per-category accumulator
  lists feeding into ``details`` are gone; the flat ``messages``
  list builds the same human-readable content. Fix the
  "silently ignored" wording on the universal-field branch since
  that branch does raise.
- READY signal now propagates ``pipeline_name`` so coordinator-side
  pre-validation uses the actual loaded pipeline's class name
  (was always "VisualGen"). Closes the worker/coordinator parity
  gap that CodeRabbit #10 flagged.

Cascade (all driven by the drop)
- Remove ``VisualGen.validate_request_params`` method. Async video
  route calls module-level ``validate_visual_gen_params`` directly
  with the propagated executor metadata.
- ``VisualGenResult._resolved_value`` dispatches on
  ``out.is_validation_error`` (ValueError vs RuntimeError).
- Sync image, sync video, and async video routes drop their
  ``except VisualGenValidationError`` arm; the existing
  ``except ValueError`` arm handles validation failures the same
  way (HTTP 400 + message).

Tests
- ``TestVisualGenValidationErrorStructured`` ->
  ``TestValidateVisualGenParamsMessages``: assert ``ValueError`` with
  expected substrings instead of structured fields.
- ``TestValidationErrorTransport`` switches to asserting
  ``is_validation_error``.
- ``TestRouteVisualGenValidationError`` -> ``TestRouteEngineValidationError``:
  sync routes inject a stock ``ValueError`` on the mock; async route
  triggers a real validator rejection by sending an unknown
  extra_params key against the mock's executor metadata.
- ``MockVisualGen`` gains an ``executor`` ``SimpleNamespace`` with
  ``pipeline_name`` / ``default_generation_params`` /
  ``extra_param_specs`` so the async pre-flight call works
  end-to-end.

Verified on GB200: full visual_gen unit subsystem 357 passed / 0
failed in 60.67s.

Signed-off-by: Zhenhua Wang <zhenhuaw@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant