Skip to content

Fix runtime-extra-platforms failures related to HybridGlobalization - #87913

Merged
mkhamoyan merged 2 commits into
mainfrom
hybrid_tests_failures
Jun 22, 2023
Merged

Fix runtime-extra-platforms failures related to HybridGlobalization#87913
mkhamoyan merged 2 commits into
mainfrom
hybrid_tests_failures

Conversation

@mkhamoyan

@mkhamoyanmkhamoyan commented Jun 22, 2023

Copy link
Copy Markdown
Contributor

Fix failures on runtime-extra-platforms after merging #86895
Return ERROR_COMPARISON_OPTIONS_NOT_FOUND only when options are not found and ERROR_INDEX_NOT_FOUND when substring is not found.

@mkhamoyanmkhamoyan added os-ios Apple iOS os-tvos Apple tvOS os-maccatalyst MacCatalyst OS labels Jun 22, 2023
@mkhamoyanmkhamoyan self-assigned this Jun 22, 2023
@ghost

Copy link
Copy Markdown

Tagging subscribers to 'os-tvos': @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Issue Details

Fix failures on runtime-extra-platforms after merging #86895
Return -2 only when options are not found and -1 when substring is not found.

Author:mkhamoyan
Assignees:mkhamoyan
Labels:

os-ios, os-tvos, os-maccatalyst

Milestone:-

@mkhamoyan

Copy link
Copy Markdown
ContributorAuthor

/azp run runtime-extra-platforms

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mkhamoyanmkhamoyan changed the title Fix runtime-extra-platforms failuresFix runtime-extra-platforms failures related to HybridGlobalizationJun 22, 2023
@mkhamoyan
mkhamoyan marked this pull request as ready for review June 22, 2023 10:04
{
assert(cwTargetLength >= 0);
Range result = {-2, 0};
Range result = {-1, 0};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What do these magic numbers of -1, -2, -3, etc. mean?

@mkhamoyanmkhamoyanJun 22, 2023

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Added ErrorCodes enum to make it clear.

@mkhamoyan

Copy link
Copy Markdown
ContributorAuthor

/azp run runtime-ioslike

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

{
assert(cwTargetLength >= 0);
Range result = {-2, 0};
Range result = {ERROR_INDEX_NOT_FOUND, 0};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't this be ERROR_COMPARISON_OPTIONS_NOT_FOUND as previously the value was -2?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Never mind, that was actually the fix in the first place.

@ivanpovazanivanpovazan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Thank you!

Just please make sure that all related System.Globalization failures in runtime-extra-platforms are resolved before merging.

@mkhamoyan

Copy link
Copy Markdown
ContributorAuthor

/azp run runtime-extra-platforms

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mkhamoyan

Copy link
Copy Markdown
ContributorAuthor

Failures are not related.

@mkhamoyan
mkhamoyan merged commit fad3d54 into mainJun 22, 2023
@mkhamoyan
mkhamoyan deleted the hybrid_tests_failures branch June 22, 2023 18:25
@ghostghost locked as resolved and limited conversation to collaborators Jul 22, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@mkhamoyan@stephentoub@ivanpovazan