Skip to content

Conversation

@JLReitz
Copy link

@JLReitz JLReitz commented Jul 10, 2025

  • Allocators are stored and propagated to union composite type alternative values during construction and emplacement
  • in_place_index constructor is generated for union composite types
  • DependencyBuilder sets uses_union flag appropriately

@JLReitz JLReitz force-pushed the unionant-allocator-propogation branch 2 times, most recently from 448aaf9 to aa2849f Compare July 11, 2025 19:42
@JLReitz JLReitz marked this pull request as ready for review July 11, 2025 19:56
@JLReitz
Copy link
Author

JLReitz commented Jul 11, 2025

How can we enable pmr-flavored language checks for this PR?

@thirtytwobits
Copy link
Member

How can we enable pmr-flavored language checks for this PR?

In .github/workflows see the test.yml. Look for the language-verification-c-cpp: section and then strategy/matrix/language under that section. Add the appropriate PMR overrides to this array and the CI will run.


{%- if composite_type.inner_type is not UnionType %}
{% if composite_type.fields_except_padding %}
// Initializing constructor
Copy link
Author

Choose a reason for hiding this comment

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

At the moment tagged in_place_index constructors are only defined when the language options have constructor_convention != default, FYI

@JLReitz JLReitz force-pushed the unionant-allocator-propogation branch from aa2849f to 318a314 Compare July 15, 2025 02:46
@JLReitz
Copy link
Author

JLReitz commented Jul 15, 2025

Interesting failure that popped up all of a sudden during the lint test.

lint: commands[3]> mypy -p nunavut --cache-dir /__w/nunavut/nunavut/.tox/lint/tmp --txt-report /__w/nunavut/nunavut/.tox/lint/tmp/mypy-report-lib --config-file /__w/nunavut/nunavut/tox.ini
src/nunavut/cli/__init__.py: note: In function "_make_parser":
src/nunavut/cli/__init__.py:916: error: Redundant cast to "ParserT"  [redundant-cast]

Could it be from me updating .github/workflows/test.py? Looks like I'm not out of sync with the 3.0.preview branch. I ran the full tox suite within an up to date python development container and could not reproduce.

@thirtytwobits
Copy link
Member

Interesting failure that popped up all of a sudden during the lint test.

lint: commands[3]> mypy -p nunavut --cache-dir /__w/nunavut/nunavut/.tox/lint/tmp --txt-report /__w/nunavut/nunavut/.tox/lint/tmp/mypy-report-lib --config-file /__w/nunavut/nunavut/tox.ini
src/nunavut/cli/__init__.py: note: In function "_make_parser":
src/nunavut/cli/__init__.py:916: error: Redundant cast to "ParserT"  [redundant-cast]

Could it be from me updating .github/workflows/test.py? Looks like I'm not out of sync with the 3.0.preview branch. I ran the full tox suite within an up to date python development container and could not reproduce.

.github/workflows/test.py doesn't exist anymore. Looks like this is something from a change upstream. Try changing line 916 of src/nunavut/cli/init.py to be just return parser

@JLReitz
Copy link
Author

JLReitz commented Jul 16, 2025

.github/workflows/test.py doesn't exist anymore.

My mistake, I had meant .github/workflows/test.yml

@JLReitz JLReitz force-pushed the unionant-allocator-propogation branch from 318a314 to 4428bd5 Compare July 16, 2025 20:29
@JLReitz
Copy link
Author

JLReitz commented Jul 30, 2025

Bugfix for CETL VariableLengthArray required to resolve failing checks: OpenCyphal/CETL#188

@JLReitz
Copy link
Author

JLReitz commented Jul 31, 2025

Waiting for the release of CETL v.1.4.2 to push submodule update

@thirtytwobits
Copy link
Member

Waiting for the release of CETL v.1.4.2 to push submodule update

https://github.com/OpenCyphal/CETL/releases/tag/v1.4.2

JLReitz added 2 commits August 1, 2025 17:28
 - Allocators are stored and propagated to union composite type alternative values during construction and emplacement
 - `in_place_index` constructor is generated for union composite types
 - `DependencyBuilder` sets `uses_union` flag appropriately
@JLReitz JLReitz force-pushed the unionant-allocator-propogation branch from 4428bd5 to 2f193f3 Compare August 1, 2025 17:29
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 1, 2025

@thirtytwobits
Copy link
Member

Strong work. Thank you for your contribution citizen. 🇺🇸🏈🥧

@thirtytwobits thirtytwobits merged commit 426fe05 into OpenCyphal:3.0.preview Aug 4, 2025
60 checks passed
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.

2 participants