Skip to content

integrationsource/integrationsink AWS e2e tests#8849

Merged
knative-prow[bot] merged 21 commits intoknative:mainfrom
simkam:eventing-integrations-e2e
Feb 5, 2026
Merged

integrationsource/integrationsink AWS e2e tests#8849
knative-prow[bot] merged 21 commits intoknative:mainfrom
simkam:eventing-integrations-e2e

Conversation

@simkam
Copy link
Contributor

@simkam simkam commented Jan 20, 2026

This is my first ever Golang contribution (obviously also the first using reconciler-test framework), so I would appreciate a thorough review and some patience.

This adds a new tag for e2e tests called e2e_aws that runs tests for integrationsink/integrationsource resources that use AWS services. See updated test/rekt/README.md for all details.

New tests (tag) pass locally and we will run them in an internal Jenkins. We can also consider including them in GH CI.

Usual note nowadays - written with help from AI - Google Gemini and Claude Code.

@knative-prow knative-prow bot added the area/test-and-release Test infrastructure, tests or release label Jan 20, 2026
@knative-prow knative-prow bot requested review from aliok and mgencur January 20, 2026 11:47
@knative-prow
Copy link

knative-prow bot commented Jan 20, 2026

There are empty aliases in OWNER_ALIASES, cleanup is advised.

@knative-prow knative-prow bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jan 20, 2026
@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.63%. Comparing base (8f777f5) to head (576460e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8849      +/-   ##
==========================================
- Coverage   50.64%   50.63%   -0.01%     
==========================================
  Files         409      409              
  Lines       21658    21658              
==========================================
- Hits        10968    10966       -2     
- Misses       9834     9835       +1     
- Partials      856      857       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@simkam simkam force-pushed the eventing-integrations-e2e branch 2 times, most recently from 64c72fd to 2ab06a5 Compare January 20, 2026 12:32
@simkam simkam marked this pull request as draft January 20, 2026 15:07
@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 20, 2026
@simkam simkam changed the title intergrationsource/integrationsink AWS e2e tests integrationsource/integrationsink AWS e2e tests Jan 22, 2026
@simkam simkam force-pushed the eventing-integrations-e2e branch 2 times, most recently from 704bc70 to ce3261f Compare January 26, 2026 20:49
@simkam simkam marked this pull request as ready for review January 26, 2026 23:16
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 26, 2026
// For SQS sources, sends a message to SQS queue
// For DynamoDB Streams sources, puts an item to DynamoDB table
// For Timer sources, does nothing (timer triggers automatically)
func triggerEventByType(ctx context.Context, t feature.T, sourceType integrationsource.SourceType) {
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

code moved to reuseable feature steps in resources

@simkam simkam force-pushed the eventing-integrations-e2e branch from ce3261f to 47e4183 Compare February 4, 2026 10:30
@simkam
Copy link
Contributor Author

simkam commented Feb 4, 2026

incorporated feedback and rebased

/hold depends on #8867

@knative-prow knative-prow bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 4, 2026
@simkam simkam force-pushed the eventing-integrations-e2e branch from 47e4183 to 576460e Compare February 5, 2026 12:06
sourceCfg := IntegrationSourceConfigFromContext(ctx)
secretName := feature.MakeRandomK8sName("aws-credentials")
awsconfig.InstallAWSSecret(ctx, t, secretName)
opts := append([]manifest.CfgFn{WithS3Source(sourceCfg.S3Arn, awsCfg.Region, secretName)}, sinkOpts...)
Copy link
Member

Choose a reason for hiding this comment

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

👍 given sinkOpts take preference

@simkam
Copy link
Contributor Author

simkam commented Feb 5, 2026

rebased
/unhold

@knative-prow knative-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 5, 2026
@creydr
Copy link
Member

creydr commented Feb 5, 2026

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 5, 2026
@knative-prow
Copy link

knative-prow bot commented Feb 5, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: creydr, simkam

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 5, 2026
@knative-prow knative-prow bot merged commit 3d42467 into knative:main Feb 5, 2026
39 of 40 checks passed
@simkam simkam deleted the eventing-integrations-e2e branch February 5, 2026 14:41
simkam added a commit to simkam/eventing that referenced this pull request Feb 5, 2026
* [e2e tests] rename integrationsource_test.go to integrationsource_timer_test.go

* [e2e tests] use more descriptive source name and sink name variables

* [e2e tests] parametrize IntegrationSource type

* [e2e tests] fix typos in IntegrationSource tests

* [e2e-tests] add test for AWS S3 IntegrationSource

* [e2e-tests] add test for AWS SQS IntegrationSource

* [e2e-tests] add test for DynamoDB Stream IntegrationSource

* [e2e-tests] integrationsource:  move "trigger event" to Assert phase

* [e2e tests] parametrize IntegrationSink type

* [e2e-tests] add test for AWS S3 IntegrationSink

* [e2e-tests] add test for AWS SQS IntegrationSink

* [e2e-tests] add test for AWS SNS IntegrationSink

* [e2e-tests] use long polling to eliminate empty receiveMessage calls for SQS

* [e2e-tests] move AWS related code to single place

* [e2e-tests] run AWS tests only with e2e_aws tag

* [e2e-tests] update README for e2e rekt tests

* [e2e-tests] use UUID as primary key for DynamoDB table

* [e2e-tests] workaround delayed readiness of ddbstreams source

* update-codegen

* [e2e-tests] remove workaround for SRVKE-1834

fixed in knative#8867

* [e2e-tests] move sink/source code to reusable Feature Steps, improve setup and teardown cleanups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/test-and-release Test infrastructure, tests or release lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants