Skip to content

Conversation

@yuslepukhin
Copy link
Member

Description

Fix packaging pipelines

Motivation and Context

During CIs and local builds Ort::Status() gets inherited from the base due to using directives,
however, that does not work for packaging pipelines.
Having default ctor is important for storing Status in containers if needed.

  During CIs and local builds it gets inherited from the base due to using directives,
  however, that does not work for packaging pipleines.
  Having default ctor is important for storing Status in containers if needed.
@yuslepukhin yuslepukhin requested review from Copilot and snnn August 26, 2025 18:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a default constructor to the Ort::Status class to fix packaging pipeline issues. The default constructor was previously inherited from the base class through using Base::Base, but this inheritance approach doesn't work in packaging pipelines.

  • Add explicit default constructor declaration to Ort::Status class
  • Update existing code to use explicit null pointer constructor instead of default constructor

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
onnxruntime_cxx_api.h Adds explicit default constructor declaration to Status class
onnxruntime_cxx_inline.h Updates Status construction call to use explicit nullptr constructor

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@yuslepukhin yuslepukhin merged commit c9ec1da into main Aug 27, 2025
147 of 154 checks passed
@yuslepukhin yuslepukhin deleted the yuslepukhin/add_default_ctor_for_status branch August 27, 2025 17:27
snnn pushed a commit that referenced this pull request Aug 28, 2025
### Description
<!-- Describe your changes. -->
Fix packaging pipelines


### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
During CIs and local builds Ort::Status() gets inherited from the base
due to using directives,
  however, that does not work for packaging pipelines.
Having default ctor is important for storing Status in containers if
needed.
snnn added a commit that referenced this pull request Aug 29, 2025
- **Relax WeightBiasQuantization constraint for larger QDQ node group
(#25673)**
- **Add cuda graph implementation for NV TRT RTX EP (#25787)**
- **python GPU IO Bindings for NVIDIA  (#25776)**
- **Fixes for DynamicQuantizeMatMul and Attention3D tests (#25814)**
- **Fix a long standing bug on file memory mapping on windows.
(#25833)**
- **Add API for precompiled model compatibility check using just the
compat info (#25841)**
- **Enable ABSL_FLAGS flag registration for onnxruntime_perf_test for
mobile build (#25849)**
- **Add default constructor to Ort::Status. (#25860)**
- #25871
- #25878
- #25884
- #25886
- #25866
@snnn
Copy link
Member

snnn commented Aug 30, 2025

The change is added to the release branch

gedoensmax pushed a commit to gedoensmax/onnxruntime that referenced this pull request Sep 2, 2025
### Description
<!-- Describe your changes. -->
Fix packaging pipelines


### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
During CIs and local builds Ort::Status() gets inherited from the base
due to using directives,
  however, that does not work for packaging pipelines.
Having default ctor is important for storing Status in containers if
needed.
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.

5 participants