Skip to content

Update recoverable error codes#492

Merged
emdobrin merged 6 commits intoadobe:hotfix-v5.0.3from
emdobrin:hot-fix-1
Oct 14, 2024
Merged

Update recoverable error codes#492
emdobrin merged 6 commits intoadobe:hotfix-v5.0.3from
emdobrin:hot-fix-1

Conversation

@emdobrin
Copy link
Copy Markdown
Contributor

@emdobrin emdobrin commented Oct 8, 2024

Description

  • Adds 507 as recoverable error code as per contract with the Edge server implementation
  • Uses NetworkServiceConstants.RECOVERABLE_ERROR_CODES as the base of error codes and add additional ones specific to Edge
  • Checks Retry-After value is greater than 0, otherwise applies the default timeout.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link
Copy Markdown
Member

@sbenedicadb sbenedicadb left a comment

Choose a reason for hiding this comment

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

good pending decision on whether a retry-after value of 0 is valid or not

Copy link
Copy Markdown
Contributor

@kevinlind kevinlind left a comment

Choose a reason for hiding this comment

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

Looks good, pending change suggested by Praveen.

test-ios:
macos:
xcode: 15.1.0 # Specify the Xcode version to use
resource_class: macos.x86.medium.gen2
Copy link
Copy Markdown

@praveek praveek Oct 14, 2024

Choose a reason for hiding this comment

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

nit: We don't specify resource_class for our other repos and let circle ci choose the default one. I’d recommend removing it if it’s not necessary.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The Edge functional tests were at times using 100% of the default image CPU causing test failures. We specify the medium resource class to provide more CPU power for these tests.

@emdobrin emdobrin changed the base branch from main to hotfix-v5.0.3 October 14, 2024 21:56
@emdobrin
Copy link
Copy Markdown
Contributor Author

@sbenedicadb, I confirmed that retry-after with value 0 is not expected from server-side so I kept the changes, ready to merge.

@emdobrin emdobrin merged commit 3a5ec25 into adobe:hotfix-v5.0.3 Oct 14, 2024
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.

4 participants