Skip to content

chore(source-amazon-seller-partner): update to cdk v7.1.0#66485

Merged
Patrick Nilan (pnilan) merged 9 commits into
masterfrom
pnilan/asp/bump-cdk-version-7.1.0
Sep 24, 2025
Merged

chore(source-amazon-seller-partner): update to cdk v7.1.0#66485
Patrick Nilan (pnilan) merged 9 commits into
masterfrom
pnilan/asp/bump-cdk-version-7.1.0

Conversation

@pnilan
Copy link
Copy Markdown
Contributor

What

  • Updates to CDK v7.1.0
  • Bumps patch version

Review guide

n/a

User Impact

  • Too many requests errors will not be categorized as transient -- no more oncall pages regarding this. :)

@github-actions
Copy link
Copy Markdown
Contributor

👋 Greetings, Airbyte Team Member!

Here are some helpful tips and reminders for your convenience.

Helpful Resources

PR Slash Commands

Airbyte Maintainers (that's you!) can execute the following slash commands on your PR:

  • /format-fix - Fixes most formatting issues.
  • /bump-version - Bumps connector versions.
    • You can specify a custom changelog by passing changelog. Example: /bump-version changelog="My cool update"
    • Leaving the changelog arg blank will auto-populate the changelog from the PR title.
  • /run-cat-tests - Runs legacy CAT tests (Connector Acceptance Tests)
  • /build-connector-images - Builds and publishes a pre-release docker image for the modified connector(s).
  • /poe connector source-example lock - Run the Poe lock task on the source-example connector, committing the results back to the branch.
  • /poe source example lock - Alias for /poe connector source-example lock.
  • /poe source example use-cdk-branch my/branch - Pin the source-example CDK reference to the branch name specified.
  • /poe source example use-cdk-latest - Update the source-example CDK dependency to the latest available version.

📝 Edit this welcome message.

@pnilan Patrick Nilan (pnilan) requested a review from a team September 17, 2025 17:52
@maxi297
Copy link
Copy Markdown
Contributor

Note that the only reason I wasn't able to up to CDK v7 was because of rate limiting issues here

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 17, 2025

Deploy preview for airbyte-docs ready!

✅ Preview
https://airbyte-docs-78y3px2b9-airbyte-growth.vercel.app

Built with commit d9c5e09.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 17, 2025

source-amazon-seller-partner Connector Test Results

500 tests   497 ✅  16m 42s ⏱️
  2 suites    3 💤
  2 files      0 ❌

Results for commit d9c5e09.

♻️ This comment has been updated with latest results.

output = self._read(stream_name, config())

assert output.errors[0].trace.error.failure_type == FailureType.config_error
assert list(filter(lambda error: error.trace.error.failure_type == FailureType.config_error, output.errors))
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.

Errors were not in the same order. We're still sending the same errors though so I just checked that there were a config error and hopefully this is sufficient.

}


@freeze_time("2017-02-25T00:00:00Z")
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.

I'm not sure exactly why this is a problem now but the start date would be after the end date and this would not generate any slice so the check would fail. If we think we need to investigate more, we should take more time to understand why

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.

My curiosity often gets the better of me so decided to go down the rabbit hole...

My suspicion here is that right now for this stream we take the maximum of either the replication_start_date or the current time minus 2 years. But for the replication_end_date, we just take that value if its defined. So if we don't use freezegun like you have it then we have a start date of now() - 2 years (aka 2023-09-24) and an end date as defined in the config as 2017-02-25. So now we're left with 0 slices and we fail. This presumably only passed when this stream was still using the legacy declarative stream and now with our new partition generation we yield 2 slices.

But this is probably an oversight on our part when we define the incremental behavior for orders.incremental_sync.end_datetime.datetime instead of doing:
"{{ format_datetime(config['replication_end_date'] if config.get('replication_end_date') else (now_utc() - duration('PT2M')).strftime('%Y-%m-%dT%H:%M:%SZ'), '%Y-%m-%dT%H:%M:%SZ') }}"

When in reality what we may want to do is use the default now() - 2 months if replication_start_date is newer than replication_end_date. Something like that?

