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

[PingSource] disable @every #5585

Merged
merged 2 commits into from
Jul 13, 2021
Merged

Conversation

lionelvillard
Copy link
Member

@lionelvillard lionelvillard commented Jul 12, 2021

Fixes #5584

Proposed Changes

  • 🐛 reject non-standard @every schedule.

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note

:bug: PingSource schedules starting with `@every` are now properly rejected.

Docs

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Jul 12, 2021
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 12, 2021
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lionelvillard

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

The pull request process is described here

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-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 12, 2021
@codecov
Copy link

codecov bot commented Jul 12, 2021

Codecov Report

Merging #5585 (8895de5) into main (8678c3c) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5585      +/-   ##
==========================================
+ Coverage   82.66%   82.68%   +0.02%     
==========================================
  Files         198      198              
  Lines        6172     6180       +8     
==========================================
+ Hits         5102     5110       +8     
  Misses        743      743              
  Partials      327      327              
Impacted Files Coverage Δ
pkg/apis/sources/v1/ping_validation.go 100.00% <100.00%> (ø)
pkg/apis/sources/v1beta2/ping_validation.go 100.00% <100.00%> (ø)
pkg/channel/stats_reporter.go 86.66% <0.00%> (ø)
pkg/broker/filter/stats_reporter.go 87.30% <0.00%> (ø)
pkg/broker/ingress/stats_reporter.go 87.75% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8678c3c...8895de5. Read the comment docs.

@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-eventing-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/sources/v1/ping_validation.go 100.0% 95.5% -4.5
pkg/apis/sources/v1beta2/ping_validation.go 100.0% 95.5% -4.5

@cr22rc
Copy link
Contributor

cr22rc commented Jul 13, 2021

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 13, 2021
@lionelvillard
Copy link
Member Author

/test pull-knative-eventing-upgrade-tests

@lionelvillard
Copy link
Member Author

/hold

I will simplify the logic

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 13, 2021
@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 13, 2021
@lionelvillard
Copy link
Member Author

/unhold

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 13, 2021
@cr22rc
Copy link
Contributor

cr22rc commented Jul 13, 2021

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 13, 2021
@knative-prow-robot knative-prow-robot merged commit 4a679a4 into knative:main Jul 13, 2021
@lionelvillard
Copy link
Member Author

/cherry-pick release-0.24
/cherry-pick release-0.23

@knative-prow-robot
Copy link
Contributor

@lionelvillard: new pull request created: #5590

In response to this:

/cherry-pick release-0.24
/cherry-pick release-0.23

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@lionelvillard
Copy link
Member Author

/cherry-pick release-0.23

@knative-prow-robot
Copy link
Contributor

@lionelvillard: new pull request created: #5591

In response to this:

/cherry-pick release-0.23

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ping source supports "@every 1s" for schedule
4 participants