Skip to content
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

chore(pipes-sources): update integration tests to use SqsTarget #31589

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

msambol
Copy link
Contributor

@msambol msambol commented Sep 28, 2024

This incorporates feedback from #30756 so all integration tests are uniform.

Related to #31588.

@github-actions github-actions bot added p2 distinguished-contributor [Pilot] contributed 50+ PRs to the CDK labels Sep 28, 2024
@aws-cdk-automation aws-cdk-automation requested a review from a team September 28, 2024 04:03
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Sep 28, 2024
@msambol
Copy link
Contributor Author

msambol commented Sep 28, 2024

@moelasmar Likewise here, could you review please :)

@@ -1,5 +1,7 @@
import { randomUUID } from 'crypto';
import { ITarget, InputTransformation, Pipe, TargetConfig } from '@aws-cdk/aws-pipes-alpha';
import { InputTransformation, Pipe } from '@aws-cdk/aws-pipes-alpha';
// eslint-disable-next-line import/no-extraneous-dependencies
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure the proper way to handle this. If I add @aws-cdk/aws-pipes-targets-alphs to devDependencies, it creates a circular dependency. is eslint-disable-next-line import/no-extraneous-dependencies OK to have here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@moelasmar I may need your input here. Do I need to go back to those TestClasses?

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry @msambol I missed checking this PR, I will take a look to it tomorrow.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! The build is failing but those look like good imports to me in the integration test?

@aws-cdk/aws-pipes-sources-alpha: /codebuild/output/src3454251283/src/github.com/aws/aws-cdk/packages/@aws-cdk/aws-pipes-sources-alpha/test/integ.dynamodb.ts
@aws-cdk/aws-pipes-sources-alpha:   3:27  error  Unable to resolve path to module '@aws-cdk/aws-pipes-targets-alpha'  import/no-unresolved
@aws-cdk/aws-pipes-sources-alpha: /codebuild/output/src3454251283/src/github.com/aws/aws-cdk/packages/@aws-cdk/aws-pipes-sources-alpha/test/integ.kinesis.ts
@aws-cdk/aws-pipes-sources-alpha:   3:27  error  Unable to resolve path to module '@aws-cdk/aws-pipes-targets-alpha'  import/no-unresolved
@aws-cdk/aws-pipes-sources-alpha: /codebuild/output/src3454251283/src/github.com/aws/aws-cdk/packages/@aws-cdk/aws-pipes-sources-alpha/test/integ.sqs.ts
@aws-cdk/aws-pipes-sources-alpha:   4:27  error  Unable to resolve path to module '@aws-cdk/aws-pipes-targets-alpha'  import/no-unresolved
@aws-cdk/aws-pipes-sources-alpha: ✖ 3 problems (3 errors, 0 warnings)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@moelasmar Wondering if I should revert some of these changes and do one test-classes.ts file that contains an SqsSource in the targets directory and an SqsTarget in the sources directory, that way there are no dependencies between the two.

mergify bot pushed a commit that referenced this pull request Oct 8, 2024
This incorporates feedback from #30756 so all integration tests are uniform.

Related to #31589.
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 9738f35
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@moelasmar moelasmar self-assigned this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distinguished-contributor [Pilot] contributed 50+ PRs to the CDK p2 pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants