Skip to content

Increase poll timings for all ContainerSource tests#8862

Merged
knative-prow[bot] merged 1 commit intoknative:mainfrom
creydr:fix-containersource-timing-issue-e2e
Jan 27, 2026
Merged

Increase poll timings for all ContainerSource tests#8862
knative-prow[bot] merged 1 commit intoknative:mainfrom
creydr:fix-containersource-timing-issue-e2e

Conversation

@creydr
Copy link
Member

@creydr creydr commented Jan 27, 2026

Some ContainerSource tests were timing out after the default 2 minutes waiting for the ContainerSource resource to become ready or be deleted.

Increased the poll timings to all six ContainerSource tests to allow up to 4 minutes for:

  • Resource creation and readiness checks (which might take longer when the image needs to be built initially via registerImage())
  • Resource cleanup and deletion

This fixes the timeout in TestContainerSourceSendsEventsWithOIDC:

"wait.go:136: containersource-nggzhiqj not found containersources.sources.knative.dev"

All ContainerSource tests were timing out after the default 2 minutes
waiting for the ContainerSource resource to become ready or be deleted.

Added environment.WithPollTimings(5*time.Second, 4*time.Minute) to all
six ContainerSource tests to allow up to 4 minutes for:
- Resource creation and readiness checks
- Resource cleanup and deletion

This fixes the timeout in TestContainerSourceSendsEventsWithOIDC:
"wait.go:136: containersource-nggzhiqj not found containersources.sources.knative.dev"

Tests updated:
- TestContainerSourceWithSinkRef
- TestContainerSourceWithSinkURI
- TestContainerSourceWithCloudEventOverrides
- TestContainerSourceWithArgs
- TestContainerSourceWithTLS
- TestContainerSourceSendsEventsWithOIDC
@knative-prow knative-prow bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 27, 2026
@knative-prow knative-prow bot added the area/test-and-release Test infrastructure, tests or release label Jan 27, 2026
@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.10%. Comparing base (86c43a6) to head (4fa860d).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8862      +/-   ##
==========================================
- Coverage   51.14%   51.10%   -0.05%     
==========================================
  Files         409      409              
  Lines       21366    21381      +15     
==========================================
- Hits        10928    10926       -2     
- Misses       9585     9603      +18     
+ Partials      853      852       -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.

@creydr
Copy link
Member Author

creydr commented Jan 27, 2026

/cc @Cali0707

@knative-prow knative-prow bot requested a review from Cali0707 January 27, 2026 10:32
Copy link
Member

@Cali0707 Cali0707 left a comment

Choose a reason for hiding this comment

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

/lgtm

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

knative-prow bot commented Jan 27, 2026

[APPROVALNOTIFIER] This PR is APPROVED

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

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 merged commit be061ef into knative:main Jan 27, 2026
39 of 40 checks passed
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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants