BHoM_Engine
BHoM_Engine copied to clipboard
Structure_Engine: Fix stack overflow exception for Area for FEMesh
Issues addressed by this PR
Closes #3323
Found by investigating issue with unit tests. Problem was a real stack overflow exception in the area method for the FEMesh.
All structural dataset re-serialised to account for the change from StartNode to Start etc on the bars.
Test files
Unit-tests should now run.
Changelog
Additional comments
@BHoMBot check compliance @BHoMBot check unit-tests
@IsakNaslundBh to confirm, the following actions are now queued:
- check
code-compliance - check
documentation-compliance - check
project-compliance - check
branch-compliance - check
dataset-compliance - check
copyright-compliance - check
unit-tests
@BHoMBot check unit-tests
@IsakNaslundBh to confirm, the following actions are now queued:
- check
unit-tests
@BHoMBot check unit-tests
@FraserGreenroyd to confirm, the following actions are now queued:
- check
unit-tests
There are 2 requests in the queue ahead of you.
@IsakNaslundBh to confirm, the following actions are now queued:
- check
unit-tests
@IsakNaslundBh to confirm, the following actions are now queued:
- check
unit-tests
Have tried to get all structures UTs working as intended now.
The only one still failing locally is the Cellular section, and that is a serialisation issue rather than a UT issue.
It is coming from the change to how the name is handled in https://github.com/BHoM/BHoM_Engine/pull/3144 . Where the obejct returned has an empty name, but when serialised and de-serialised it comes back with a null name.
Might be worth raising an issue for, not sure. Could potentially set names on deserialization to emtpy strings rather than null, but that could cause similar issues the other way around. Other otption would be to roll back the change for the name made in the linked PR, or make it onyl skip name if null, rather than NullOrEMpty. Nontheless, out of scope for this particular PR.
The Bot seem to agree with me. Think this can be reviewed now. Only failing UT for structures is the one I mentioned above. The rest is also to be fixed, but not in this PR, but should be fixed by the corresponding code owners, which is @IsakNaslundBh , @alelom @peterjamesnugent @FraserGreenroyd (See current failing tests)
@BHoMBot check compliance @BHoMBot check required
@IsakNaslundBh to confirm, the following actions are now queued:
- check
code-compliance - check
documentation-compliance - check
project-compliance - check
branch-compliance - check
dataset-compliance - check
copyright-compliance - check
code-compliance - check
documentation-compliance - check
project-compliance - check
core - check
null-handling - check
serialisation - check
versioning - check
installer
The check code-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.
The check documentation-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.
FAO: @FraserGreenroyd @pawelbaran is seeking dispensation on this Pull Request to skip a required check. Please can you provide authorisation for the check to be skipped, or provide assistance as appropriate.
The check they wish to have dispensation on is unit-tests.
If you are providing dispensation on this occasion, please reply with:
@BHoMBot this is a DevOps instruction. I am authorising dispensation to be granted on check ref.
24100093353
@BHoMBot this is a DevOps instruction. I am authorising dispensation to be granted on check ref. 24100093353
@IsakNaslundBh I have now provided a passing check on reference 24100093353 as requested.
Providing dispensation as of comment here: https://github.com/BHoM/BHoM_Engine/pull/3330#issuecomment-2069287165
@BHoMBot check ready-to-merge
@IsakNaslundBh to confirm, the following actions are now queued:
- check
ready-to-merge