Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jan 9, 2026

Hotfix of PR #1709 (#1709) to the main branch.
Hey @benflexcompute, please review this hotfix PR created from your original PR.

⚠️ Note: This PR had conflicts with the base branch and was resolved automatically. Please review the changes carefully.


Note

Hotfix updates boundary-condition validation to be tolerant of legacy assets that lack private_attributes (e.g., bounding boxes).

  • Adds legacy detection in _collect_asset_boundary_entities and returns (entities, has_missing_private_attributes); skips deletion filtering when legacy is detected
  • Propagates has_missing_private_attributes to _validate_boundary_completeness to downgrade missing-BC errors to warnings (with clarified message)
  • Adjusts call site in _check_complete_boundary_condition_and_unknown_surface
  • Updates tests to supply private_attributes where needed and adds test_legacy_asset_missing_private_attributes to verify warning behavior
  • Refreshes surface-mesh test fixture (tests/.../surface_mesh/simulation.json) to include private_attributes for boundaries

Written by Cursor Bugbot for commit c778d48. This will update automatically on new commits. Configure here.

…ut bounding box information in the simulation parameters validation function. (#1709)
…assets

  When legacy cloud assets lack private_attributes (bounding box information),
  downgrade missing boundary condition errors to warnings instead of hard errors.
  This prevents validation failures for old simulation.json files that don't
  have bounding box data.

  Changes:
  - Modified _collect_asset_boundary_entities to detect legacy assets (all
    boundaries missing private_attributes) and return the flag
  - Updated _validate_boundary_completeness to accept has_missing_private_attributes
    parameter and downgrade errors to warnings when detected
  - Improved warning message: "If these boundaries are valid, please add them to
    a boundary condition model in the `models` section."
  - Added test case to verify legacy asset warning behavior
  - Fixed test_beta_mesher_only_features to include private_attributes for surfaces
@benflexcompute benflexcompute marked this pull request as ready for review January 14, 2026 18:35
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 22397917fe

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@benflexcompute benflexcompute merged commit 4a9371d into main Jan 14, 2026
21 checks passed
@benflexcompute benflexcompute deleted the hotfix-main-pr1709 branch January 14, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants