Skip to content

Conversation

@romilqlik
Copy link

@romilqlik romilqlik commented Jul 4, 2025

Description of change

This is Combined PR of:

  • SAC-27869 - fix libraries and dependabot issues
  • SAC-27861 - 5XX and Unhandled Listrak exception handling and Schema Updates

Manual QA steps

  • Discovery: Working
  • Sync: NA (Test Account not available)
  • Unittests: passing
  • Integration test: not implemented

Risks

  • NA

#Rollback steps

  • Revert this branch

@Jaideep-Qlik Jaideep-Qlik requested a review from atttiwari July 7, 2025 04:42
@Jaideep-Qlik Jaideep-Qlik requested a review from RushiT0122 July 8, 2025 10:20
Copy link

@RushiT0122 RushiT0122 left a comment

Choose a reason for hiding this comment

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

On my local testing I observed couple of issue,

  1. [Logon] [InvalidLogonAttempt] Invalid Credentials Provided. is getting retried 5 times, shouldn't be retried.
  2. sync implementation needs to be revisited.

"zeep",
'backoff==1.8.0',
'pendulum==1.2.0',
"singer-python==6.1.1",

Choose a reason for hiding this comment

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

Please make below changes,

    packages=find_packages(),
    package_data = {
        "tap_listrak/schemas": ["*.json"]
    },

Copy link
Author

Choose a reason for hiding this comment

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

This is done.

Copy link

@RushiT0122 RushiT0122 left a comment

Choose a reason for hiding this comment

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

Couple observations needs the attenssion,

  1. IMO, InvalidLogonAttempt shouldn't be retried.
ERROR Giving up request(...) after 5 tries (zeep.exceptions.Fault: GetContactListCollection(): [Logon] [InvalidLogonAttempt] Invalid Credentials Provided)
  1. sync implementation needs to be revisited.

@romilqlik
Copy link
Author

Couple observations needs the attenssion,

  1. IMO, InvalidLogonAttempt shouldn't be retried.
ERROR Giving up request(...) after 5 tries (zeep.exceptions.Fault: GetContactListCollection(): [Logon] [InvalidLogonAttempt] Invalid Credentials Provided)
  1. sync implementation needs to be revisited.

@romilqlik
Copy link
Author

This is done.
in http.py : Updated the requests() function to skip retries for Fault exceptions that contain "InvalidLogonAttempt".

in init.py: Refactored sync() function to dynamically call the sync function for each selected stream insted of hardcoding sync_lists(),

@RushiT0122
Copy link

Why did we delete circle ci config?

max_tries=5,
jitter=None,
on_backoff=log_retry_attempt,
giveup=is_non_retriable_exception # This will prevent retry on bad login

Choose a reason for hiding this comment

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

Since the giveup handler is named is_non_retriable_exception(), the comment doesn't add any value and seems redundant. IMO, no comment is needed here.

Choose a reason for hiding this comment

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

Also please avoid force pushes.

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for your feedback
Removed the comment, and also avoided force push.

Also added the Circle CI config, also added unit tests for the same.

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.

6 participants