Either way, I think this is a bit out of scope for the moment since I think even in the old behavior we sync no records if end is older start... But just posting my glorious trip down this work of art

@pnilan
Copy link
Copy Markdown
Contributor Author

Patrick Nilan (pnilan) commented Sep 23, 2025

/format-fix

Format-fix job started... Check job output.

✅ Changes applied successfully. (d9c5e09)

@dbgold17
Copy link
Copy Markdown
Contributor

Note that the only reason I wasn't able to up to CDK v7 was because of rate limiting issues here

Maxime Carbonneau-Leclerc (@maxi297) Patrick Nilan (@pnilan) why were those rate-limit errors caused by the upgrade to v7 (or are they also surfacing with the current version?). How is this PR addressing those errors? I only see changes to the connector's tests

@maxi297
Copy link
Copy Markdown
Contributor

Maxime Carbonneau-Leclerc (maxi297) commented Sep 24, 2025

Maxime Carbonneau-Leclerc (@maxi297) Patrick Nilan (@pnilan) why were those rate-limit errors caused by the upgrade to v7 (or are they also surfacing with the current version?). How is this PR addressing those errors? I only see changes to the connector's tests

My understanding is that we were getting rate limited on v6 as well (I don't have a proof of that because the up-to-date pipeline force pushes when there is a new version and therefore I can't find the CI that ran on v6). We could see if v6 is fine by doing a dummy PR with basically one line change in source-amazon-seller-partner and see if we hit the rate limiting as well. WDYT?

Anyway, the latest CI run is passing without rate limiting so I assume this might be fine now.

@dbgold17
Copy link
Copy Markdown
Contributor

Maxime Carbonneau-Leclerc (@maxi297) Patrick Nilan (@pnilan) why were those rate-limit errors caused by the upgrade to v7 (or are they also surfacing with the current version?). How is this PR addressing those errors? I only see changes to the connector's tests

My understanding is that we were getting rate limited on v6 as well (I don't have a proof of that because the up-to-date pipeline force pushes when there is a new version and therefore I can't find the CI that ran on v6). We could see if v6 is fine by doing a dummy PR with basically one line change in source-amazon-seller-partner and see if we hit the rate limiting as well. WDYT?

Anyway, the latest CI run is passing without rate limiting so I assume this might be fine now.

Okay I think this was my confusion. Based on the PR description, I expected to see some change here to fix the rate limiting issue. Correct me if I'm wrong, but Patrick Nilan (@pnilan) fixed the issue with CDK v7.1.0 in this PR last week

}


@freeze_time("2017-02-25T00:00:00Z")
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.

My curiosity often gets the better of me so decided to go down the rabbit hole...

My suspicion here is that right now for this stream we take the maximum of either the replication_start_date or the current time minus 2 years. But for the replication_end_date, we just take that value if its defined. So if we don't use freezegun like you have it then we have a start date of now() - 2 years (aka 2023-09-24) and an end date as defined in the config as 2017-02-25. So now we're left with 0 slices and we fail. This presumably only passed when this stream was still using the legacy declarative stream and now with our new partition generation we yield 2 slices.

But this is probably an oversight on our part when we define the incremental behavior for orders.incremental_sync.end_datetime.datetime instead of doing:
"{{ format_datetime(config['replication_end_date'] if config.get('replication_end_date') else (now_utc() - duration('PT2M')).strftime('%Y-%m-%dT%H:%M:%SZ'), '%Y-%m-%dT%H:%M:%SZ') }}"

When in reality what we may want to do is use the default now() - 2 months if replication_start_date is newer than replication_end_date. Something like that?

Either way, I think this is a bit out of scope for the moment since I think even in the old behavior we sync no records if end is older start... But just posting my glorious trip down this work of art

@pnilan Patrick Nilan (pnilan) merged commit c881019 into master Sep 24, 2025
31 checks passed
@pnilan Patrick Nilan (pnilan) deleted the pnilan/asp/bump-cdk-version-7.1.0 branch September 24, 2025 21:35
Matteo Palarchio (matteogp) pushed a commit that referenced this pull request Oct 10, 2025
Co-authored-by: maxime.c <maxime@airbyte.io>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants