Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geometry_Engine: redundant calls to clone removed #3232

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

pawelbaran
Copy link
Member

Issues addressed by this PR

Closes #943

Test files

@FraserGreenroyd as discussed, it would be great if you could do a sanity check and onboard someone to dust off the test scripts that would confirm that I have not broken anything 🙈

Changelog

Additional comments

@pawelbaran pawelbaran added the type:compliance Non-conforming to code guidelines label Jan 5, 2024
@pawelbaran pawelbaran self-assigned this Jan 5, 2024
@Tom-Kingstone Tom-Kingstone self-requested a review January 9, 2024 08:32
@Tom-Kingstone
Copy link
Contributor

@BHoMBot check unit-tests

Copy link

bhombot-ci bot commented Jan 9, 2024

@Tom-Kingstone to confirm, the following actions are now queued:

  • check unit-tests

Copy link
Contributor

@Tom-Kingstone Tom-Kingstone left a comment

Choose a reason for hiding this comment

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

Tested by running all the unit tests for Geometry_Engine, and came back with 3 errors, see below:

@pawelbaran
Copy link
Member Author

Thanks @Tom-Kingstone for testing, I pushed a fix for the bug that you have found 👍

@Tom-Kingstone
Copy link
Contributor

@BHoMBot check unit-tests

Copy link

bhombot-ci bot commented Jan 10, 2024

@Tom-Kingstone to confirm, the following actions are now queued:

  • check unit-tests

Copy link
Contributor

@Tom-Kingstone Tom-Kingstone left a comment

Choose a reason for hiding this comment

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

After testing with Geometry_Engine unit tests locally, as well as some other engines that are dependent on the Geometry_Engine (namely environment, facade and physical), I am happy to say that removing DeepClone in these places does not break the methods.

Copy link
Contributor

@FraserGreenroyd FraserGreenroyd left a comment

Choose a reason for hiding this comment

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

Have reviewed the code and @Tom-Kingstone has run the tests so this looks good to me now 😄

@FraserGreenroyd
Copy link
Contributor

@BHoMBot check versioning
@BHoMBot check installer
@BHoMBot check compliance
@BHoMBot check required

Copy link

bhombot-ci bot commented Jan 10, 2024

@FraserGreenroyd to confirm, the following actions are now queued:

  • check versioning
  • check installer
  • 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

Copy link

bhombot-ci bot commented Jan 10, 2024

Please be advised that the check with reference 20335594460 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 57 additional annotations waiting, made up of 0 errors and 57 warnings.

Copy link

bhombot-ci bot commented Jan 10, 2024

Please be advised that the check with reference 20335605755 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 130 additional annotations waiting, made up of 0 errors and 130 warnings.

Copy link

bhombot-ci bot commented Jan 10, 2024

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.

Copy link

bhombot-ci bot commented Jan 10, 2024

Please be advised that the check with reference 20335635243 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 130 additional annotations waiting, made up of 0 errors and 130 warnings.

Copy link

bhombot-ci bot commented Jan 10, 2024

The check versioning has already been run previously and recorded as a successful check. This check has not been run again at this time.

@FraserGreenroyd
Copy link
Contributor

@BHoMBot this is a DevOps instruction. I am requesting neutral checks on: core, documentation-compliance, null-handling, serialisation, unit-tests

Copy link

bhombot-ci bot commented Jan 10, 2024

@FraserGreenroyd I have provided neutral checks to the checks requested. These checks will need to be run properly to obtain full results.

@FraserGreenroyd
Copy link
Contributor

@BHoMBot check ready-to-merge

Copy link

bhombot-ci bot commented Jan 10, 2024

@FraserGreenroyd to confirm, the following actions are now queued:

  • check ready-to-merge

@FraserGreenroyd FraserGreenroyd merged commit 7aceffd into develop Jan 10, 2024
@FraserGreenroyd FraserGreenroyd deleted the BHoM_Engine-#943-RemoveUnnecessaryClones branch January 10, 2024 10:00
@bhombot-ci bhombot-ci bot mentioned this pull request Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:compliance Non-conforming to code guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Geometry_Engine: Remove unnecessary clones
3 participants