Skip to content

Serialiser_Engine: Add isUpgraded argument to DeprecateSerialiser and pass on bool #3056

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

Conversation

IsakNaslundBh
Copy link
Contributor

Issues addressed by this PR

Closes #3055

Add isUpgraded argument to DeprecateSerialiser and pass on bool

Especially critical for the call to this made from the main Deserialise method when the type upgrader failed, as this was the mechanism able to cause an infinite loop

Test files

CheckVerisoning should still pass.

Was trying to figure out a way to add a UT for this, but could not think of a simple case that is not to involved, as it require type upgrader to fail, but an explicit upgrader to run and return a faulty type.

Changelog

Additional comments

Especially critical for the call to this made from the main Deserialise method when the type upgrader failed, as this was the mechanism able to cause an infinite loop
@IsakNaslundBh IsakNaslundBh added the type:bug Error or unexpected behaviour label May 23, 2023
@IsakNaslundBh IsakNaslundBh requested a review from adecler as a code owner May 23, 2023 07:11
@IsakNaslundBh IsakNaslundBh self-assigned this May 23, 2023
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.

The changes made to the code make sense given the bug presented and am happy for this to be deployed for further testing.

@FraserGreenroyd
Copy link
Contributor

@BHoMBot check compliance
@BHoMBot check required
@BHoMBot check unit-tests

@bhombot-ci
Copy link

bhombot-ci bot commented May 23, 2023

@FraserGreenroyd 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
  • check unit-tests

There are 16 requests in the queue ahead of you.

@bhombot-ci
Copy link

bhombot-ci bot commented May 23, 2023

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.

@bhombot-ci
Copy link

bhombot-ci bot commented May 23, 2023

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.

Copy link
Member

@adecler adecler left a comment

Choose a reason for hiding this comment

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

The code changes makes sense.
Discussed a potential edge case with @IsakNaslundBh and am happy that all is working as it should be.

@FraserGreenroyd
Copy link
Contributor

@BHoMBot check unit-tests

@bhombot-ci
Copy link

bhombot-ci bot commented May 23, 2023

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

  • check unit-tests

@FraserGreenroyd
Copy link
Contributor

@BHoMBot check unit-tests

@bhombot-ci
Copy link

bhombot-ci bot commented May 23, 2023

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

  • check unit-tests

@FraserGreenroyd
Copy link
Contributor

@BHoMBot check ready-to-merge

@bhombot-ci
Copy link

bhombot-ci bot commented May 23, 2023

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

  • check ready-to-merge

@FraserGreenroyd
Copy link
Contributor

@BHoMBot check unit-tests

@bhombot-ci
Copy link

bhombot-ci bot commented May 23, 2023

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

  • check unit-tests

@FraserGreenroyd
Copy link
Contributor

@BHoMBot check unit-tests

@bhombot-ci
Copy link

bhombot-ci bot commented May 23, 2023

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

  • check unit-tests

@FraserGreenroyd
Copy link
Contributor

@BHoMBot this is a DevOps instruction. I am requesting neutral checks on: unit-tests

@bhombot-ci
Copy link

bhombot-ci bot commented May 23, 2023

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

@FraserGreenroyd FraserGreenroyd merged commit c216ba4 into develop May 23, 2023
@FraserGreenroyd FraserGreenroyd deleted the Serialiser_Engine-#3055-AddPRtoectionFromPotentialInfitineLoopForFaultyVersioning branch May 23, 2023 11:03
@bhombot-ci bhombot-ci bot mentioned this pull request Jun 12, 2023
@FraserGreenroyd FraserGreenroyd changed the title Add isUpgraded argument to DeprecateSerialiser and pass on bool Serialiser_Engine: Add isUpgraded argument to DeprecateSerialiser and pass on bool Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Error or unexpected behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serialiser_Engine: Infinite looping for upgrader possible
3 participants